CMD:myrank(playerid, params[]) { switch (PlayerInfo[playerid][Kills]) { case 0..49 : SendClientMessage(playerid,-1,"Rank: Noob"); case 50..99 : SendClientMessage(playerid,-1,"ВRank: Emigrant"); case 100..199 : SendClientMessage(playerid,-1,"Rank: Bandit"); case 200..499 : SendClientMessage(playerid,-1,"Rank: Killer"); case 500..699 : SendClientMessage(playerid,-1,"Rank: Gangster"); case 700..999 : SendClientMessage(playerid,-1,"Rank: Terminator"); default: SendClientMessage(playerid,-1,"Rank: Legenda"); } return 1; } |
// On top of the script
#define DIALOG_RANK (12345)
case 0..49: ShowPlayerDialog(playerid, DIALOG_RANK, DIALOG_STYLE_MSGBOX, "Rank", "Rank: Noob", "Ok", "");
// Etc..