Hey,
Ich wollte fragen warum, wenn ich ingame den Befehl verwende zwar da steht: "Tor geöffnet" es passiert aber nichts...
//FBI Tor
fbitor = CreateDynamicObject(980, 1245.5999755859, -778.59997558594, 92.699996948242, 0, 0, 0);
if(strcmp(cmd,"/fbitor",true) == 0)
{
if(IsACop(playerid))
{
if(fbitorvar == 0)
{
MoveObject(fbitor, 1230.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, 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;
}
Gruß & Danke