Check Score For ClassSelection
#1

Script : If the player chooses Skin id = 0 and if he's score is less than 50 .. then he won't be able to choose that skin.

Can someone make an script for example plz Rep+1
Reply
#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
#3

You have put it in the public "OnPlayerRequestClass":
Код:
if(GetPlayerScore(playerid) <= 50) return SendClientMessage(playerid, 0xff0000ff, "You don't have 50 points in your score);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)