Raised This Month: $ Target: $400
 0% 

Client Connect + Client_print


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 06-19-2009 , 02:25   Client Connect + Client_print
Reply With Quote #1

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);
ProIcons is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-19-2009 , 02:31   Re: Client Connect + Client_print
Reply With Quote #2

Use get_user_ip() + http://forums.alliedmods.net/showthread.php?t=94960 to color.
__________________
Arkshine is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 06-19-2009 , 02:48   Re: Client Connect + Client_print
Reply With Quote #3

well thanks. But on the
get_user_ip ( index, ip[], len, [ without_port ] )
can you give me an example of a code?
ProIcons is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 06-19-2009 , 02:59   Re: Client Connect + Client_print
Reply With Quote #4

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
ProIcons is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-19-2009 , 03:51   Re: Client Connect + Client_print
Reply With Quote #5

The syntax is right, though you may want to not get the port, so use 1 instead of 0.
__________________
Arkshine 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 15:33.


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