Page 1 of 1

Call function from outer script

PostPosted: Mon Sep 03, 2012 10:23 am
by Neka
Hello!
I need to call some function in my modyle from outside, from php script in my case. How can i do this?

I see it in this way:
PHP script | | Custom gg script
command | -> rcon -> *(?)* -> | call py func

But what can be in *(?)* place?

PostPosted: Mon Sep 03, 2012 3:19 pm
by satoon101
You can create a server command with cmdlib:
http://python.eventscripts.com/pages/Cmdlib

Just register the command on load and unregister it on unload.

Satoon