Raised This Month: $ Target: $400
 0% 

Check if player droped scout/weapon name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-16-2012 , 12:41   Check if player droped scout/weapon name
Reply With Quote #1

Ok so I have this, but I need a check if the scout was droped, because the "Due to usage of weapon with..." is always when you drop and type /scout again._.

PHP Code:
public cmdScout(id)
{
    if(! 
is_user_alive(id) && is_user_connected(id))
    {
        
ColorChat(idBLUE,"You must be alive to use this function")
        return 
PLUGIN_HANDLED
    
}
    
    if(
user_has_weapon(idCSW_SCOUT))
    {
        
ColorChat(idBLUE"You already have a Scout")
        return 
PLUGIN_HANDLED
    
}
    
    if (
timer_started[id])
    {
        
cs_set_weapon_ammo(give_item(id"weapon_scout"), 0)
        
ColorChat(idBLUE"Due to usage of weapon with speed +250, you aren't able to get into Pro15 list")
        return 
PLUGIN_HANDLED
    
}
    
    if((
get_user_flags(id) & VIP ))
    {
        
cs_set_weapon_ammo(give_item(id"weapon_scout"), 90)
    }
    else
    {
        
cs_set_weapon_ammo(give_item(id"weapon_scout"), 0)
    }
    return 
PLUGIN_HANDLED

bazhenov93 is offline
 


Thread Tools
Display Modes

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 07:43.


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