Quote:
Originally Posted by Ludastar
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, &impuls, Float: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) == 2 && !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.1, Timer_CanPlayerDrop_Reset, client);
}
return Plugin_Continue;
}