30.01.2009, 00:47
you may need to make a var so this script wont interfere with game modes that use checkpoints...
pawn Code:
new usenav[MAX_PLAYERS];//add this at the top
public OnPlayerEnterCheckpoint(playerid)
{
if(usenav[playerid] != 0)//make your check
{
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
DisablePlayerCheckpoint(playerid);
GameTextForPlayer(playerid, "~w~You have~n~~y~arrived", 5000, 1);
usenav[playerid]=0;//set back to zero
return 1;
}
return 1;
}
if(strcmp(cmdtext, "/pd", true) == 0 && usenav[playerid]==0)//example
{
SetPlayerCheckpoint(playerid,1529.6,-1691.2,13.3,4.0);
GameTextForPlayer(playerid, "~w~Nav SYS set ~g~Los Santos PD", 5000, 1);
usenav[playerid]=1;//set 0ne or w/e
return 1;
}

