Raised This Month: $ Target: $400
 0% 

Can anybody help me with my plugin?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
e12harry
Member
Join Date: Apr 2010
Old 09-20-2011 , 05:47   Re: Can anybody help me with my plugin?
Reply With Quote #7

You can try:
PHP Code:
#include <amxmodx>
#include <colorChat>

#define PLUGIN "IP show"
#define VERSION "1.0"
#define AUTHOR "Fantarn"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /ip""serverip")
}

public 
serverip(id)
{
    new 
szIP32 ]
    
get_user_ip( !is_dedicated_server( ), szIPcharsmax(szIP) )
    
    
ColorChat(0GREEN"The Server ip is %s"szIP)

e12harry is offline
 



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 19:41.


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