20.11.2010, 08:08
There is no default define for a KEY_HORN id.
You can easily find the ID of the key yourself by making a simple system to print the ID of the keys when they are pressed in-game.
Go in-game, make sure you're not pressing any buttons, then press the horn button, let go it, then look at your console or server_log.txt, and you will see the ID of the horn button printed in there.
You can easily find the ID of the key yourself by making a simple system to print the ID of the keys when they are pressed in-game.
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
printf("Newkeys: %d",newkeys);
return 1;
}