13.11.2012, 04:24
Hi I Have A Rank System And Her's My Code
And How Can I Make The Rank Silentassasinator If The Player Has Higher Than Score 401?
PHP код:
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:
{
pRank[playerid] = RANK_SILENTASSASINATOR;
new string2[41];
format(string2, sizeof(string2), "Rank: SilentAssasinator");
TextDrawSetString(Textdraw3, string2);
}
}