IRCCMD:setlevel Help
#6

I am free so why not doing it for ya xd

here you go: [ if that's what you meant... ]

PHP код:
IRCCMD:setlevel(botidchannel[], user[], host[], params[]) {
    if (
IRC_IsAdmin(botidchanneluser))
    {
        new 
playerid[MAX_PLAYER_NAME];
        new 
player1LefeLstring[128], dsname[MAX_PLAYER_NAME];
        if(
sscanf(params,"ii",player1,LefeL)) return IRC_GroupSay(groupID,IRC_CHANNEL"12USAGE: !settrialmod [playerid] [level]");
        if(
pInfo[player1][Logged] == 1)
        {
            if(
LefeL || LefeL /* change 8 with yar max level*/)
            {
                
IRC_GroupSay(groupID,IRC_CHANNEL"12Error: Incorrect Level Value!");
            }
            else
            {
                
pInfo[player1][pLevel] = LefeL;
                
GetPlayerName(player1dsnamesizeof(dsname));
                
format(stringsizeof(string), "12-StuntX- You have given Level %d to %s ",LefeL,dsname);
                
IRC_GroupSay(groupID,IRC_CHANNEL,string);
                
GetPlayerName(player1dsnamesizeof(dsname));
                
format(stringsizeof(string), "-StuntX- Player %s got promoted to level %d By Admin on (IRC)",dsname,LefeL);
                
SendClientMessageToAll(0xD2691EAAstring);
            }
        }
        else 
IRC_GroupSay(groupID,IRC_CHANNEL"12Player Is not loggedin!");
    }
    return 
1;

Reply


Messages In This Thread
IRCCMD:setlevel Help - by Ultraz - 29.08.2016, 20:35
Re: IRCCMD:setlevel Help - by J0sh... - 29.08.2016, 20:54
Re: IRCCMD:setlevel Help - by Ultraz - 29.08.2016, 20:57
Re: IRCCMD:setlevel Help - by Sew_Sumi - 29.08.2016, 21:06
Re: IRCCMD:setlevel Help - by Ultraz - 29.08.2016, 21:09
Re: IRCCMD:setlevel Help - by jlalt - 29.08.2016, 21:16
Re: IRCCMD:setlevel Help - by Sew_Sumi - 29.08.2016, 21:17
Re: IRCCMD:setlevel Help - by Ultraz - 29.08.2016, 21:30
Re: IRCCMD:setlevel Help - by Ultraz - 29.08.2016, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)