02.01.2013, 14:34
(
Последний раз редактировалось MadafakaPro; 26.01.2013 в 00:18.
)
fixed..
[CMD:makeleader(playerid, params[]) {
if(PlayerInfo[playerid][Adminlevel] >= 2) {
new id,factid,string[186];
if(sscanf(params, "ud", id, factid)) {
return SendClientMessage(playerid,0x00FF00FF,"Usage: /makeleader <playerid> <factionid>");
}
else {
PlayerInfo[id][pFaction] = factid;
PlayerInfo[id][FTier] = 0;
new
name1[MAX_PLAYER_NAME], string[128];
GetPlayerName(id, name1, MAX_PLAYER_NAME);
format(string, sizeof(string), "You have set %s to lead faction %d.", name1, factid);
SendClientMessage(playerid, COLOR_WHITE, string);
GetPlayerName(playerid, name1, MAX_PLAYER_NAME);
format(string, sizeof(string), "Administrator %s has set you to lead faction %d.", name1, factid);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}
pFaction,
FRank,
FTier