Multiple Checkpoints
#6

You will not need to edit the include file (streamer.inc) itself. You need to edit the script you are using the SetPlayerCheckpoint functions in. Navigate to that script, and replace the SetPlayerCheckpoint functions with the name CreateDynamicCP. Make sure to also add the include to the script (which I showed above), and completely install the rest of the plugin (which can be found on it's thread).

So for example, say your old script looked like this:
pawn Код:
#include <a_samp>

public OnPlayerSpawn( playerid )
{
   SetPlayerCheckpoint( playerid, 0.00, 0.00, 0.00, 5.0 );
   SetPlayerCheckpoint( playerid, 1.00, 1.00, 1.00, 5.0 );
   SetPlayerCheckpoint( playerid, 2.00, 2.00, 2.00, 5.0 );
   return 1;
}
It should now look like:
pawn Код:
#include <a_samp>
#include <streamer>

public OnPlayerSpawn( playerid )
{
   CreateDynamicCP( playerid, 0.00, 0.00, 0.00, 5.0 );
   CreateDynamicCP( playerid, 1.00, 1.00, 1.00, 5.0 );
   CreateDynamicCP( playerid, 2.00, 2.00, 2.00, 5.0 );
   return 1;
}
Note: That is just an example. I have no clue what your real source code looks like
Reply


Messages In This Thread
Multiple Checkpoints - by phil_lendon - 28.07.2011, 07:50
Re: Multiple Checkpoints - by Grim_ - 28.07.2011, 07:52
Re: Multiple Checkpoints - by phil_lendon - 28.07.2011, 07:58
Re: Multiple Checkpoints - by Grim_ - 28.07.2011, 08:00
Re: Multiple Checkpoints - by phil_lendon - 28.07.2011, 08:16
Re: Multiple Checkpoints - by Grim_ - 28.07.2011, 08:25
Re: Multiple Checkpoints - by phil_lendon - 28.07.2011, 08:29
Re: Multiple Checkpoints - by Grim_ - 28.07.2011, 08:31
Re: Multiple Checkpoints - by phil_lendon - 28.07.2011, 08:36
Re: Multiple Checkpoints - by Pasa - 28.07.2011, 09:52

Forum Jump:


Users browsing this thread: 2 Guest(s)