Thank you!
But...
I startet coding this plugin 2004....
I found it yesterday an looked at its code...
The i realized that i´ve forgot everything i know about coding plugins ;)
So your answer IS really helpful, BUT i dont know how i put this into my plugin ;)
this is my code so far...
Code:
public racost(id) {
if(!is_user_alive(id))
{
client_print(id,print_chat,"[BCM] Tote Menschen brauchen kein Uran^^.")
return PLUGIN_HANDLED
}
new money,cost
money = cs_get_user_money(id)
cost = get_cvar_num("buy_racost")
if( money < cost) {
client_print(id,print_chat,"[BCM] Du hast nicht genug Geld. Der Cheat kostet: $%i",cost)
return PLUGIN_HANDLED
}
if( money > cost) {
new money,cost
money = cs_get_user_money(id)
cost = get_cvar_num("buy_racost")
new name[35]
get_user_name(id,name,34)
client_print(0,print_chat,"[BCM] %s ist radioaktiv verseucht!",name)
cs_set_user_money(id,(money - cost),1)
set_user_rendering(id,kRenderFxGlowShell,255,255,0,kRenderNormal,25)
}
return PLUGIN_HANDLED
}
__________________