Raised This Month: $ Target: $400
 0% 

Help me fix invisibility in fun mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
toben
Member
Join Date: Sep 2005
Old 06-02-2007 , 10:36   Help me fix invisibility in fun mod
Reply With Quote #1

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)
}
}
__________________
toben is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode