Hi leute,
ich will mein FBI Tor schließen lassen und auch öffnen lassen..
Es funktioniert aber leider nicht..
//FBI Tor Hauptzentrale
if(strcmp(cmd,"/fbitor",true) == 0)
{
if(IsACop(playerid))
{
if(fbitorvar == 0)
{
MoveObject(fbitor, 980, 1245.5999755859, -778.59997558594, 92.699996948242, 0, 0, 0);
SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
fbitorvar = 1;
}
else
{
MoveObject(fbitor, 980, 1245.5999755859, -778.59997558594, 92.699996948242, 0, 0, 0);
SendClientMessage(playerid, COLOR_RED, "Tor geschlossen");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
fbitorvar = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Beamter");
return 1;
}
CreateObject(980, 1245.5999755859, -778.59997558594, 92.699996948242, 0, 0, 0);
das ist das tor
Bitte helft mir..