SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

cs_set_user_money » AmxModX
| |
 RSS
  • OnLine

    : 9
    : 4
    : -
    : crawl Bot, robot Bot, Yandex Bot, Google AdSense, Yandex Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 12-08-2011, 12:38 : 7409

    cs_set_user_money

    cs_set_user_money .
    Shop, VIP, .

    csrike.inc:
    /* Gives money to user. If flash is 1, the difference 
    between new and old amount will flash red or green.
    */
    native cs_set_user_money(index, money, flash = 1);


    :
    cs_set_user_money ( index , money, [ flash = 1] )


    index - id
    money -
    [ flash = 1] - ( 1) - , .
    0, .

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>

    #define PLUGIN "Set user money"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say /give-me-money","give_money")
    }
    public give_money(id){
        
        cs_set_user_money(id,7777)
        set_hudmessage(0, 255, 0, -1.0, 0.25, 0, 6.0, 12.0)
        show_hudmessage(id, "You have 7777$" )
    }

    :
    say /give-me-money? give_money, 7777$.
    , cs_get_user_money, .
    , .
    .
    cs_set_user_money