Checkpointid
#8

pawn Код:
new capturing[MAX_PLAYERS];//Global

//In the function OnPLayerEnterCp
{
        new pZone;
        if(IsPlayerInDynamicArea(playerid, BigEarArea))
        {
            GangZoneFlashForAll(BigEarZone, GetPlayerGangColor(playerid));
            pZone = BigEarArea;
        }
        else if(IsPlayerInDynamicArea(playerid, SnakeArea))
        {
            GangZoneFlashForAll(SnakeZone, GetPlayerGangColor(playerid));
            pZone = SnakeArea;
        }
        else if(IsPlayerInDynamicArea(playerid, TeeMotelArea))
        {
            GangZoneFlashForAll(TeeMotelZone, GetPlayerGangColor(playerid));
            pZone = TeeMotelArea;

        }
        else if(IsPlayerInDynamicArea(playerid, OilArea))
        {
            GangZoneFlashForAll(OilZone, GetPlayerGangColor(playerid));
            pZone =OilArea;

        }
       
        capturing[playerid] = SetTimerEx("capturezone",30000,false,"ii",playerid,pZone);
}
forward capturezone(playerid,zone);

public capturezone(playerid,zone)
{
    switch (zone)
    {
        case BigEarArea :
        case SnakeArea :
        case TeeMotelArea :
        case OilArea :
    }
 //Capture Gangzone
}

OnPlayerLeaveDynamicCP(playerid,CPID)//or whatever this is called
{
    KillTimer(capturing[playerid]);
}
Reply


Messages In This Thread
Checkpointid - by Dan. - 28.07.2012, 17:00
Re: Checkpointid - by ReVo_ - 28.07.2012, 17:25
Re: Checkpointid - by Dan. - 28.07.2012, 19:22
Re: Checkpointid - by SuperViper - 28.07.2012, 19:58
Re: Checkpointid - by Dan. - 28.07.2012, 20:17
Re: Checkpointid - by Arca - 28.07.2012, 20:33
Re: Checkpointid - by Dan. - 29.07.2012, 07:55
Re: Checkpointid - by [MM]RoXoR[FS] - 29.07.2012, 08:42
Re: Checkpointid - by Dan. - 29.07.2012, 08:50
Re: Checkpointid - by [MM]RoXoR[FS] - 29.07.2012, 09:52

Forum Jump:


Users browsing this thread: 2 Guest(s)