SA-MP Forums Archive
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)
+--- Thread: OnPlayerKeyStateChange (/showthread.php?tid=629006)



OnPlayerKeyStateChange - Rustin - 18.02.2017

Hey. I'm using this script which is kinda like NGRP , The cmd to enter is /enter, How can I change it? I saw people telling to find OnPlayerKeyStateChange , But where is it located and what to do once I find it? I want to make it like, I'll enter and exit by using the letter F


Re: OnPlayerKeyStateChange - UnholyBeast - 18.02.2017

It should be in your gamemode. If not add it in, then just simply check to see if the player has pressed KEY_SECONDARY_ATTACK