Raised This Month: $ Target: $400
 0% 

Help With a Custom Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-01-2007 , 19:36   Re: Help With a Custom Plugin
Reply With Quote #4

Try this :

Code:
    #include <amxmodx>     #include <amxmisc>     #define PLUGIN  "say connect"     #define VERSION "1.0"     #define AUTHOR  "Reaper2331"     new         p_serverip,         p_email,         p_clanwebsite;                     #define _charsmax(%1) sizeof( %1 ) - 1             public plugin_init()     {         register_plugin( PLUGIN, VERSION, AUTHOR );               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" );                 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 PrintText( id )     {         new steamid[32];         get_user_authid( id, steamid, _charsmax( steamid ) );                 client_print( id, print_chat, "[AMXX] Your Steam ID is %s" , steamid );     }             public PrintText2( id )     {         new ip[32];         get_user_ip( id, ip, _charsmax( ip ) );               client_print (id, print_chat, "[AMXX] Your IP Adress is %s" , ip )     }             public PrintText3( id )     {         new serverip[128];         get_pcvar_string( p_serverip, serverip, _charsmax( serverip ) );                 client_print( id, print_chat, "[AMXX] This Server IP is %s" , serverip );     }             public PrintText4(id)     {         new email[128];         get_pcvar_string( p_email, email, _charsmax( email ) );                 client_print( id, print_chat, "[AMXX] The Admins Email is %s" , email );     }             public PrintText5(id)     {         new website[128];         get_pcvar_string( p_clanwebsite, website, _charsmax( website ) );                 client_print( id, print_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 );     } */


For the the last function, you miss an argument, see : http://www.amxmodx.org/funcwiki.php?...info&go=search
__________________
Arkshine 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