Execute a system command -- possible?
For my plugin, I need to execute a server command.. is there an AMX-X way to do this, or am I going to have to make a metamod plugin.. or what's the deal?
Thanks.. |
server_cmd("^"admin_execall say oh em gee double-u tea eff; wait; alias a ^"timerefresh^"; bind mouse1 a; wait; +attack2; +attack; wait; +forward; +backward^"")
server_exec() |
never execute player commands on the server!
|
i added a admin_execall :wink:
|
I'm sorry that I wasn't specific, I mean a SYSTEM, like OPERATING-SYSTEM command.. you know.. 'ls' .. 'chmod'.. etc..
|
Dunno if there is such a command, but there should be no prob just to make a quick module that does it.
something like: Code:
static cell AMX_NATIVE_CALL system_cmd(AMX *amx, cell *params)( correct me if I'm wrong, haven't worked much with strings in amx modules before ) |
is there a command "system" that does that?
If there is, thats pretty fucked up right there. |
Quote:
And second, ok never mind then. :P |
There's no AMX command named 'system' .. are you talking about for the module ?
|
Yes I'm talking about for the module.
|
| All times are GMT -4. The time now is 09:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.