if(strcmp(cmd,"/fbitor2",true) == 0)
{
if(IsACop(playerid))
{
if(fbitorvar2 == 0)
{
MoveObject(fbitor2, -1469.5999755859, 31.39999961853,217.74829101563-10,5.0);
SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
fbitorvar2 = 1;
}
else
{
MoveObject(fbitor2, -1469.5999755859, 31.39999961853, 0, 0, 217.74829101563,5.0);
SendClientMessage(playerid, COLOR_RED, "Tor geschlossen");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
fbitorvar2 = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Beamter");
return 1;
}
Und es fährt nicht in den Boden.