OnPlayerKey Same Keys? - 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)
+--- Thread: OnPlayerKey Same Keys? (
/showthread.php?tid=500922)
OnPlayerKey Same Keys? -
Admigo - 15.03.2014
Hello,
I have a problem with my script.
What happens is if i press the Look behind key it says the error message that i have in KEY_SUB.
pawn Код:
if (newkeys & KEY_SUBMISSION)
{
if(IsPlayerInPoliceVehicle(playerid)==1)
{
return 1;
}
else
{
//error message
}
return 1;
}
else if (newkeys & KEY_LOOK_BEHIND)
{
//other stuff
}
How can i fix this?
Noo i dont have this error message in KEY_LOOK_BEHIND.
Admigo
AW: OnPlayerKey Same Keys? -
BigETI - 15.03.2014
https://sampwiki.blast.hk/wiki/OnPlayerK..._being_pressed
Re: OnPlayerKey Same Keys? -
Vince - 15.03.2014
Keys change depending on whether you're in a vehicle. Only use KEY_SUBMISSION and then use a state check.
Re: AW: OnPlayerKey Same Keys? -
Admigo - 15.03.2014
Quote:
Originally Posted by BigETI
|
I already tried that, not working.
Normally i did not had this problem.