How to make bind ?
#2

Код:
#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
Reply


Messages In This Thread
How to make bind ? - by bustern - 06.09.2013, 20:08
Re: How to make bind ? - by AaronKillz - 06.09.2013, 20:11
Re: How to make bind ? - by ejb - 06.09.2013, 20:11
Re: How to make bind ? - by bustern - 06.09.2013, 20:37

Forum Jump:


Users browsing this thread: 2 Guest(s)