Hello everyone, I was wondering how can you register a cl_cmd to a plugin, like for example there is this plugin that is on all the time, but i want it to be on when i a write a text like : /example, and it turns on and shows message that the player did that thing like turned on longjump stats (its not about lj stats, its just example).
PHP Code:
client_print(0, print_chat, "%s example", name);
And I want to make it so when you write again that /example it turns off and says Example turned off example.
PHP Code:
register_clcmd("say /example", "cmd_example_example", ADMIN_ALL);
Do i need to write theese 2 lines or something more. And how do I specify that I want it just for counter-terrorists that plugin ( they dont need to be admins ).
Hope You understood me!
Thanks!
Mankind