Raised This Month: $ Target: $400
 0% 

grab client info


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 09-12-2012 , 17:13   Re: grab client info
Reply With Quote #9

It'd be something like this:
PHP Code:
#include < amxmodx >
#include < fun >

#define VALUE 1

public plugin_init()
    
register_clcmd"say /yay""cmdyay" );

public 
cmdyayi_Index )
{
    if( 
get_user_healthi_Index ) == VALUE )
    {
        static 
szName32 ];
        
get_user_namei_IndexszNamecharsmaxszName ) );

        
set_user_healthi_Index, (get_user_healthi_Index ) + 99) );
        
client_print0print_chat"%s 'yayed'!"szName );
    }

Anyway, as Yami said: you must read the basics in the WIKI/somewhere else if you want any help in this section. Otherwise, post here: http://forums.alliedmods.net/forumdisplay.php?f=12.
__________________


Last edited by floatman; 09-12-2012 at 17:15.
floatman 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 08:15.


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