Raised This Month: $ Target: $400
 0% 

Give Money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-06-2009 , 09:12   Re: Give Money
Reply With Quote #4

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike>   public plugin_init()         register_concmd("amx_rich", "Rich", ADMIN_SLAY, "<name or #userid> - gives $16000");   public Rich(Client, Level, Command) {         if (!cmd_access(Client, Level, Command, 3))                 return PLUGIN_HANDLED;           new Argument[32]         read_argv(1, Argument, 1);           new Target = cmd_target(Client, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY);           if (Target)         {                 new AdminName[32], TargetName[32];                   get_user_name(Client, AdminName, 31);                 get_user_name(Target, TargetName, 31);                 cs_set_user_money(Target, 16000, 1);                 client_print(0, print_chat, "ADMIN %s :  set %s's money to $16000", AdminName, TargetName);         }           return PLUGIN_HANDLED; }
__________________
hleV 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 17:03.


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