12.04.2014, 11:38
This is a basic structure that should help you making jobs for a certain level. Let's say that you use gPLevel[playerid] to get the player's level.
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0); //a checkpoint is created when the player spawns.
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(gPLevel[playerid] < 3){
//What happens if the player's level not 3.
}
else if (gPLevel[playerid] >= 3){
//What happens if the player's level is 3 or higher.
}
DisablePlayerCheckpoint(playerid);
return 1;
}