Creating Command With Key On Keyboard?
#9

Everyone makes it harder than it is.
When the key is pressed, just execute the command with a parameter like this:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if(PRESSED(KEY_NO))
  {
cmd_car(playerid, "engine");
 }
return 1;
}
Reply


Messages In This Thread
Creating Command With Key On Keyboard? - by hichay - 27.11.2014, 07:53
Re: Creating Command With Key On Keyboard? - by Alex Magaсa - 27.11.2014, 08:08
Re: Creating Command With Key On Keyboard? - by hichay - 27.11.2014, 08:26
Re: Creating Command With Key On Keyboard? - by M4D - 27.11.2014, 08:38
Re: Creating Command With Key On Keyboard? - by hichay - 27.11.2014, 15:08
Re: Creating Command With Key On Keyboard? - by LeXuZ - 27.11.2014, 15:18
Re: Creating Command With Key On Keyboard? - by Raweresh - 27.11.2014, 15:20
Re: Creating Command With Key On Keyboard? - by hichay - 28.11.2014, 04:42
Re: Creating Command With Key On Keyboard? - by PowerPC603 - 28.11.2014, 04:50

Forum Jump:


Users browsing this thread: 4 Guest(s)