View Single Post
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-14-2008 , 16:44   Re: Award Grenades
Reply With Quote #5

Quote:
Originally Posted by connorr View Post
Then this is false :

PHP Code:
    award_nades str_to_num(arg
And you still don't use pcvars for :
PHP Code:
    register_cvar("award_he""1")
    
register_cvar("award_fb""1")
    
register_cvar("award_fb_amount""2")
    
register_cvar("award_sg""1"
Also you should use DeathMsg event instead of csx forward.

Other big error :
PHP Code:
    if(get_cvar_num("award_fb") == 1) {
        
give_item(attacker"weapon_flashbang")
        if(
get_cvar_num("award_fb_amount") == 2)
            
give_item(attacker"weapon_flashbang")
    } 
Value 2 will never be detected.
That's wierd
I test it and it's working well
When I used DeathMsg I got a no free edict error
I tried putting award_fb_amount to 1 and 2 and both worked probably
And about the:
Code:
award_nades = str_to_num(arg)
Even if I used:
Code:
award_nades = arg
It will still do the same
Correct me if anything is wrong
I'm still new you know
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System

Last edited by Sam Tsuki; 08-14-2008 at 16:46.
Sam Tsuki is offline