Raised This Month: $ Target: $400
 0% 

[HELP] Retrieve Server IP and some more questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
moimel
Junior Member
Join Date: Mar 2009
Old 05-17-2009 , 01:38   [HELP] Retrieve Server IP and some more questions
Reply With Quote #1

Thanks for the help, I searched the forum with no luck.

first of all how to Retrieve Server IP !
another question I have is how to define an onJoin event that will be call some function every time player is entering the server, and the event when round is ended (one tean won).
Im talking about counter-strike.

TIA!
ops my bad , this post should be move to Scripting Help. sory
moimel is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-17-2009 , 03:24   Re: [HELP] Retrieve Server IP and some more questions
Reply With Quote #2

get_user_ip( 0, szServerIp, len );
__________________
xPaw is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 05-17-2009 , 03:33   Re: [HELP] Retrieve Server IP and some more questions
Reply With Quote #3

For detecting round end and other things in this category, read this tutorial:
http://forums.alliedmods.net/showthread.php?t=42159

For a client entering or leaving the server use the following forwards (depending what you want to know or do):

http://amxmodx.org/funcwiki.php?go=func&id=9
http://amxmodx.org/funcwiki.php?go=func&id=11
http://amxmodx.org/funcwiki.php?go=func&id=13
http://amxmodx.org/funcwiki.php?go=func&id=10
__________________
In Flames we trust!
Nextra is offline
moimel
Junior Member
Join Date: Mar 2009
Old 05-17-2009 , 04:47   Re: [HELP] Retrieve Server IP and some more questions
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
get_user_ip( 0, szServerIp, len );

Thank you all !
moimel is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-17-2009 , 06:20   Re: [HELP] Retrieve Server IP and some more questions
Reply With Quote #5

and just cuz nobody said this yet,
wrong forum section!
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
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 01:25.


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