SA-MP Forums Archive
How to make bind ? - 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: How to make bind ? (/showthread.php?tid=462391)



How to make bind ? - bustern - 06.09.2013

How to make when player use CTRL to do one CMD ?


Re: How to make bind ? - AaronKillz - 06.09.2013

Код:
#define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (PRESSED(KEY_ACTION))
	{
           //do command stuff here
	}
	return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange


Re: How to make bind ? - ejb - 06.09.2013

https://sampwiki.blast.hk/wiki/Keys
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange


Re: How to make bind ? - bustern - 06.09.2013

Why i cant make bind wich LSHIFT ?