*** This topic title sucks, "help me" is not descriptive.
#1

Why doesn't this works?

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    case KEY_FIRE:
	{
               SendClientMessage(playerid,0xFFFFFFFF,"Hoi!!");
	}
	return 1;
}
I never made any OnPlayerKeyStateChanges, so if my code totally fails, then please fix it.

Greetings, CrazyManiac.
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_FIRE)
    {
        SendClientMessage(playerid,0xFFFFFFFF,"Hoi!!");
    }
    return 1;
}
Reply
#3

Thanks mate, problem solved.
Reply
#4

BTW: Does anyone know what KEY "F" is, or where i can see all the keys? Because KEY_FIRE is probably ALT.
Reply
#5

https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply
#6

SA-MP: GetPlayerKeys
Reply
#7

Test the links above, it works!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)