26.09.2012, 05:19
pawn Код:
else if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid, 7, 1273.845703,-1606.285278,10.986078)) // SAPD Gate
{
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer.");
if(!SAPDGateStatus)
{
SAPDGateStatus = 1;
MoveDynamicObject(SAPDGate, 1273.845703,-1606.285278,-5.986078, 3);
}
else
{
SAPDGateStatus = 0;
MoveDynamicObject(SAPDGate, 1273.845703,-1606.285278,10.986078, 3);
}
return 1;
}