Raised This Month: $ Target: $400
 0% 

Money Script Command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-21-2009 , 20:03   Money Script Command
Reply With Quote #1

is the script command to give money give_money?
Maloonka is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 06-21-2009 , 20:17   Re: Money Script Command
Reply With Quote #2

Wrong FORUM dude.
VIVA SEARCH
http://www.amxmodx.org/compiler.php
__________________
-Acid- is offline
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-21-2009 , 20:22   Re: Money Script Command
Reply With Quote #3

which forum would i post this in
Maloonka is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 06-21-2009 , 20:27   Re: Money Script Command
Reply With Quote #4

Suggestions / Requests
Did u find the plugin u were looking for?
__________________
-Acid- is offline
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-21-2009 , 20:35   Re: Money Script Command
Reply With Quote #5

not looking for the plugins looking for the exact command that gives you money, for example if give_money worked, give_money 5000
Maloonka is offline
Old 06-22-2009, 00:26
grkkilla
This message has been deleted by grkkilla.
-Acid-
Senior Member
Join Date: Feb 2009
Old 06-22-2009 , 01:49   Re: Money Script Command
Reply With Quote #6

so u want a plugin that has the command give_money??
__________________
-Acid- is offline
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-22-2009 , 03:12   Re: Money Script Command
Reply With Quote #7

no i want the action command that gives money, like an example to have the give weapon action you put give_item then the name
Maloonka is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-22-2009 , 03:48   Re: Money Script Command
Reply With Quote #8

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
 
#define PLUGIN "Give me money PLSPLS"
#define AUTHOR "Xellath"
#define VERSION "0.1"
 
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
 
    
register_concmd("give_money""GiveMoney"ADMIN_KICK"<name|#userid> <value>");
}
 
public 
GiveMoney(id)
{
    if(!(
get_user_flags(id) & ADMIN_KICK))
        return 
PLUGIN_HANDLED;
 
    new 
arg[32], arg2[32];
    
read_argv(1arg32);
    
read_argv(2arg232);
 
    new 
Target cmd_target(idarg0);
    new 
Value str_to_num(arg2);
 
    if(!
Target)
    {
        
console_print(id"Target not found!");
        return 
PLUGIN_HANDLED;
    } 
 
    new 
money cs_get_user_money(Target);
    new 
name[32];
 
    if(
Target)
    {
        
cs_set_user_money(Targetmoney Value);
 
        
get_user_name(idname31);
        
client_print(Targetprint_chat"[AMXX] ADMIN %s added %s to your total amount of money."nameValue);
    }
 
    return 
PLUGIN_HANDLED;

Next time, search.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 06-22-2009 at 03:50.
Xellath is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 06-22-2009 , 04:01   Re: Money Script Command
Reply With Quote #9

cs_set_user_money
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-22-2009 , 14:33   Re: Money Script Command
Reply With Quote #10

cs_set_user_money just sets it to the number you put not give it
Maloonka is offline
Reply



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 15:34.


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