Enter and Exit help - 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: Enter and Exit help (
/showthread.php?tid=362643)
Enter and Exit help -
Ryan_Michael - 25.07.2012
Okay, So i have it where i type /exit or /enter to enter a place. How would i change it where i press F or ENTER to enter a place and not type it to exit and enter?
Re: Enter and Exit help -
Kindred - 25.07.2012
This should be correct:
pawn Код:
public OnPlayerStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK))
{
//Whatever you would do for the /enter, check if they are in range, etcetra
}
return 1;
}
Re: Enter and Exit help -
Ryan_Michael - 25.07.2012
Okay, Thank you