Skin select.
#3

Quote:
Originally Posted by Vladamir
Посмотреть сообщение
OK, using

At the top:

pawn Code:


Код:
new
    Group:gHighScoreGroup;


In OnGameModeInit:
pawn Code:

Код:
gHighScoreGroup = Group_Create("Over 350"); // Create the group with a description. and score for that group of skins... As you request...

Class_Add(all, skin, info); // Replace your normal skin selection with this.
// Create a class which only people in one group can use.
Class_AddForGroup(gHighScoreGroup, rest, of, info);
and.....

pawn Code:

Код:
stock GivePlayerScore(playerid, score)
{
    // Add the score to their current score.
    score += GetPlayerScore(playerid);
    SetPlayerScore(playerid, score);
    if (score >= 350)
    {
        Group_SetPlayer(gHighScoreGroup, playerid, true); // High score, add them to the group.
    }
    else
    {
        Group_SetPlayer(gHighScoreGroup, playerid, false); // Low score, remove them from the group.
    }
}
Unlike other solutions this will actually remove the skin entirely from the class selection for other people, not just refuse to let them select it.
Good you just copied from here. :P

EDIT: I am not satisfied with this. Any other Reply?
Reply


Messages In This Thread
Skin select. - by Faisal_khan - 24.03.2012, 09:01
Re: Skin select. - by Vladamir - 24.03.2012, 09:08
Re: Skin select. - by Faisal_khan - 24.03.2012, 09:13
Re: Skin select. - by Vladamir - 24.03.2012, 09:15
AW: Skin select. - by Nero_3D - 24.03.2012, 11:39
Re: Skin select. - by [ABK]Antonio - 24.03.2012, 11:48
Re: Skin select. - by Faisal_khan - 25.03.2012, 04:42

Forum Jump:


Users browsing this thread: 1 Guest(s)