Raised This Month: $ Target: $400
 0% 

Give Money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 03-06-2009 , 10:51   Re: Give Money
Reply With Quote #9

Done. I made that plugin. But there is one bug. When I type "amx_rich emilioneri"
I don't get money. I have to type any symbol, letter or number after the name.
for example: "amx_rich emilioneri s" or "amx_rich emilioneri 3" or "amx_rich emilioneri >" and etc.

Here is the code:

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

#define PLUGIN "Admin Rich"
#define VERSION "1.0"
#define AUTHOR "emilioneri"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_concmd("amx_rich""cmd_rich"ADMIN_SLAY"<name | #userid> - makes player rich!")
    
    return 
PLUGIN_HANDLED
}

public 
cmd_rich(idlevelcid)
{
    if (!
cmd_access(idlevelcid3))
             return 
PLUGIN_HANDLED
         
    
new Argument[32]
    
    
read_argv(1Argument31)
    
    new 
Target cmd_target(idArgumentCMDTARGET_ALLOW_SELF)
    
    if(
Target)
    
    
cs_set_user_money(Target16000)
    
    return 
PLUGIN_HANDLED

__________________
Emilioneri is offline
Send a message via Skype™ to Emilioneri
 



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 17:03.


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