AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Client Connect + Client_print (https://forums.alliedmods.net/showthread.php?t=95070)

ProIcons 06-19-2009 02:25

Client Connect + Client_print
 
Please help me..
How can i find the ip on event: public client_connect(id)

And How can i make this text to have color blue
client_print(0, print_chat, "(Say: CTs) <%s> : %s", name, message2);
And this red
client_print(0, print_chat, "(Say: Terrorist) <%s> : %s", name, message2);

Arkshine 06-19-2009 02:31

Re: Client Connect + Client_print
 
Use get_user_ip() + http://forums.alliedmods.net/showthread.php?t=94960 to color.

ProIcons 06-19-2009 02:48

Re: Client Connect + Client_print
 
well thanks. But on the
get_user_ip ( index, ip[], len, [ without_port ] )
can you give me an example of a code?

ProIcons 06-19-2009 02:59

Re: Client Connect + Client_print
 
get_user_ip(id, IP, 15, 0)

This format i thing is not right...
Tell me how can i save a clients ip on the variable IP

Arkshine 06-19-2009 03:51

Re: Client Connect + Client_print
 
The syntax is right, though you may want to not get the port, so use 1 instead of 0.


All times are GMT -4. The time now is 15:33.

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