Can I call another plugins commands?
I'm wondering if there is a way to call another plugins command from within a plugin i'm writing(trying to)
I currently have the plugins on the server that allow me to use amx_godmode, and amx_noclip.. What I'm trying to do is create a plugin that will allow me to do "amx_zeus <player>" and it will execute "amx_godmode <player> 1" on them. I don't want to call to the includes that use the functions like set_user_godmode(id,1) or whatever.. I specifically want to call to the commands offered by plugins already on the server. Also, I know that there are probably other Zeus Plugins out there, but this is mostly for me to learn how to do and stuff.. that's why I'm doing it myself. Here's kind of what I have: Which is just the basic outside Code:
|
In your case, you can use the server_cmd function, which runs a server command.
Code:
|
Try this.. I just copyed and pasted really fast from some of my other plugins. Not sure if it works... Remove the client_print if you want...
Code:
|
XunTric, you can't just put %s and expect it to know what string you want it to replace it with, you have to specify that in the additional parameters.
|
Umm ok.. Btw avalanche, look at my other thread "Need help with a little NS script" hehe..
|
Quote:
|
lol. " :lol: "? What was so funny about that? Im not that good at this lol.
|
| All times are GMT -4. The time now is 14:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.