#include <amxmodx>
#include <cstrike>
#include <fun>
#include <zombieplague>
#define PLUGIN "HP"
#define VERSION "1.1"
#define AUTHOR "Mr.Cma"
new plugin_on
new price
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /Mr.Cma", "MC")
plugin_on = register_cvar("amx_Mr.Cma", "1")
price = register_cvar("amx_koksy_cost", "3100")
}
public koksy(id)
{
if(!plugin_on)
return;
new money = zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 10)
new price_c = get_pcvar_num(price)
if(money < price_c)
client_print(id, print_chat, "Nie masz tyle AP")
else
{
set_user_health(id, 150)
client_print(id, print_chat, "Doładowałes sie!")
cs_set_user_money(id, money - price_c)
}
}
set_user_health(id,1000);jeżeli coś jest źle proszę pomóżcie mi


Dodatki SourceMod



Temat jest zamknięty









