SA-MP Forums Archive
y_commands: two questions - 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: y_commands: two questions (/showthread.php?tid=567491)



y_commands: two questions - Etolas - 14.03.2015

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.


Re: y_commands: two questions - Knappen - 14.03.2015

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.


Re : y_commands: two questions - Etolas - 14.03.2015

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


Re : y_commands: two questions - Etolas - 14.03.2015

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


Re : y_commands: two questions - Etolas - 14.03.2015

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] =======================================