How to change command to a keyboard key in script
#1

Hello!

I am new to pawn scripting language and now i need some help.

I use Ravens Roleplay gamemode and i have a little trouble with that.

That gamemode uses command /enter to enter house and command /exit to exit houses and 24/7 shops and other bizzes too. I want that i can enter ja exit with ENTER_VEHICLE KEY from those places.

Thanks to helpers!
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if(newkeys == KEY_SECONDARY_ATTACK)
  {
    //Code here
    return 1;
  }
  return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)