27.08.2010, 09:25
Well the steamer has playerid parameter so you could do this
At top with other variables
Then where you need to create the players checkpoint
Then finally
That might work
At top with other variables
pawn Код:
enum Stunts
{
stunt1,
stunt2,
stunt3
//and so on
};
new pCheckpoint[MAX_PLAYERS][Stunts];
pawn Код:
pCheckpoint[playerid][stunt1] = CreateDynamicCP(x,y,z,7.0,-1,-1,playerid,70.0);//note it wll only be created for 'playerid'
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == pCheckpoint[playerid][stunt1])
{
//do stuff here
DestroyDynamicCP(pCheckpoint[playerid][stunt1]);
}
return 1;
}