Key mapping in scripted form
#3

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_FIRE) {
        //change KEY_FIRE to the desired key —  https://sampwiki.blast.hk/wiki/Keys
        //Code to perform if they is pressed.  
    }
    return 1;
}
Something like this is what you should be looking for (I didn't compile it, but it should be working). I suggest you read through Kraeror's first link though.
Reply


Messages In This Thread
Key mapping in scripted form - by Mobtiesgangsa - 15.10.2017, 03:48
Re: Key mapping in scripted form - by Kraeror - 15.10.2017, 06:44
Re: Key mapping in scripted form - by Twizted - 15.10.2017, 07:36

Forum Jump:


Users browsing this thread: 1 Guest(s)