About makeleader command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: About makeleader command (
/showthread.php?tid=404261)
About makeleader command -
MadafakaPro - 02.01.2013
fixed..
Re: About makeleader command -
ThePrograme - 02.01.2013
Sorry but wrong section. If you want someone to mae you a command you need to go to Script Reguest Thread:
https://sampforum.blast.hk/showthread.php?tid=187229&page=321
Re: About makeleader command -
MadafakaPro - 02.01.2013
This is what i made but its not working it doesnt set player to tier 0
pawn Код:
[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;
}
Re: About makeleader command -
RedCrossER - 02.01.2013
Give details about variables.
Re: About makeleader command -
MadafakaPro - 02.01.2013
These are the player variables