KeyBoard Buttons
#1

How do you create it so the player can do something when the player press's a button like 'tab' or 'f' ?
Код:
OnPlayerPressBotton(playerid,F);
{
   SendClientMessage(playerid,red,"You Pressed F");
}
Reply
#2

u can't do this u only can use the keys used in samp :
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_CROUCH)
{
SendClientMessage.......
}
return 1;
}
keys list : https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)