29.11.2012, 22:44
So when I do a Checkpoint, (for a GPS thing) and I have a command to make it show up, but right when you make the checkpoint it send the message for when you enter even if you are not in the check point here is the codes
Код:
public OnPlayerEnterCheckpoint(playerid) { DisablePlayerCheckpoint(playerid); SendClientMessage(playerid, COLOR_RED, "You have reached your destination!"); return 1; }
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/gps lspd")) { SendClientMessage(playerid, COLOR_RED, "GPS Set to LSPD-Follow the Red Checkpoint"); SetPlayerCheckpoint(playerid,1529.5492,-1674.8779,13.3828,268.7893); return 1; } return 0; }