24.03.2012, 09:08
OK, using
At the top:
pawn Code:
pawn Code:
and.....
pawn Code:
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.
Quote:
|
y_classes: |
pawn Code:
Quote:
|
#include <YSI\y_classes> #include <YSI\y_groups> |
Код:
new
Group:gHighScoreGroup;
In OnGameModeInit:
Код:
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);
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.
}
}

