30.10.2009, 19:39
Код:
if (strcmp("/myrank", cmdtext, true, 10) == 0) { new PName[MAX_PLAYER_NAME]; GetPlayerName(playerid,PName,MAX_PLAYER_NAME); if(GetPlayerScore(playerid) <= 100) { SetPlayerName(playerid,"%s[GOOD]",PName); } if(100 < GetPlayerScore(playerid) <= 200) { SetPlayerName(playerid,"%s[AWESOME]",PName); } if(200 < GetPlayerScore(playerid) <= 500) { SetPlayerName(playerid,"%s[UNSTOPPABLE]",PName); } if(500 < GetPlayerScore(playerid) <= 750) { SetPlayerName(playerid,"%s[HOLYSHIT]",PName); } if(750 < GetPlayerScore(playerid)) { SetPlayerName(playerid,"%s[GODLIKE]",PName); } return 1; }
This should work.. Please test it and let me know the resuts..
-TraNe15-