How to do this?
#4

Well the steamer has playerid parameter so you could do this

At top with other variables
pawn Код:
enum Stunts
{
    stunt1,
    stunt2,
    stunt3
    //and so on
};

new pCheckpoint[MAX_PLAYERS][Stunts];
Then where you need to create the players checkpoint
pawn Код:
pCheckpoint[playerid][stunt1] = CreateDynamicCP(x,y,z,7.0,-1,-1,playerid,70.0);//note it wll only be  created for 'playerid'
Then finally
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == pCheckpoint[playerid][stunt1])
    {
        //do stuff here
        DestroyDynamicCP(pCheckpoint[playerid][stunt1]);
    }
    return 1;
}
That might work
Reply


Messages In This Thread
How to do this? - by rbN. - 27.08.2010, 08:06
Re: How to do this? - by iggy1 - 27.08.2010, 08:28
Re: How to do this? - by rbN. - 27.08.2010, 08:30
Re: How to do this? - by iggy1 - 27.08.2010, 09:25

Forum Jump:


Users browsing this thread: 1 Guest(s)