How to add more keys ?
#1

I want to use key "2" and key "3" How to define them ? ( https://sampwiki.blast.hk/wiki/Keys )
I want when player press key 2 or 3 to do my command
Reply
#2

You can use only 2 (Default for KEY_SUBMISSION). Number 3 is not a valid key.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SUBMISSION)
    {
         // Your command stuff
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)