09.08.2011, 05:27
i want that this command will work only when 5 players in the point
and i want that if the 5 players were killed during the command the command will stop
and i want that if the 5 players were killed during the command the command will stop
PHP код:
command(taketurf, playerid, params[])
{
new pname[128];
GetPlayerName(playerid, pname, sizeof(pname));
new string[128];
if(gTeam[playerid] == Allied)
{
if (PlayerToPoint(25, playerid,2422.2668,167.7081,25.0297))
{
GangZoneFlashForAll(Russia,White);
SendClientMessage(playerid, Red, "Taking turf started");
SendClientMessage(playerid, Red, "Dont move and wait 2min");
GameTextForPlayer(playerid,"~Red~Taking turf started",5000,5);
SetTimer("TakeTurfReset",300000, 0);
format(string, sizeof(string), "Solder %s(%d) taking your's turf. Hurry up!", pname, playerid);
SendClientMessageToAllAxis(string);
}
}
return 1;
}