28.07.2011, 08:25
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:
It should now look like:
Note: That is just an example. I have no clue what your real source code looks like
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;
}
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;
}