Little help on ban and kick command with sscanf
#1

Hello again
again another thread, I hope I haven't exceeded a limit yet...
Anyways

I am making my admin system, and I'm doing very good, however I'm stuck at the kick and ban command (and pretty much all commands where the admin has to give a reason for the command)

So for example for this setlevel command:
pawn Код:
if(sscanf(params,"ui",id,level)) return SendClientMessage(playerid,-1,"Use: /setlevel <id> <level>");
I just use params "ui", id, level.
But if the admin has to give a reason how do I make one of the params a string?
so I can do this:
pawn Код:
if(sscanf(params,"us",id,reason)) return SendClientMessage(playerid,-1,"Use: /ban <id> <reason>");
Any help?
Thanks in advance
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)