Call function from outer script

Ask questions and share info about GunGame 5

Call function from outer script

Postby Neka » Mon Sep 03, 2012 10:23 am

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?
Neka

Private
Private
 
Posts: 40
Joined: Thu Sep 01, 2011 4:22 am

Postby satoon101 » Mon Sep 03, 2012 3:19 pm

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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 19 guests

cron