If user press key X...
#1

How can do this?

public OnPressKey(playerid,key)
{
if(key = F11)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE1);
}elseif(key = Left Shift OR key = Q)
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DAN CE2);
Others acionts = NULL
}
return 1;
}

Sorry for my english
Reply
#2

You can't detect F11 key in SA-MP.
Here is list of available keys: https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List
Reply
#3

could you perhaps define it? like find the value of the <x> key and do a

#define KEY_X

that would be cool, someone smarter than me please help
Reply
#4

Quote:
Originally Posted by Annihalation
could you perhaps define it? like find the value of the <x> key and do a

#define KEY_X

that would be cool, someone smarter than me please help
no, i think it's impossible
but you can change the function of Key X in your GTA SA to action for example !!
Reply
#5

you mean in the Options of GTA change the fire button to X :P
Reply
#6

exactly
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)