13.06.2012, 20:34
//------[Makeleader]-------
FactionLeader[playerid] = 0;
FactionLeader[playerid] = 0;
Quote:
COMMAND:makeleader(playerid, params[]) { if(PlayerInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]: You are not authorized to use this command ") new targetid; new giveplayerid; if(sscanf(params, "is[24]", targetid)) return SendClientMessage(playerid, COLOR_SYNTAX, "[SYNTAX]: /makeleader [PlayerID/PartOfName]") else if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid,WHITE,"[ERROR] Player Is Not Connected"); else { SendClientMessage(targetid,COLOR_GREEN, "You have been made a faction leader!"); FactionLeader[targetid] += 1; } return 1; } |