17.07.2018, 15:31
So i was making checkpoints for my license system, and for some reason the last one i have for the finish keeps on spamming the messages of the previous one.I've made both to get destroyed upon player entering them but still, i do not know why is it having the function the other one had.
I create the first checkpoint when the player clicks the yes button in a dialog.
Then under OnPlayerEnterDynamicRaceCP
I create the first checkpoint when the player clicks the yes button in a dialog.
Код:
dscp1[1] = CreateDynamicRaceCP(0, -1622.5999,1183.9554,6.7550, -1622.5999,1183.9554,6.7550, 10, 0, 0, -1, 5000, -1);
Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid) { if(checkpointid == dscp1[1]) { SendClientMessage(playerid, COLOR_YELLOW,"School: {FFFFFF}Good, now head back to the school."); DestroyDynamicRaceCP(dscp1[1]); dscp2[2] = CreateDynamicRaceCP(1, -2047.2490,-76.7162,34.7426, -2047.2490,-76.7162,34.7426, 10, 0, 0, -1, 5000, -1); } else if(checkpointid == dscp2[2]) { DestroyDynamicRaceCP(dscp2[2]); GameTextForPlayer(playerid, "~g~Passed",5000,0); } return 1; }