Raised This Month: $ Target: $400
 0% 

Help With a Custom Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 09-20-2007 , 17:31   Re: Help With a Custom Plugin
Reply With Quote #6

Ok the
/steamid
/myip
works

but the
/abuse
/website
/serverip
doesn't work


this is my code

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#define PLUGIN  "Player Info!" 
#define VERSION "1.0" 
#define AUTHOR  "Reaper2331" 
new 
p_serverip,
p_email,
p_clanwebsite;

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

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 );
}

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

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

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

public 
PrintText5(id)
{
 new 
website[128];
 
get_pcvar_stringp_clanwebsitewebsite_charsmaxwebsite ) );
 
 
client_printidprint_chat"[AMXX] The Clans Website is %s" website );
}
/* public PrintText6(id)
{
new myinfo[32];
get_user_info( id, _, myinfo, _charsmax( myinfo )  );
client_print( id, print_chat, "[AMXX] Your Info Is %s" , myinfo );
} */ 
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
 



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