Raised This Month: $51 Target: $400
 12% 

Ping servers


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:         
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 03-15-2005 , 06:48   Ping servers
Reply With Quote #1

Hi, I've again made a plugin (amx scriptin rulez)!

This plugin is able to establish a connection to a server of your choice and immediately quit the connection afterwards. What is this good for? Well, this basically finds out whether the server is running or not, and displays a nice HUD message to all clients if the server is reachable.
If the server is unreachable, all admins will receive a chat message telling them so. If the plugin encounters a networking failure, the AMX log will tell you.

The server this plugin connects to will most likely not even notice this connection since the plugin doesn't send a single packet of data, it just connects and disconnects again.
This script was originally written for a shoutcast server but should work with all other TCP(!) servers as well.

CVars:
amx_sc_host <ip> - IP address of the target server
amx_sc_port <#> - Port number to connect on
amx_sc_name <Name> - server's name / description to display in the HUD msg - do not exceed 80 characters!

hope this is helpful ;)
Attached Files
File Type: sma Get Plugin or Get Source (pingshoutcast.sma - 1129 views - 2.3 KB)
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 03-15-2005 , 06:59  
Reply With Quote #2

very nice idea Ill try it later
this can be usefull I think
good job
Proach is offline
Send a message via ICQ to Proach
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 12-13-2005 , 19:20  
Reply With Quote #3

Choose a category. Old. Moved to Unapproved/Old Plugins forum.
__________________
twistedeuphoria is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:12.


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