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(id, BLUE,"You must be alive to use this function")
return PLUGIN_HANDLED
}
if(user_has_weapon(id, CSW_SCOUT))
{
ColorChat(id, BLUE, "You already have a Scout")
return PLUGIN_HANDLED
}
if (timer_started[id])
{
cs_set_weapon_ammo(give_item(id, "weapon_scout"), 0)
ColorChat(id, BLUE, "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
}