11.02.2015, 15:05
Код:
CMD:namecolor(playerid, params[]) { if(IsPlayerAdmin(playerid) || status[playerid][admin] >= 5) { new id; new color; if(sscanf(params, "us", id, color)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /namecolor <ID> <COLOR>"); return 1; } else if(color == 1) return SetPlayerColor(id, COLOR_BLUE); else if(color == 2) return SetPlayerColor(id, COLOR_YELLOW); else if(color == 3) return SetPlayerColor(id, COLOR_PINK); else if(color == 4) return SetPlayerColor(id, COLOR_WHITE); } else { SendClientMessage(playerid, 0xFFFFFFFF, "You aren't an admin"); } return 1; }