Raised This Month: $ Target: $400
 0% 

Help With a Custom Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-01-2007 , 16:14   Re: Help With a Custom Plugin
Reply With Quote #2

Try This:
PHP Code:
#include <amxmodx> 
#include <amxmisc> 

#define PLUGIN "say connect" 
#define VERSION "1.0" 
#define AUTHOR "Reaper2331" 

public plugin_init() { 
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("/steamid""PrintText"ADMIN_ALL"Gets your steam id for you")
    
register_concmd("/myip""PrintText2"ADMIN_ALL"Gets your IP Adress for you")
    
register_concmd("/serverip""PrintText3"ADMIN_ALL"Gets the Servers IP Adress for you")
    
register_concmd("/abuse""PrintText4"ADMIN_ALL"Report Abuse")
    
register_concmd("/website""PrintText5"ADMIN_ALL"Clans Website")
    
register_concmd("/myinfo""PrintText6"ADMIN_ALL"Gets your info")


public 
PrintText(id)
{
    new 
steamid get_user_authid(id)
    
client_print (idprint_chat"[AMXX] Your Steam ID is #%d" steamid)
    return 
PLUGIN_HANDLED
}

public 
PrintText2(id)
{
    new 
ip get_user_ip(id)
    
client_print (idprint_chat"[AMXX] Your IP Adress is #%d" ip)
    return 
PLUGIN_HANDLED
}

public 
PrintText3(id)
{
    new 
serverip register_cvar("amx_serverip""69.28.220.195:27035")
    
client_print (idprint_chat"[AMXX] This Server IP is #%d" serverip)
    return 
PLUGIN_HANDLED
}

public 
PrintText4(id)
{
    new 
email register_cvar("amx_adminemail""[email protected]")
    
client_print (idprint_chat"[AMXX] The Admins Email is #%d" email)
    return 
PLUGIN_HANDLED
}

public 
PrintText5(id)
{
    new 
website register_cvar("amx_clanwebsite""http://www.clanbha.com")
    
client_print (idprint_chat"[AMXX] The Clans Website is #%d" website)
    return 
PLUGIN_HANDLED
}

public 
PrintText6(id)
{
    new 
myinfo get_user_info(id)
    
client_print (idprint_chat"[AMXX] Your Info Is #%d" myinfo)
    return 
PLUGIN_HANDLED


Last edited by X-Script; 09-01-2007 at 16:16.
X-Script 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 16:15.


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