29.08.2016, 21:16
I am free so why not doing it for ya xd
here you go: [ if that's what you meant... ]
here you go: [ if that's what you meant... ]
PHP код:
IRCCMD:setlevel(botid, channel[], user[], host[], params[]) {
if (IRC_IsAdmin(botid, channel, user))
{
new playerid[MAX_PLAYER_NAME];
new player1, LefeL, string[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 < 0 || LefeL > 8 /* change 8 with yar max level*/)
{
IRC_GroupSay(groupID,IRC_CHANNEL, "12Error: Incorrect Level Value!");
}
else
{
pInfo[player1][pLevel] = LefeL;
GetPlayerName(player1, dsname, sizeof(dsname));
format(string, sizeof(string), "12-StuntX- You have given Level %d to %s ",LefeL,dsname);
IRC_GroupSay(groupID,IRC_CHANNEL,string);
GetPlayerName(player1, dsname, sizeof(dsname));
format(string, sizeof(string), "-StuntX- Player %s got promoted to level %d By Admin on (IRC)",dsname,LefeL);
SendClientMessageToAll(0xD2691EAA, string);
}
}
else IRC_GroupSay(groupID,IRC_CHANNEL, "12Player Is not loggedin!");
}
return 1;
}