Checkpoints Problem
#1

Hello.
I am trying to create checkpoints on teleports. It is like when a player teleports to a certain position a checpoint appears there. once the player entered it he receives his points and money w/e and the checkpoint dissapears.
Since i am using Incognito's plugin and ZCMD and im kinda new im asking for your help. Old way to do it was ermm easier?:S

Thanks
Reply
#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
#3

That is what i already did and it didn't work. Thanks.

Anyone else?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)