This is weird :\
#3

pawn Код:
CMD:setadmin(playerid, params[]) // FINISHED / UNTESTED
{
    if(PlayerInfo[playerid][pAdmin] >= 5)
    {
        new level, id, str[1000];
        if(sscanf(params, "ud", id, level)) return SendClientMessage(playerid, lightred, "[{B4B5B7}System{FF6347}]: {B4B5B7}/setadmin (playerid/partofname) (1-4)");
        if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, lightred, "[{B4B5B7}System{FF6347}]: {B4B5B7}Player not found!");
        else
        {
            PlayerInfo[id][pAdmin] = level;

            new Admin[MAX_PLAYER_NAME];
            new Target[MAX_PLAYER_NAME];

            GetPlayerName(playerid, Admin, sizeof(Admin));
            GetPlayerName(id, Target, sizeof(Target));

            format(str, sizeof(str), "[{B4B5B7}Admin{FF6347}]{B4B5B7}'%s has make {FF6347}[{B4B5B7}Player{FF6347}]{B4B5B7}'%s Admin with level %d .", Admin, Target, level);
            SendClientMessageToAll(lightred, str);
        }
    }
    else return SendClientMessage(playerid, lightred, "[{B4B5B7}System{FF6347}]: {B4B5B7}You aren't authorized to use this command.");
    return 1;
}
Reply


Messages In This Thread
This is weird :\ - by Devilxz97 - 09.12.2012, 16:50
Re: This is weird :\ - by Mr.Anonymous - 09.12.2012, 17:04
Re: This is weird :\ - by Devilxz97 - 09.12.2012, 17:15
Re: This is weird :\ - by Patrick - 09.12.2012, 17:22
Re: This is weird :\ - by Devilxz97 - 09.12.2012, 17:25
Re: This is weird :\ - by Patrick - 09.12.2012, 17:36
Re: This is weird :\ - by Devilxz97 - 09.12.2012, 17:38
Re: This is weird :\ - by Devilxz97 - 10.12.2012, 02:30
Re: This is weird :\ - by Nordic - 10.12.2012, 05:46
Re: This is weird :\ - by Devilxz97 - 10.12.2012, 09:34
Re: This is weird :\ - by Konstantinos - 10.12.2012, 10:22
Re: This is weird :\ - by Nordic - 10.12.2012, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)