disable the enter key
#5

Quote:
Originally Posted by KANiS6111
Yes it's possible...

Try this:

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys & KEY_SECONDARY_ATTACK)
	{
		if(!(GetPlayerInterior(playerid) == teh_casino_interior_id)) return 1;
		
		new Float:tmp[3];
		GetPlayerPos(playerid,tmp[0],tmp[1],tmp[2]);
        SetPlayerPos(playerid,tmp[0],tmp[1],tmp[2]);
	}
	return 1;
}
May have typos, untested.
IS "if(newkeys & KEY_SECONDARY_ATTACK)" Line perfect? or do i need to change it?
Reply


Messages In This Thread
disable the enter key - by Martin_Smith - 13.02.2009, 08:51
Re: disable the enter key - by Lazarus - 13.02.2009, 14:17
Re: disable the enter key - by playdead - 13.02.2009, 18:44
Re: disable the enter key - by kazimieras - 13.02.2009, 20:30
Re: disable the enter key - by Martin_Smith - 14.02.2009, 12:15
Re: disable the enter key - by BeckzyBoi - 14.02.2009, 12:19
Re: disable the enter key - by smallo - 18.02.2009, 02:54
Re: disable the enter key - by Norn - 18.02.2009, 02:57

Forum Jump:


Users browsing this thread: 2 Guest(s)