Random checkpoints
#7

Quote:
Originally Posted by MP2
Посмотреть сообщение
Why are you using IsPlayerInRangeOfPoint? Use variables?
i actually tried with that but it does not work
pawn Код:
new escapertest[MAX_PLAYERS];
        new pointesc = random(sizeof(locesc));
       
        if (IsPlayerInRangeOfPoint(playerid, 12, 1027.8938,-1038.5903,31.0843)) // checkpoint 1 escaper
        {
            DisablePlayerCheckpoint(playerid);
            escapertest = SetPlayerCheckpoint(playerid, locesc[pointesc][0], locesc[pointesc][1],locesc [pointesc][2], 12);
        }
        if (escapertest) // checkpoint 2 escaper
        {
            DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid,COLOR_GREEN,"it worked");
        }
I get the message "it worked" on the checkpoint above..
Reply


Messages In This Thread
Random checkpoints - by Madsen - 23.10.2011, 12:22
Re: Random checkpoints - by Zonoya - 23.10.2011, 13:05
Re: Random checkpoints - by Madsen - 23.10.2011, 14:11
Re: Random checkpoints - by Madsen - 30.10.2011, 12:12
Re: Random checkpoints - by Madsen - 05.11.2011, 23:07
Re: Random checkpoints - by MP2 - 06.11.2011, 04:15
Re: Random checkpoints - by Madsen - 06.11.2011, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)