OnPlayerKeyStateChange problem - 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: OnPlayerKeyStateChange problem (
/showthread.php?tid=125316)
OnPlayerKeyStateChange problem -
Fedee! - 03.02.2010
Why this just works if im in a car?
Quote:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SUBMISSION))
{
SendClientMessage(playerid,COLOR_YELLOW,"You need to be in a vehicle!");
}
return 1;
}
|
Thanks.
Re: OnPlayerKeyStateChange problem -
Fedee! - 03.02.2010
I just got it why, its because I use a "KEY_SUBMISSION" that only works if I in a car, thanks anyway