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-20-2007 , 17:49   Re: Help With a Custom Plugin
Reply With Quote #9

Here try this (I changed your indenting by great heights)

Also, things you need to fix. you don't need 15 spaces in between something, only one space is needed.

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

#define PLUGIN  "Player Info!" 
#define VERSION "1.0" 
#define AUTHOR  "Reaper2331" 

#define _charsmax(%1) sizeof( %1 ) - 1

new p_serverip
new p_email
new p_clanwebsite


public plugin_init() 

    
register_pluginPLUGINVERSIONAUTHOR );
    
    
register_clcmd("say /steamid" ,"PrintText" ADMIN_ALL"gets your steam id for you");
    
register_clcmd("say /myip"    ,"PrintText2"ADMIN_ALL"gets your IP Adress for you");
    
register_clcmd("say /serverip","PrintText3"ADMIN_ALL"gets the Servers IP Adress for you");
    
register_clcmd("say /abuse"   ,"PrintText4"ADMIN_ALL"Report Abuse");
    
register_clcmd("say /website" ,"PrintText5"ADMIN_ALL"Clans Website");
    
register_clcmd("say /myinfo"  ,"PrintText6"ADMIN_ALL"gets your info");
    
    
p_serverip register_cvar("amx_serverip"   "69.28.220.195:27035");
    
p_email register_cvar("amx_adminemail" "[email protected]");
    
p_clanwebsite  =  register_cvar("amx_clanwebsite""http://www.clanbha.com");


public 
PrintTextid )
{
    new 
steamid[32];
    
get_user_authididsteamid_charsmaxsteamid ) );
    
    
client_printidprint_chat"[AMXX] Your Steam ID is %s" steamid );
    return 
PLUGIN_HANDLED
}

public 
PrintText2id )
{
    new 
ip[32];
    
get_user_ipidip_charsmaxip ) );
    
    
client_print (idprint_chat"[AMXX] Your IP Adress is %s" ip );
    return 
PLUGIN_HANDLED
}

public 
PrintText3id )
{
    new 
serverip[128];
    
get_pcvar_stringp_serveripserverip_charsmaxserverip ) );
    
    
client_printidprint_chat"[AMXX] This Server IP is %s" serverip );
    return 
PLUGIN_HANDLED
}

public 
PrintText4(id)
{
    new 
email[128];
    
get_pcvar_stringp_emailemail_charsmaxemail ) );
    
    
client_printidprint_chat"[AMXX] The Admins Email is %i" email );
    return 
PLUGIN_HANDLED
}

public 
PrintText5(id)
{
    new 
website[128];
    
get_pcvar_stringp_clanwebsitewebsite_charsmaxwebsite ) );
    
    
client_printidprint_chat"[AMXX] The Clans Website is %s" website );
    return 
PLUGIN_HANDLED
}

/*public PrintText6(id)
{
    new myinfo[32];
    get_user_info( id, _, myinfo, _charsmax( myinfo )  );
    
    client_print( id, print_chat, "[AMXX] Your Info Is %s" , myinfo );
    return PLUGIN_HANDLED
}*/ 
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