29.04.2017, 01:15
i had the same problem but i solved it like this
so instead of setting your cp number through out entering the checkpoint set your current needed checkpoint number with a timer it works like a charm because as code applies so fast in the first checkpoint that until one checkpoint disappears you already get them all
Код:
if(DeliveryMissionCP[playerid] == 2) { new string[128]; format(string, sizeof(string), "DeliveryMissionCP is %i", DeliveryMissionCP[playerid]); SendClientMessage(playerid, COLOR_GREEN, string); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1720.7654,897.8714,10.7698, 3.0); SetPlayerMapIcon(playerid, 0, 1720.7654,897.8714,10.7698, 0, COLOR_RED, MAPICON_GLOBAL); SetTimerEx("seco", 1000, false, "i", playerid); } forward seco(playerid); public seco(playerid) { DeliveryMissionCP[playerid]=DeliveryMissionCP[playerid]+1; return 1; }