How to make bind ?
#1

How to make when player use CTRL to do one CMD ?
Reply
#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
#3

https://sampwiki.blast.hk/wiki/Keys
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply
#4

Why i cant make bind wich LSHIFT ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)