How to create checkpoints inside interior using streamer?
#2

Check this thread:
https://forum.sa-mp.com/showthread.p...48#post2482048

Quote:
Originally Posted by DaTa[X]
Посмотреть сообщение
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");
    }
}
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid, interiorid, playerid, Float:distance);

pizza1cp = CreateDynamicCP(373.9403,-119.2545,1001.4922, 3, -1, -1, -1, 100.0);
//just make it like below:
pizza1cp = CreateDynamicCP(373.9403,-119.2545,1001.4922, 3, -1, {your desired interior id}, -1, 100.0);
Reply


Messages In This Thread
How to create checkpoints inside interior using streamer? - by beastmaster - 02.01.2019, 15:47
Re: How to create checkpoints inside interior using streamer? - by AhmedMohamed - 02.01.2019, 15:52
Re: How to create checkpoints inside interior using streamer? - by beastmaster - 03.01.2019, 00:21
Re: How to create checkpoints inside interior using streamer? - by beastmaster - 03.01.2019, 07:00
Re: How to create checkpoints inside interior using streamer? - by BOyka1 - 03.01.2019, 16:20

Forum Jump:


Users browsing this thread: 2 Guest(s)