Need Help
#1

Hay,can somebary tellmy how to setup when player is on CP or House /enter to be F and /exit F (When press F to player Enter or Exit from house or some interier?)?


PlZz help my,thnx and zz
Reply
#2

Learn some english so we can understand you, then i may be able to help you.
Reply
#3

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if(IsPlayerInCheckpoint && newkeys & KEY_FIRE) //use the key you want instead of "KEY_FIRE", see here: https://sampwiki.blast.hk/wiki/GetPlayerKeys
   {
      //your code
    }
}
you can only use SA specific keys (e. g. KEY_FIRE or KEY_ACTION) and not something like "F" or "A" so you have to choose one from the given link.
Reply
#4

Hmmm i can find F Key is
Код:
KEY_ACTION1~k~~PED_ANSWER_PHONE~~k~~VEHICLE_FIREWEAPON~-
F Key?
Reply
#5

I am find F Kay thnx to all


But i have one problem now
F:\***\***\gamemodes\***.pwn(***) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)