29.08.2016, 20:35
Hello , Today i got a problem , i included my irc system inside my admin system , then i tried to create !setlevel command from irc.
i tried as i can but i can't make i just made
!settrialmod
!setmod
!setadmin
!setadvisor
!setmanagment
--------------------------------
Max Admin Level : 6
pInfo[player1][pLevel] >= 1; Trial Moderator
pInfo[player1][pLevel] >= 2; Moderator
pInfo[player1][pLevel] >= 3; Admintstrator
pInfo[player1][pLevel] >= 4; Advisor
pInfo[player1][pLevel] >= 5; Managment
pInfo[player1][pLevel] >= 6; Owner
-------------
if(pInfo[player1][Logged] == 1) -- if logged in
-----------------------------------
For EXAMPLE:
So if any one can make to me setlevel command to irc
i tried as i can but i can't make i just made
!settrialmod
!setmod
!setadmin
!setadvisor
!setmanagment
--------------------------------
Max Admin Level : 6
pInfo[player1][pLevel] >= 1; Trial Moderator
pInfo[player1][pLevel] >= 2; Moderator
pInfo[player1][pLevel] >= 3; Admintstrator
pInfo[player1][pLevel] >= 4; Advisor
pInfo[player1][pLevel] >= 5; Managment
pInfo[player1][pLevel] >= 6; Owner
-------------
if(pInfo[player1][Logged] == 1) -- if logged in
-----------------------------------
For EXAMPLE:
Код:
IRCCMD:settrialmod(botid, channel[], user[], host[], params[]) { if (IRC_IsAdmin(botid, channel, user)) { new playerid[MAX_PLAYER_NAME]; new player1, string[128], dsname[MAX_PLAYER_NAME]; if(sscanf(params,"i",player1)) return IRC_GroupSay(groupID,IRC_CHANNEL, "12USAGE: !settrialmod [playerid]"); if(pInfo[player1][Logged] == 1) pInfo[player1][pLevel] >= 1; GetPlayerName(player1, dsname, sizeof(dsname)); format(string, sizeof(string), "12-StuntX- You have given Trial Moderator Level to %s ",dsname); IRC_GroupSay(groupID,IRC_CHANNEL,string); GetPlayerName(player1, dsname, sizeof(dsname)); format(string, sizeof(string), "-StuntX- Player %s got promoted to a Trial Moderator By Admin on (IRC)",dsname); SendClientMessageToAll(0xD2691EAA, string); } return 1; }