SA-MP Forums Archive
sscanf makeadmin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sscanf makeadmin (/showthread.php?tid=491910)



sscanf makeadmin - CH | FuDo - 01.02.2014

Need to setup if admin level in sscanf is lower than 1, bigger then 4, if is not 1337 or 1338 to send player message.

Sorry for my bad engl.


Re: sscanf makeadmin - Konstantinos - 01.02.2014

pawn Код:
new
    id,
    level;

if (sscanf(params, "ri", id, level)) return SendClientMessage(playerid, -1, "Usage: /setlevel <ID/Part Of Name> <level>");
...
if (!(1 <= level <= 4) && level != 1337 && level != 1338) return SendClientMessage(playerid, -1, "Valid levels: 1-4, 1337, 1338");
...