y_commands: two questions
#1

Hi,

I've two questions about y_commands:
  1. I would like to make a complete log system for my admins but unfortunately, cmdtext[] in OnCommandPerformed just give me the command, not the params ...
  2. I would like to disable all the commands for one player but I only found Command_SetPlayer(command, playerid, set) which do it for only one command.
Thanks for your help.
Reply
#2

You could make a function for logging and call it all your admin functions. As for the Command_SetPlayer, if you want to disable ALL the commands for one player, make a loop and toggle all the commands to disabled for the player.
Reply
#3

I had the idea of the loop too but what have I to put as highest value ?

And for the logs, I would like something (if possible) to put just in one callback, not in all of them.

Thanks
Reply
#4

Ok thank you ! And do you have a solution for my logs question ?
Reply
#5

No, I don't

[18:46:15] =======================================
[18:46:15] | |
[18:46:15] | YSI version 3.09.0684 |
[18:46:15] | By Alex "******" Cole |
[18:46:15] | |
[18:46:15] =======================================
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)