13.11.2012, 04:39
pawn Код:
new iScore = GetPlayerScore(playerid);
switch(iScore)
{
case 0..100:
{
pRank[playerid] = RANK_NEWBIE;
new string2[41];
format(string2, sizeof(string2), "Rank: Newbie");
TextDrawSetString(Textdraw3, string2);
}
case 101..200:
{
pRank[playerid] = RANK_PROFESSIONAL;
new string2[41];
format(string2, sizeof(string2), "Rank: Professional");
TextDrawSetString(Textdraw3, string2);
}
case 201..300:
{
pRank[playerid] = RANK_ASSASINATOR;
new string2[41];
format(string2, sizeof(string2), "Rank: Assasinator");
TextDrawSetString(Textdraw3, string2);
}
case 301..400:
{
pRank[playerid] = RANK_HITMAN;
new string2[41];
format(string2, sizeof(string2), "Rank: Hitman");
TextDrawSetString(Textdraw3, string2);
}
case 401..9999: // change the 401 to what ever you want
{
pRank[playerid] = RANK_SILENTASSASINATOR;
new string2[41];
format(string2, sizeof(string2), "Rank: SilentAssasinator");
TextDrawSetString(Textdraw3, string2);
}
}