12.01.2012, 23:26
pawn Код:
new Rank[20];
switch(GetPlayerScore(playerid))
{
case 0 .. 10: format(Rank, sizeof(Rank),"[Newbie]");
case 11 .. 20: format(Rank, sizeof(Rank),"[Beginner]");
//etc..
}
new ChatText[128], Nameasd[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nameasd, MAX_PLAYER_NAME);
format(ChatText, sizeof(ChatText),"%s %s: %s", Rank, Nameasd, text);
SendClientMessageToAll(-1, ChatText);