Lol please help
#2

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange -- The public that checks if player has pressed any buttons.
https://sampwiki.blast.hk/wiki/GetPlayerKeys -- Scroll a little bit down to see the key list.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK) // KEY_SECONDARY_ATTACK is enter/f.
    {
        SendClientMessage(playerid,0x00FFFFFF,"You have pressed enter!");
    }
    return 1;
}
Reply


Messages In This Thread
Lol please help - by bartje01 - 24.08.2010, 14:02
Re: Lol please help - by [XST]O_x - 24.08.2010, 14:09
Re: Lol please help - by RSX - 24.08.2010, 14:10
Re: Lol please help - by Dime - 24.08.2010, 14:10
Re: Lol please help - by bartje01 - 24.08.2010, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)