make single command global
#1

how can i make this
pawn Code:
if (strcmp(cmd, "/deleteacc", true)==0)
    {
        if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=3)
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /deleteacc [PlayerName]");
                return 1;
            }
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(giveplayer));
            format(string, 256, "AdmWarning: %s has deleted account: %s", sendername, tmp);
            ABroadCast(COLOR_LIGHTRED,string,1);
            format(string, 256, "AdmWarning: %s has deleted account: %s", sendername, tmp);
            printf(string);
            SendClientMessage(playerid, COLOR_WHITE, "Player unbanned");
            SendRconCommand(string);
            SendRconCommand("reloadbans");
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
        }
        return 1;
    }
so it unlocks ALL accounts? please edit and give me ,thx in advance
Reply
#2

Quote:
Originally Posted by rekatluos
View Post
how can i make this

so it unlocks ALL accounts? please edit and give me ,thx in advance
What do you mean exactly? The command says /deleteacc, doesn't that mean Delete Account? Or do you want another command to unlock all accounts? Could you please give us (the readers) an example of what you want exactly.
Reply
#3

in the accounts there is a "Locked = " part ,by /deleteaccount i set that to 0 (meaning unlocked)


i have a problem with the server getting banned and its pretty much fucked up to unlock all of them (as i have many users and i dont know which ones are locked)
Reply
#4

BUMP ,no-one?
Reply
#5

This is the unban command from LARP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)