Nick: RealWolf. Grad: MembruMesaje : 379 Bani : 2532 Multumiri : 2
| Subiect: [Plugin] Damage to Money Sam Iul 11, 2015 8:32 am | |
| ]1.Titlu: [Plugin] Damage to Money 2.Descriere: Cand un jucator face damage , acel damage va fi transformat in bani 3.Download: - Cod:
-
#include <amxmodx> #include <cstrike>
new const PLUGIN [] = "Damage to Money"; new const VERSION [] = "1.0"; new const AUTHOR [] = "LordOfNothing";
new cvar;
public plugin_init() { register_plugin(PLUGIN,VERSION,AUTHOR)
cvar = register_cvar("dtm_enable","1");
register_event("Damage", "give_bonus", "b", "2!0", "3=0", "4!0")
server_print("%s(v%s) by %s",PLUGIN,VERSION,AUTHOR) }
public give_bonus(id) { static value; value = read_data( 2 ); static attacker; attacker = get_user_attacker(id)
if(!is_user_alive(attacker) || !attacker) return PLUGIN_HANDLED;
if(get_pcvar_num(cvar)) { cs_set_user_money(attacker, cs_get_user_money(attacker) + value); return PLUGIN_CONTINUE; } return PLUGIN_CONTINUE; } 4.Nume: Damage to Money 5.Versiunea: 1.0 6.Instalare: => Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting => Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins => Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: nume_plugin.amxx 7.Cvars: dtm_enable <<1/0>> (enable/disable) dtm_multplie <<1>> (Multiple your damage bonus) dtm_team <<1/2/3/4>> (1=Only Tero, 2=Only Ct, 3=Only Spectator, 4=All Teams) |
|