Checkpoints Problem
#2

Hmm..
pawn Код:
new CP;

CMD:teleport(playerid,params[])
{
    SetPlayerPos(playerid,x,y,z);
    CP = CreateDynamicCP(x, y, z, size, -1, -1, playerid);
    return 1;
}

OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == CP){
        //Do something here
    }
    return 1;
}
Maybe this will work?
Reply


Messages In This Thread
Checkpoints Problem - by [rG]Cold - 10.08.2012, 13:19
Re: Checkpoints Problem - by AeroBlast - 10.08.2012, 14:11
Re: Checkpoints Problem - by [rG]Cold - 10.08.2012, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)