AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Money Script Command (https://forums.alliedmods.net/showthread.php?t=95266)

Maloonka 06-21-2009 20:03

Money Script Command
 
is the script command to give money give_money?

-Acid- 06-21-2009 20:17

Re: Money Script Command
 
Wrong FORUM dude.
VIVA SEARCH
http://www.amxmodx.org/compiler.php

Maloonka 06-21-2009 20:22

Re: Money Script Command
 
which forum would i post this in

-Acid- 06-21-2009 20:27

Re: Money Script Command
 
Suggestions / Requests
Did u find the plugin u were looking for?

Maloonka 06-21-2009 20:35

Re: Money Script Command
 
not looking for the plugins looking for the exact command that gives you money, for example if give_money worked, give_money 5000

-Acid- 06-22-2009 01:49

Re: Money Script Command
 
so u want a plugin that has the command give_money??

Maloonka 06-22-2009 03:12

Re: Money Script Command
 
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

Xellath 06-22-2009 03:48

Re: Money Script Command
 
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.

ProIcons 06-22-2009 04:01

Re: Money Script Command
 
cs_set_user_money

Maloonka 06-22-2009 14:33

Re: Money Script Command
 
cs_set_user_money just sets it to the number you put not give it


All times are GMT -4. The time now is 15:34.

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