CMD:locate(playerid, params[])
{
new location[32];
if(sscanf(params, "s[128]", location))
{
SendClientMessageEx(playerid, COLOR_GREEN, "________________________________________________");
SendClientMessageEx(playerid, COLOR_YELLOW, "<< General & Job Locations, USAGE: /locate [location]>>");
SendClientMessageEx(playerid, COLOR_ORANGE, "General Locations: LSVIP , DMV, CrackLab, DrugHouse, Heroinlab");
SendClientMessageEx(playerid, COLOR_ORANGE, "Job Locations: Courier, Mechanic, Bodyguard, Bodyguard2 PizzaBoy, ArmsDealer, DrugDealer ");
SendClientMessageEx(playerid, COLOR_ORANGE, "Job Locations: DrugSmuggler, Miner, LumberJack, Lawyer, Detective, Taxi");
return 1;
}
if(strcmp(params, "lsvip", true) == 0) {
if(CheckPointCheck(playerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you have active checkpoint).");
SendClientMessageEx(playerid, COLOR_RED, "Checkpoint set to Los Santos DMV");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 691.2667,-1276.0730,13.5605,2.0);
}
else if(strcmp(params, "dmv", true) == 0) {
if(CheckPointCheck(playerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you have active checkpoint).");
SendClientMessageEx(playerid, COLOR_RED, "Checkpoint set to Los Santos DMV");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1219.2233,-1812.1866,16.5938,2.0);
}
(.....more checkpoints...)
return 1;
}
DisablePlayerCheckpoint(playerid);
public OnPlayerEnterCheckpoint(playerid)
{
SendClientMessage(playerid, 0xFFFFFFFF, "You have entered a checkpoint");
DisablePlayerCheckpoint(playerid);
return 1;
}
|
Not too sure about this one then sorry, I would just try adding this again to your script and seeing what happens.
Код:
public OnPlayerEnterCheckpoint(playerid)
{
SendClientMessage(playerid, 0xFFFFFFFF, "You have entered a checkpoint");
DisablePlayerCheckpoint(playerid);
return 1;
}
|