Raised This Month: $ Target: $400
 0% 

Change secondary weapon to a new one


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
leonardo_
Member
Join Date: Nov 2012
Location: Moscow, right now in Vic
Old 02-06-2013 , 19:07   Re: Change secondary weapon to a new one
Reply With Quote #6

Quote:
Originally Posted by wickedd View Post
Strip their weapons first, then give them a weapon.

PHP Code:
if(is_user_alive(player) && get_user_flags(player) & ADMIN_LEVEL_G)
        {
            
strip_user_weaponsplayer)
            
give_item(player"weapon_deagle")
            
give_item(player"ammo_50ae")
            
give_item(player"ammo_50ae")
            
give_item(player"ammo_50ae"
                        
            
if (!get_pcvar_num(g_menu_active))
                return 
PLUGIN_CONTINUE
            
            
if(CurrentRound >= 3)
            {
                
Showrod(player);
            }
        }
    } 

PHP Code:
strip_user_weaponsplayer
what should I do there? Do I change ( player) into something?

Because when I compile it, It gives me 1 warning on that line... What should I do?

and when I deleted that line:
PHP Code:
strip_user_weaponsplayer
It doesn't show an error.

Last edited by leonardo_; 02-06-2013 at 19:18.
leonardo_ is offline
Send a message via ICQ to leonardo_ Send a message via Skype™ to leonardo_
 



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 20:31.


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