About makeleader command
#1

fixed..
Reply
#2

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
Reply
#3

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;
}
Reply
#4

Give details about variables.
Reply
#5

These are the player variables
pawn Код:
pFaction,
    FRank,
    FTier
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)