Define function - pressed key
#1

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 ?
Reply
#2

You can only detect the keys inserted in samp.
Look here
Reply
#3

Then, how I can detecte this hack ? By a define function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)