20.01.2012, 21:44
Код:
if(strcmp(cmdtext, "/gate", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,9,1588.3058,-1637.9652,13.4227))
{ // TFA Gate
if(!IsACop(playerid) && !IsABH(playerid)) return SendClientMessage(playerid,COLOR_GREY," You are not a Cop / TFA / SAST / BH!");
if(pdgategar==0)
{
pdgategar = 1;
MoveObject(pdgaragegateobj, 1588.965698, -1637.882690, 7.710285, 1.50);
format(string, sizeof(string), "* %s take the remove out and press the the button for open the gate", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(pdgategar==1)
{
pdgategar = 0;
MoveObject(pdgaragegateobj, 1588.965698, -1637.882690, 15.260185, 1.50);
format(string, sizeof(string), "* %s take the remove out and press the the button for close the gate", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}

