Is That What You Want?
PHP Code:
buttons & IN_SPEED //SHIFT Button
PHP Code:
bool buttondelay [MAXPLAYERS+1];
public Action OnPlayerRunCmd (int client, int &buttons)
{
if (buttons & IN_SPEED && !buttondelay[client])
{
buttondelay[client] = true;
CreateTimer(3.0, Resetbuttondelay, client);
PrintToChat(client, "You have pressed the <SHIFT> button");
}
}
public Action Resetbuttondelay(Handle timer, int client)
{
buttondelay[client] = false;
}
__________________