Help with time
#1

hi guys can some scrept like that time her (if player n checkpoint he stay 30 sec to capture this zone )



PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
  if(
PlayerCP[playerid] != -1) return OnPlayerEnterStreamedCheckpoint(playeridPlayerCP[playerid]);
  return 
1;
}
stock OnPlayerEnterStreamedCheckpoint(playeridCPiD)
{
    if(
CPiD == CPS1)
    {
        
GameTextForPlayer(playerid"Stay her to capture hospital!"30003);
        if(
gTeam[playerid]==TEAM_Latino)
        {
        
GangZoneShowForAll(Hospital,0x00F3FFAF);
        
SetPlayerScore(playerid,GetPlayerScore(playerid)+);
        
GivePlayerMoney(playerid,6000);
        
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
        
GiveTeamScore(gTeam[playerid]=TEAM_Latino1);
        
SendTeamMessage(COLOR_GREEN"You received 1 Score For a Capture!",TEAM_Latino);
         } 
Reply


Messages In This Thread
Help with time - by BlacKxStory - 03.02.2012, 12:29
Re: Help with time - by -ExG-VirusKiller - 03.02.2012, 12:57
Re: Help with time - by MP2 - 03.02.2012, 13:00
Re : Help with time - by BlacKxStory - 03.02.2012, 13:03
Re: Help with time - by MP2 - 03.02.2012, 13:14
Re : Help with time - by BlacKxStory - 03.02.2012, 13:22
Re: Help with time - by -ExG-VirusKiller - 03.02.2012, 13:24
Re: Re : Help with time - by MP2 - 03.02.2012, 13:30
Re : Help with time - by BlacKxStory - 03.02.2012, 13:30
Re: Re : Help with time - by thimo - 03.02.2012, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)