Define function - pressed key - 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)
+--- Thread: Define function - pressed key (
/showthread.php?tid=375817)
Define function - pressed key -
StoNeR12 - 08.09.2012
Hi, guys.
I am fighting with somebody, from a rival server... he's having a hack, which crashes the server, by pressing combination CTRL + 9.
I tried to make a script... but I don't know how to make define function (to detect HACK ON, and pressed key's).
Код:
#define PRESSED(%0)
if (PRESSED( KEY_FIRE && 9)
{format(string,sizeof(string),"TEXT HERE" , sendername));
SendClientMessage(COLOR_LIGHTRED, string);
Ban(playerid);
}
}
The define function is 'PRESSED' .
Do you have an idea about how to make this ?
Re: Define function - pressed key -
C00K13M0N$73R - 08.09.2012
You can only detect the keys inserted in samp.
Look here
Re: Define function - pressed key -
StoNeR12 - 08.09.2012
Then, how I can detecte this hack ? By a define function.