Thread: [Subplugin Submission] [ZP] Addon: Lottery v2.3
View Single Post
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 08-22-2009 , 01:10   Re: [ZP] Addon: Lottery v1.9
Reply With Quote #3

PHP Code:
if(g_loteria_usernum[id] == g_loteria_num)
        {
            new 
name[32]; get_user_name(idnamecharsmax(name))
            
set_hudmessage(0255255, -1.00.4010.05.05.01.0, -1)
            
show_hudmessage(0"%L"LANG_SERVER"WIN_PLAYER"g_loteria_numnameget_pcvar_num(cvar_reward_ammos_for_win))
            
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) + get_pcvar_num(cvar_reward_ammos_for_win))
        }
        else
        {
            
set_hudmessage(0255255, -1.00.4010.05.05.01.0, -1)
            
show_hudmessage(id"%L"LANG_SERVER"ALL_LOSERS"g_loteria_num)
        } 
Should be

PHP Code:
if(g_loteria_usernum[id] == g_loteria_num)
        {
            new 
name[32]; get_user_name(idnamecharsmax(name))
            
set_hudmessage(0255255, -1.00.4010.05.05.01.0, -1)
            
show_hudmessage(id"%L"id"WIN_PLAYER"g_loteria_numnameget_pcvar_num(cvar_reward_ammos_for_win))
            
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) + get_pcvar_num(cvar_reward_ammos_for_win))
        }
        else
        {
            
set_hudmessage(id255255, -1.00.4010.05.05.01.0, -1)
            
show_hudmessage(id"%L"id"ALL_LOSERS"g_loteria_num)
        } 
if you dont change this you are showing the hud 32 times to all players

And change this
Modification: Counter-Strike
Category: Fun Stuff
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 08-22-2009 at 01:15.
Starsailor is offline