OnplayerKeyStateChange - 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 (
/showthread.php?tid=254862)
OnplayerKeyStateChange -
Admigo - 13.05.2011
heey guys
I made this:
Код:
if (newkeys == KEY_ACTION && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
{
SendClientMessage(playerid,COLOR_RED,"TEST");
}
return 1;
}
Its only with car 525 but how can i make it for every vehicle?
Thanks admigo
Re: OnplayerKeyStateChange -
Admigo - 13.05.2011
Ooh and for players onfoot.
Re: OnplayerKeyStateChange -
Admigo - 13.05.2011
FIXED