This Is Weird... Help
#1

It works Thats all that matters Now for admins to control it Thats the problem.. I got about 8 admin commands My levels are 1 to 5 And Well Im level 5 Im not Authorized Any help be appreciated I'll +rep I know stupid to ask but What Control struction Would be better For High level admins to control lower Admin Commands and Lower admins to control only there level What ever command is Lower then there level... Thanks Promise to Rep you.. No clue What its for but U get a plus from me..

pawn Код:
CMD:warn(playerid, params[])
{

    new reason[128], id;
    if(PlayerInfo[playerid][pAdminLevel] > 1) SendClientMessage(playerid, ERROR, "Your Not Authorized");
    else {
        if(sscanf(params, "us", id, reason)) SendClientMessage(playerid, WARNING, "Usage : /Warn ID (reason)");
        else {
            if(!IsPlayerConnected(id)) SendClientMessage(playerid, WARNING, "Player Isn't Online");
            else {
                new string[256];
                new sendername[MAX_PLAYER_NAME];
                new giveplayer[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                GetPlayerName(id, giveplayer, sizeof(giveplayer));
                format(string, 256, "%s(%i) Has Been Warned By %s(%i) For %s",giveplayer,id,sendername,playerid,reason);
                SendClientMessageToAll(ERROR, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
This Is Weird... Help - by Buzzbomb - 20.01.2012, 00:46
Re: This Is Weird... Help - by Mrki_Drakula - 20.01.2012, 00:57
Re: This Is Weird... Help - by Buzzbomb - 20.01.2012, 01:01
Re: This Is Weird... Help - by Buzzbomb - 20.01.2012, 01:12
Re: This Is Weird... Help - by Tanush123 - 20.01.2012, 02:01
Re: This Is Weird... Help - by Babul - 20.01.2012, 02:22

Forum Jump:


Users browsing this thread: 3 Guest(s)