28.05.2016, 17:18
I'm trying to make a /makeleader command, where the leader's skin gets set to something else and their name changes based on their faction.
I'm stuck here:
I'm stuck here:
Код:
CMD:makeleader(playerid, params[]) { if(Player[playerid][pAdmin] < 4) return SCM(pid, ADMIN_COLOR, ADMIN_MESSAGE); new para1, level[32]; if(sscanf(params, "us[32]", para1, level)) { SendClientMessage(pid, COLOR_WHITE, "{00E6FF}USAGE:{FFFFFF}/makeleader [PlayerID/PartOfName] [level 0 - 15]"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "1: Police Department || 2: F.B.I || 3: National Guard || 4: Medics"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "5: The Mafia || 6: The Triads || 7: Mayor || 8: Hitman Agency"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "9: News Reporter || 10: Taxi Company || 11: Los Santos Vagos || 12: Varrios Los Aztecas"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "13: Ballas || 14: Grove Street || 15: NFS Club"); return 1; } if(para1 == INVALID_PLAYER_ID) return SCM(pid, -1, "Player is not connected."); new fName[32], string[128], sendername[32], giveplayer[32];