I have been fixing the bugs in the fun mod module, but I cant seem to fix invisibility. Help me find out why this works sometimes, sometimes it doesnt and sometimes it works for a few seconds and then doesnt.
case 0:
{
new money=cs_get_user_money(id)
if(money<=invisprice2){
client_print(id, print_chat, "[FUN MOD] You need $%d to get invisibility",invisprice)
return PLUGIN_HANDLED
}
else{
new name[32]
get_user_name(id,name,31)
set_user_rendering(id,kRenderFxGlowShell, 0,0,0, kRenderTransAlpha,0)
cs_set_user_money(id, money-invisprice)
client_print(id, print_chat, "[FUN MOD] You bought invisibility and you are now invisible for this round.")
set_hudmessage(200, 50, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
show_hudmessage(0,"%s bought invsibility! You better run for your life!", name)
}
new alive=is_user_alive(id)
if(alive = 0) {
set_user_rendering(id,kRenderFxGlowShell, 0,0,0, kRenderTransAlpha,25)
}
}
__________________
|