-
Szevasztok
Próbálkozok névre szóló kapuval és azt is szeretném hogy több ember tudja kinyitni de csak azok akiket én akarok írtam rá egy scriptet de le se rakja a kaput megnéznétek mi nem jó benne?
mbkapu = createObject(980, 1358.2998046875, 713.19921875, 12.60000038147, 0, 0, 90)
function gate(player)
local localPlayerName = getPlayerName(getLocalPlayer())
if (localPlayerName==\"Shane_Ghaspard\") then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 6.9000000953674)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard használhatja\",player,255,0,0)
end
addCommandHandler ( \"mbgate\", gate )
function gatec(player)
local localPlayerName = getPlayerName(getLocalPlayer())
if (localPlayerName==\"Shane_Ghaspard\") then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 12.60000038147)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard használhatja\",player,255,0,0)
end
addCommandHandler ( \"mbgatec\", gatec )
-
debugscript 3 alatt milyen hibát kapsz? Kaput azért nem rakja le mert funkción kívül van.
-
Rossz a script. Szerver részre kell berakni ezt:
bkapu = createObject(980, 1358.2998046875, 713.19921875, 12.60000038147, 0, 0, 90)
function gate(player)
local localPlayerName = getPlayerName(player)
if (localPlayerName==\"Shane_Ghaspard\") then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 6.9000000953674)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard használhatja\",player,255,0,0)
end
end
addCommandHandler ( \"mbgate\", gate )
function gatec(player)
local localPlayerName = getPlayerName(player)
if (localPlayerName==\"Shane_Ghaspard\") then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 12.60000038147)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard használhatja\",player,255,0,0)
end
end
addCommandHandler ( \"mbgatec\", gatec )
-
Rossz a script. Szerver részre kell berakni ezt:
bkapu = createObject(980, 1358.2998046875, 713.19921875, 12.60000038147, 0, 0, 90)
function gate(player)
local localPlayerName = getPlayerName(player)
if (localPlayerName==\"Shane_Ghaspard\") then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 6.9000000953674)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard használhatja\",player,255,0,0)
end
end
addCommandHandler ( \"mbgate\", gate )
function gatec(player)
local localPlayerName = getPlayerName(player)
if (localPlayerName==\"Shane_Ghaspard\") then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 12.60000038147)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard használhatja\",player,255,0,0)
end
end
addCommandHandler ( \"mbgatec\", gatec )
Köszönöm ez mûködik és ha több nevet akarok a kapuhoz hozzáadni akkor mit kell tegyek? mert próbáltam már több felsõ vesszõvel oda írni a többi nevet de az nem jött be
-
Így:
bkapu = createObject(980, 1358.2998046875, 713.19921875, 12.60000038147, 0, 0, 90)
function gate(player)
local localPlayerName = getPlayerName(player)
if (localPlayerName==\"Shane_Ghaspard\" or localPlayerName==\"Budos_Jozsi\") then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 6.9000000953674)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard és Budos Jozsi használhatja\",player,255,0,0)
end
end
addCommandHandler ( \"mbgate\", gate )
function gatec(player)
local localPlayerName = getPlayerName(player)
if (localPlayerName==\"Shane_Ghaspard\" or localPlayerName==\"Budos_Jozsi\")then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 12.60000038147)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard és Budos Jozsi használhatja\",player,255,0,0)
end
end
addCommandHandler ( \"mbgatec\", gatec )
-
Így:
bkapu = createObject(980, 1358.2998046875, 713.19921875, 12.60000038147, 0, 0, 90)
function gate(player)
local localPlayerName = getPlayerName(player)
if (localPlayerName==\"Shane_Ghaspard\" or localPlayerName==\"Budos_Jozsi\") then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 6.9000000953674)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard és Budos Jozsi használhatja\",player,255,0,0)
end
end
addCommandHandler ( \"mbgate\", gate )
function gatec(player)
local localPlayerName = getPlayerName(player)
if (localPlayerName==\"Shane_Ghaspard\" or localPlayerName==\"Budos_Jozsi\")then
moveObject(mbkapu, 500, 1358.2998046875, 713.19921875, 12.60000038147)
else
outputChatBox(\"Ezt a kaput csak Shane Ghaspard és Budos Jozsi használhatja\",player,255,0,0)
end
end
addCommandHandler ( \"mbgatec\", gatec )
Köszönöm mûködik