Small help needed.. please..
#1

Hey guys, i need some help here..

Well look:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_UNDEFINED )
    {
        if (PlayerToPoint(1, playerid,-2487.4114,-612.5793,132.5592))
      {
          SetPlayerPos(playerid, -2487.3696,-611.0781,132.7919);
        return 1;
      }
      if (PlayerToPoint(1, playerid,-2487.2993,-610.2986,132.7919))
      {
          SetPlayerPos(playerid, -2487.0820,-611.9934,132.5547);
          return 1;
      }
    }
   
    if (PlayerToPoint(1, playerid,-1757.8530,963.5155,24.8828))
    {
          SetPlayerPos(playerid, 2215.454833,-1147.475585,1025.796875);
          SetPlayerInterior(playerid, 15);
        return 1;
      }
     
    if (PlayerToPoint(1, playerid,-1707.1255,1018.0385,17.5859))
    {
            SetPlayerPos(playerid, 964.4483,2107.9851,1011.0303);
          SetPlayerInterior(playerid, 1);
        return 1;
      }
     
    if (PlayerToPoint(1, playerid,963.4483,2107.9851,1011.0303))
    {
            SetPlayerPos(playerid, -1707.1255,1018.0385,17.5859);
          SetPlayerInterior(playerid, 0);
        return 1;
      }
    return 0;
}
See that thing?
pawn Код:
if(newkeys == KEY_UNDEFINED )
    {
I want to change the UNDEFINED thingy to that key: F or ENTER, you know, when entering a car, you press F or ENTER, i want to know what is the code for it!, Please help me if you can
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerKeys

You cant use that key. Look at the link, all you need is there
Reply
#3

KEY_SECONDARY_ATTACK
~k~~VEHICLE_ENTER_EXIT~
Reply
#4

Oh, it cannot be the pressing F or ENTER? damn! but when i make it the SECONDARY_ATTACK, when i press SPACE or F or A & D together, it gets generated, and i don't want that! i only want when i press F or ENTER ...!

damn!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)