Query Code ?

Great place to talk about anything that doesn't fit into any other forum
Post Reply
smsreg
Posts: 9
Joined: Sun Jun 26, 2011 9:44 am

Query Code ?

Post by smsreg » Sat Jul 09, 2011 9:12 am

hello , we whant to add some custom games however we do not know the

Query Code

can anyone explain how we can be able to add our own Query Code ?

Mike
Staff
Posts: 227
Joined: Fri Jun 04, 2010 10:29 pm

Re: Query Code ?

Post by Mike » Sun Jul 10, 2011 11:22 am

Most games have a standard query code to use, what game are you trying to add compatibility for?

smsreg
Posts: 9
Joined: Sun Jun 26, 2011 9:44 am

Re: Query Code ?

Post by smsreg » Sun Jul 10, 2011 8:46 pm

MineCraft :) and ShoutCast , and yes i manage to make shoutcast work like a game :)) even with AutoDJ :P

Mike
Staff
Posts: 227
Joined: Fri Jun 04, 2010 10:29 pm

Re: Query Code ?

Post by Mike » Sun Jul 10, 2011 9:14 pm

There are already query codes for minecraft and minequery.


You will need to create your own query method for shoutcast using the game_query_replace hook, this will require some PHP knowledge. Please view our minecraft hook as an example of how to add your own, the code is located at includes\hooks\minecraft_query.php.

Post Reply