5 people in a checkpoint
#2

pawn Код:
new cpcount=0;
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
     if(checkpointid==/*you ch id*/)
     {
        cpcount++;
        if(cpcount==5)
        {
               //...
        }
        //...
     }
   return 1;
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
     if(checkpointid==/*you ch id*/)
     {
        cpcount--;
        //...
     }
return 1;
}
Reply


Messages In This Thread
5 people in a checkpoint - by nuriel8833 - 18.12.2010, 12:09
Re: 5 people in a checkpoint - by XePloiT - 18.12.2010, 12:47
Re: 5 people in a checkpoint - by nuriel8833 - 18.12.2010, 12:56
Re: 5 people in a checkpoint - by XePloiT - 18.12.2010, 13:18
Re: 5 people in a checkpoint - by nuriel8833 - 18.12.2010, 13:49
Re: 5 people in a checkpoint - by XePloiT - 18.12.2010, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)