Need Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need Help (
/showthread.php?tid=140796)
Need Help -
deniel95 - 10.04.2010
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
Re: Need Help -
Winded - 10.04.2010
Learn some english so we can understand you, then i may be able to help you.
Re: Need Help -
Cank - 10.04.2010
Код:
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.
Re: Need Help -
deniel95 - 10.04.2010
Hmmm i can find F Key is
Код:
KEY_ACTION1~k~~PED_ANSWER_PHONE~~k~~VEHICLE_FIREWEAPON~-
F Key?
Re: Need Help -
deniel95 - 10.04.2010
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.