06.11.2011, 18:01
i actually tried with that but it does not work
I get the message "it worked" on the checkpoint above..
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");
}


