How to change command to a keyboard key in script - 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: How to change command to a keyboard key in script (
/showthread.php?tid=263374)
How to change command to a keyboard key in script -
datzik - 21.06.2011
Hello!
I am new to pawn scripting language and now i need some help.
I use Ravens Roleplay gamemode and i have a little trouble with that.
That gamemode uses command /enter to enter house and command /exit to exit houses and 24/7 shops and other bizzes too. I want that i can enter ja exit with ENTER_VEHICLE KEY from those places.
Thanks to helpers!
Re: How to change command to a keyboard key in script -
Sasino97 - 21.06.2011
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
//Code here
return 1;
}
return 0;
}