24.03.2012, 09:13
Quote:
|
OK, using
At the top: pawn Code: Код:
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.
}
}
|
EDIT: I am not satisfied with this. Any other Reply?


