30.08.2012, 05:01
pawn Код:
if (!strcmp(cmdtext, "/fgate"))
{
if (IsPlayerInRangeOfPoint(playerid, 15,1811.59, -1795.36, 13.87))
{
if(fdg == 1 || fdg2 == 1) return SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened");
new string[64], sendername[MAX_PLAYER_NAME];
MoveObject(fdgate1,1811.59, -1782.96, 13.87,5);
MoveObject(fdgate2,1811.59, -1808.19, 13.87,5);
SetTimer("GateClose7", 10000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Fire Department Gate is Open and will Close in 10 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens a gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
fdg = 1;
fdg2 = 1;
}
return 1;
}