sscanf makeadmin
#1

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.
Reply
#2

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");
...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)