use the small code next time
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Die Set Cash","1.0","Stax")
new username[18]
new id = get_user_userid(id)
get_user_name(id, username,17)
if(get_user_deaths(id) != -1)
{
if(is_user_alive(id))
{
log_amx("player %s is dead ! $20 is destroyed from his bank account !", username)
client_print(id,print_chat,"Oh dear ! You are dead and the city need to bury your bones ! $20 is gived to the city from your bank account !")
server_cmd("amx_additems %s 202 1", username)
server_cmd("amx_destroymoney %s 20", username)
}
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
__________________