/taketurf
#1

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
PHP код:
command(taketurfplayeridparams[])
{
new 
pname[128];
GetPlayerName(playeridpnamesizeof(pname));
new 
string[128];
if(
gTeam[playerid] == Allied)
{
    if (
PlayerToPoint(25playerid,2422.2668,167.7081,25.0297))
    {
    
GangZoneFlashForAll(Russia,White);
    
SendClientMessage(playeridRed"Taking turf started");
    
SendClientMessage(playeridRed"Dont move and wait 2min");
    
GameTextForPlayer(playerid,"~Red~Taking turf started",5000,5);
    
SetTimer("TakeTurfReset",3000000);
    
format(stringsizeof(string), "Solder %s(%d) taking your's turf. Hurry up!"pnameplayerid);
    
SendClientMessageToAllAxis(string);
    }
}
return 
1;

Reply


Messages In This Thread
/taketurf - by marik1599 - 09.08.2011, 05:27
Re: /taketurf - by Grim_ - 09.08.2011, 05:32
Re: /taketurf - by marik1599 - 09.08.2011, 06:25
Re: /taketurf - by Grim_ - 09.08.2011, 07:51
Re: /taketurf - by marik1599 - 10.08.2011, 04:45
Re: /taketurf - by Grim_ - 10.08.2011, 04:50
[No subject] - by marik1599 - 10.08.2011, 05:02

Forum Jump:


Users browsing this thread: 1 Guest(s)