Check if mouse fire button has been clicked 5 times
#2

easy
pawn Код:
new press[MAX_PLAYERS]; // put this in the tp of the script
public OnStateKeyChange(playerid, newkeys, oldkeys)
{
  if(newkeys == KEY_FIRE)
  {
    press[playerid] += 1;
    return 1;
  }
  if(press[playerid] == 5)
  {
    // your action...
  }
}
// script

Reply


Messages In This Thread
Check if mouse fire button has been clicked 5 times - by Yoyoyo - 29.06.2009, 21:40
Re: Check if mouse fire button has been clicked 5 times - by James_Alex - 29.06.2009, 22:00
Re: Check if mouse fire button has been clicked 5 times - by Yoyoyo - 29.06.2009, 22:12

Forum Jump:


Users browsing this thread: 1 Guest(s)