AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [sockets/callback] how to get callback from sockets server (https://forums.alliedmods.net/showthread.php?t=192701)

dxteam 08-13-2012 07:28

[sockets/callback] how to get callback from sockets server
 
I need to create something like "connect api".

I have structure:
hlds -> node.js -> mysql

when client connect to server i need to check his current name
in database. And i can`t to add mysql connection info into the plugin, bcs this plugin can use many peoples.
First of all i need to send connected player info into node.js server. after that check this name in mysql and if okay send back to node.js and hlds server something like that:
{ player:testplayer,status:true } and if okay, server allow connection to the server.

My questions are:
How can i get this callback from node.js server?
And after that i think needs to decrypt a json in hlds?

Exolent[jNr] 08-13-2012 09:40

Re: [sockets/callback] how to get callback from sockets server
 
Sockets


All times are GMT -4. The time now is 05:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.