Interior Checkpoints
#4

use this plugin/include : https://sampforum.blast.hk/showthread.php?tid=102865
and make a cp like this
pawn Код:
new CP1;
new CP2;
new CP3;
public OnGameModeInit()
{
 CP1 = CreateDynamicCP(220.5612,1423.4796,10.5859,3, -1,-1,-1,100.0);
 CP2 = CreateDynamicCP(599.6351,1247.6184,11.7188,3, -1,-1,-1,100.0);
 CP3 = CreateDynamicCP(14.6718,1549.8481,12.7672,3,-1,-1,-1,100.0);
}
[/pawn]

and dont forget the callbacks
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
   if(checkpointid == CP1)
     {
        SendClientMessage(playerid,-1," CP1");
      }
   if(checkpointid == CP2)
   {
      SendClientMessage(playerid,-1,"CP2");
    }
   if(checkpointid == CP3)
   {
    SendClientMessage(playerid,-1,"CP3");
    }
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
   if(checkpointid == CP1)
    {
       SendClientMessage(playerid,-1,"you left checkpoint  CP1");
    }
    if(checkpointid == CP2)
    {
       SendClientMessage(playerid,-1,"you left checkpoint  CP2");
    }
    if(checkpointid == CP3)
    {
       SendClientMessage(playerid,-1,"you left checkpoint  CP3");
    }
}
edit : you got it now ?
Reply


Messages In This Thread
Interior Checkpoints - by ShaneOvSina - 15.04.2013, 00:36
Re: Interior Checkpoints - by SilverKiller - 15.04.2013, 00:47
Re: Interior Checkpoints - by ShaneOvSina - 15.04.2013, 01:13
Re: Interior Checkpoints - by DaTa[X] - 15.04.2013, 01:30
Re: Interior Checkpoints - by ShaneOvSina - 15.04.2013, 01:43
Re: Interior Checkpoints - by ShaneOvSina - 15.04.2013, 02:58
Re : Interior Checkpoints - by DaTa[X] - 15.04.2013, 03:33
Re: Interior Checkpoints - by MP2 - 15.04.2013, 03:50
Re: Interior Checkpoints - by ppapppap - 07.03.2019, 18:41
Re: Interior Checkpoints - by EmpireSk - 07.03.2019, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)