SA-MP Forums Archive
Detect Hydra Fire? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Detect Hydra Fire? (/showthread.php?tid=91661)



Detect Hydra Fire? - Redirect Left - 16.08.2009

Hey!

I'm trying to use GetPlayerKeys to detect if someone fired the hydra rockets (control by default) When they're not in a hydra, the detection works. But as soon as they enter the hydra, it stops detect if you pressed the control button. Any idea how I can detect hydra firing?


Re: Detect Hydra Fire? - paytas - 16.08.2009

Test it yourself.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  new s[16];
  format(s, 16, "keyid = %d", newkeys);
  SendClientMessage(playerid, 0xFFFFFFFF, s);
}