Thread: [Solved] [L4D2] Weapons
View Single Post
Uncle Jessie
Member
Join Date: May 2016
Location: Mind Prison
Old 03-08-2017 , 08:01   Re: [L4D2] Weapons
Reply With Quote #5

Quote:
Originally Posted by Ludastar View Post
you should be more specific, i can't understand your vague question?
If slot 0 then press button, weapons drops normally if slot 2 or 3, then weapons drops from these two slots. mean auto slots switching and all weapon drops.
My english is bad sorry

edit:
solved
PHP Code:
public Action:OnPlayerRunCmd(client, &buttons, &impulsFloat:vel[3], Float:angles[3], &weapon)
{
    if(
CanPlayerDrop[client] == false && (buttons IN_SPEED) && (buttons IN_USE))
    {
        
buttons &= ~IN_USE;
        return 
Plugin_Continue;
    }
            
    if(
GetClientTeam(client) == && !IsFakeClient(client) && IsPlayerAlive(client) && h_ClientTimer[client] == INVALID_HANDLE && (buttons IN_SPEED) && (buttons IN_USE))
    {
        
buttons &= ~IN_USE;
        
CanPlayerDrop[client] = false;
        
h_ClientTimer[client] = CreateTimer(0.1Timer_CanPlayerDrop_Resetclient);
    }
    
    return 
Plugin_Continue;


Last edited by Uncle Jessie; 03-14-2017 at 23:03.
Uncle Jessie is offline