HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "Lathatatlansag"
#define AUTHOR "expert"
#define VERSION "1.0"
new cvar_cost
new g_pcvaramount
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("lathatatlansag","invisible")
register_concmd("say lathatatlansag","invisible")
register_concmd("say /lathatatlansag","invisible")
RegisterHam(Ham_Killed, "player", "halal", 1)
g_pcvaramount = register_cvar("lathatatlansag_max", "0")
cvar_cost = register_cvar("lathatatlansag_ara", "16000")
}
public halal(id)
{
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255)
}
public invisible(id)
{
if ( !is_user_alive(id) )
{
client_print(id,print_chat, "[Lathatatlansag] Csak Elo Jatekos tud Lathatatlansagot venni")
return PLUGIN_HANDLED
}
new money = cs_get_user_money(id)
if (money >= get_pcvar_num(cvar_cost))
{
cs_set_user_money(id, money - get_pcvar_num(cvar_cost))
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, get_pcvar_num(g_pcvaramount))
client_print(id,print_chat, "[Lathatatlansag] Te sikeresen megvetted a lathatatlansagot!!")
}
else
{
client_print(id, print_chat, "[Lathatatlansag] Nincs eleg penzed a Lathatatlansagra-ra. ARA $%d ", get_pcvar_num(cvar_cost))
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}