26.07.2012, 17:25
Heya folks.
Just a little question.
So, I am makin admin system for my Server, but I am stuck in one question.
I wanna do one command (for e.g. warn) which can warn all players on only one.
I mean, if I write
it will warn first player with name starting or inlcuding 'le' in.
But how can I do if I use this command:
it will loop through all players and warn them? Actually, part with loop is understandable for me, only I dunno what specifier do I've to use in condition with sscanf..
Normally, it is
.. And u is only for id/part of nickname.. Somebody know solution?
Or I have to make one extra specifer to determinate if command has to execute for one or all players?
Sry about that question.. Imma just curious
Thx, Greetz,
LetsOWN
Just a little question.
So, I am makin admin system for my Server, but I am stuck in one question.
I wanna do one command (for e.g. warn) which can warn all players on only one.
I mean, if I write
Код:
/warn Le reason
But how can I do if I use this command:
Код:
/warn * reason
Normally, it is
pawn Код:
if(sscanf(params, "us[255]", id, reason))
Or I have to make one extra specifer to determinate if command has to execute for one or all players?
Sry about that question.. Imma just curious
Thx, Greetz,
LetsOWN