Senior Scripters
#3

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;
}
Reply


Messages In This Thread
Senior Scripters - by MrCallum - 12.04.2014, 11:31
Re: Senior Scripters - by MrCallum - 12.04.2014, 11:37
Re: Senior Scripters - by Twizted - 12.04.2014, 11:38
Re: Senior Scripters - by MrCallum - 12.04.2014, 11:43

Forum Jump:


Users browsing this thread: 1 Guest(s)