Quote:
Call a timer and return Plugin_Handled on the button
|
Something like this works fine, thanks.
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) && (buttons & IN_SPEED) && (buttons & IN_USE))
{
CanPlayerDrop[client] = false;
CreateTimer(2.0, ResetDelay, client);
Command_Drop(client, slot)
buttons &= ~IN_USE;
}
return Plugin_Continue;
}