Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include <amxmodx>
- #include <cstrike>
- #include <amxmisc>
- #define PLUGIN "Daj pare"
- #define VERSION "1.0"
- #define AUTHOR "Gamer"
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- register_concmd("daj_novac", "DajNovac", ADMIN_RCON, "daj_novac <nick> <kolicina>");
- }
- public DajNovac(id, novac, cid)
- {
- if(!cmd_access(id, novac, cid, 3))
- return PLUGIN_HANDLED;
- new arg1[33], arg2[6];
- read_argv(1, arg1, 32);
- read_argv(2, arg2, 5);
- new igrac = cmd_target(id, arg1);
- new kolicina = str_to_num(arg2)-1;
- cs_set_user_money(igrac, kolicina);
- return PLUGIN_CONTINUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement