31.07.2011, 19:50
Today , i created a Checkpoint using Incognito's Streamer Plugin.
i created a variable
I added on OnPlayerSpawn
At: OnPlayerEnterCP(playerid, checkpointid); i added:
And i have a comand , and i want to use that command only when i am in that checkpoint. I searched on forum , but i founded IsPlayerInDynamicCP(playerid, checkpointid); , without an example. I'm wonderig if you guys can help me
i created a variable
pawn Код:
new checkpoint1;
pawn Код:
checkpoint1 = CreateDynamicCP(playerid, X,Y,Z);
pawn Код:
if(checkpointid = checkpoint1 )
{
// other codes