help with IRC
#5

Код HTML:
if(sscanf(params,"ui",pname,amount)) return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
thats it
u have to create new var and pName
+ instead of
Код HTML:
if(!IRC_IsHalfop(botid, channel, user) && !IRC_IsOp(botid, channel, user) && !IRC_IsAdmin(botid, channel, user))
    return IRC_Say(gGroupID,channel,"02You can't use this commands");
just do
Код HTML:
if(!IRC_IsHalfop(botid, channel, user) return IRC_Say(gGroupID,channel,"02You can't use this commands");
^ because the one who is Op is halfop too and one who is Admin is OP too xD so..

EDIT: @ archer ahah u few min faster + mistake in sscanf format sscanf(params,"d" only while he want palyer name and amount xD
Reply


Messages In This Thread
help with IRC - by ColdRain - 28.04.2012, 11:08
Re: help with IRC - by Vince - 28.04.2012, 12:02
Re: help with IRC - by ColdRain - 28.04.2012, 13:01
Re: help with IRC - by TheArcher - 28.04.2012, 13:16
Re: help with IRC - by Niko_boy - 28.04.2012, 13:16
Re: help with IRC - by TheArcher - 28.04.2012, 13:23
Re: help with IRC - by Niko_boy - 28.04.2012, 13:25
Re: help with IRC - by TheArcher - 28.04.2012, 13:27
Re: help with IRC - by Niko_boy - 28.04.2012, 13:29
Re: help with IRC - by TheArcher - 28.04.2012, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)