18.12.2015, 08:22
PHP код:
public OnPlayerSpawn(playerid) {
SetPlayerRank(playerid);
return true;
}
SetPlayerRank(playerid) {
new rankname[24];
switch(rankname) {
case 0 .. 200: rankname = "Rank 1"; //if their score is from 0 to 200
case 201 .. 300: rankname = "Junior Killer"; //if their score is from 201 to 300
case 301 .. 400: rankname = "Senior Killer"; //if their score is from 301 to 400
default: rankname = "Master"; //if its anything else
}
return rankname[24];
}