Check Score For ClassSelection
#2

pawn Код:
public OnPlayerRequestSpawn(playerid) {
    // Is he trying to spawn with skin id 0?
    if(GetPlayerSkin(playerid) == 0) {
        // Is his score less than 50?
        if(GetPlayerScore(playerid) < 50) {
            SendClientMessage(playerid, COLOR_WHITE, 'You need a higher score than 50 to spawn with this skin!');
            return 0;
        }
    }
}
Reply


Messages In This Thread
Check Score For ClassSelection - by MichaelProPlayer - 04.05.2012, 10:09
Re: Check Score For ClassSelection - by Pinguinn - 04.05.2012, 10:21
Re: Check Score For ClassSelection - by Accord - 04.05.2012, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)