Hi mein Tor geht auf aber es schließt sich nichtmehr?
So habe ich es!
new Hoteltur;new Hoteltorvar;
Hoteltur = CreateObject(1495, 2229, -1149.5, 1028.8000488281, 0, 0, 270);
if (strcmp(cmd,"/Hoteltor",true) == 0) { if(!isPlayerInFrakt(playerid,2))return SendClientMessage(playerid,0xFF3C00FF,"Du Wohnst nicht im Hotel"); { if(Hoteltorvar == 0) { MoveObject(Hoteltur,1495, 2229, -1149.5, 1028.8000488281-9,4.0); PlaySoundForPlayer(playerid,1035); SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036); Hoteltorvar = 1; } else { MoveObject(Hoteltur,1495, 2229, -1149.5, 1028.8000488281,4.0); PlaySoundForPlayer(playerid,1035); SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036); Hoteltorvar = 0; } } return 1; }