11.07.2011, 21:58
PHP код:
if(PlayerInfo[playerid][pMember] == 1)
{
if(pdgatebar == 0)
{
pdgatebar = 1;
SetObjectRot( pdbarriergateobj, 0.0000, 360.0000, 90.0000);
SetObjectPos( pdbarriergateobj, 1544.682495, -1630.953003, 13.079567 );
return 1;
}
if(pdgatebar == 1)
{
pdgatebar = 0;
SetObjectRot( pdbarriergateobj, 0.0000, 90.0000, 90.0000);
SetObjectPos( pdbarriergateobj, 1544.682495, -1630.980000, 13.215000 );
return 1;
}
}
else SendClientMessage(playerid,COLOR_GREY," You are not a Cop / FBI / SAS / SWAT !");
if(IsPlayerInRangeOfPoint(playerid,9,1642.9678,-1714.9400,15.602))
{ //FBI GATE
if((PlayerInfo[playerid][pMember] == 2))
{
if(fbigateopen == 0)
{
fbigateopen = 1;
MoveObject(FBIGate, 1643.4106, -1714.7389, 15.6083, 1.500000);
SendClientMessage(playerid, COLOR_RED, "FBI Gate is closing...");
}
if(fbigateopen == 1)
{
fbigateopen = 0;
MoveObject(FBIGate, 1643.4106, -1714.7389, 9.6083, 1.500000);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "FBI Gate is opening...");
}
}
else SendClientMessage(playerid,COLOR_GREY," You are not a member of FBI !");
return 1;
}