Ich hab mal ne Frage ob ich das richtig gemacht hab!
Denn ich würde ein Tor gerne mit einem Passwort öffnen nur es klappt nicht!!
Was hab ich falsch gemacht??
Code
function openSecretDoor(playerSource, commandName, pw)
if(pw == "6966") then
moveObject (a51gate1, 5000, 218.99548339844, 1875.40234375, 13.938992500305 )
moveObject (a51gate2, 5000, 208.94564819336, 1875.40234375, 13.938992500305 )
end
end
addCommandHandler ( "opendoor", openSecretDoor )
function closeSecretDoor(playerSource, commandName, pw)
if(pw == "zu") then
moveObject (a51gate1, 5000, 215.99548339844, 1875.40234375, 13.938992500305 )
moveObject (a51gate2, 5000, 211.94564819336, 1875.40234375, 13.938992500305 )
end
end
addCommandHandler ( "closedoor", closeSecretDoor )
Alles anzeigen
Bitte um Antwort!
LG Zokan