25.02.2010, 06:55
Add a
on top.
Not tested.
pawn Код:
new GateOpen;
Not tested.
pawn Код:
if(newkeys == KEY_ACTION)
{
if(gteam[playerid] == Team_LSPD) && if(GateOpen == 0)
{
MoveObject(PDA,1540.2041015625, -1627.822265625, 6.6545753479004,6);
SendClientMessage(playerid,0x2641FEAA,"You have opened the Police Department Main gate.");
}
else if(GateOpen == 1) && if(gteam[playerid] == Team_LSPD)
{
MoveObject(PDA,1540.2049560547,-1627.8229980469,14.9045753479,6);
SendClientMessage(playerid,0x2641FEAA,"You have Closed the Police Department Main gate.");
return 1;
}