HotKeys Help
#1

Hi all,how i can make a simple hotkey command,for example when someone press the "m" then he will receive some money.

Thanks for help,
Jimis
Reply
#2

I think you cannot press any button and it's based on SA-MP hotkeys.

Example

when you press SHIFT key in script language it's KEY_JUMP
Reply
#3

'M' can't be detected, find all avaible keys here: https://sampwiki.blast.hk/wiki/GetPlayerKeys

And use like this: Let's say we want key '2' (KEY_SUBMISSION)
Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
    if( newkeys & KEY_SUBMISSION )
    {
        GivePlayerMoney( playerid, 100000 );
    }
    return 1;
}
Reply
#4

ok thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)