AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Retrieve Server IP and some more questions (https://forums.alliedmods.net/showthread.php?t=92570)

moimel 05-17-2009 01:38

[HELP] Retrieve Server IP and some more questions
 
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

xPaw 05-17-2009 03:24

Re: [HELP] Retrieve Server IP and some more questions
 
get_user_ip( 0, szServerIp, len );

Nextra 05-17-2009 03:33

Re: [HELP] Retrieve Server IP and some more questions
 
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

moimel 05-17-2009 04:47

Re: [HELP] Retrieve Server IP and some more questions
 
Quote:

Originally Posted by xPaw (Post 829057)
get_user_ip( 0, szServerIp, len );


Thank you all !

SchlumPF* 05-17-2009 06:20

Re: [HELP] Retrieve Server IP and some more questions
 
and just cuz nobody said this yet,
wrong forum section!


All times are GMT -4. The time now is 01:25.

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