Hi Leute meine PDD Tore sollen Seitwärts aufgehen!
Sie gehen aber gerade auf! wir mach ich das
hier meine tore
if (strcmp(cmd,"/Pddtor",true) == 0) { if(!isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,0xFF3C00FF,"Du bist kein Polizist!"); { if(Pddtorvar == 0) { MoveObject(Pddtor,244.89999389648, 72.5, 1002.5999755859-5,2); MoveObject(Pddtor1,247.89999389648, 72.5, 1002.5999755859-5,2); PlaySoundForPlayer(playerid,1035); SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036); Pddtorvar = 1; } else { MoveObject(Pddtor,244.89999389648, 72.5, 1002.5999755859,2); MoveObject(Pddtor1,247.89999389648, 72.5, 1002.5999755859,2); PlaySoundForPlayer(playerid,1035); SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036); Pddtorvar = 0; } } return 1; }
if (strcmp(cmd,"/Pddtor",true) == 0)
{
if(!isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,0xFF3C00FF,"Du bist kein Polizist!");
{
if(Pddtorvar == 0)
{
MoveObject(Pddtor,244.89999389648, 72.5, 1002.5999755859-5,2);
MoveObject(Pddtor1,247.89999389648, 72.5, 1002.5999755859-5,2);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
Pddtorvar = 1;
}
else
{
MoveObject(Pddtor,244.89999389648, 72.5, 1002.5999755859,2);
MoveObject(Pddtor1,247.89999389648, 72.5, 1002.5999755859,2);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
Pddtorvar = 0;
}
}
return 1;
}