29.01.2014, 18:44
https://sampwiki.blast.hk/wiki/Keys
Key found:
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Example :
Key found:
pawn Код:
KEY_SECONDARY_ATTACK 16 ~k~~VEHICLE_ENTER_EXIT~ ~k~~VEHICLE_ENTER_EXIT~ ENTER ENTER
Example :
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)//new or old it's really up to you
{
SendClientMessage(playerid,-1,"You pressed Eneter.");
}
return 1;
}