Activate Function Using A Key
#1

Hi!

How can I do, that I activate my function 'HideMessage(playerid)' when I click MMB (KEY_LOOK_BEHIND)?
The wiki is not helping me because I don't understand it. Please help.
Reply
#2

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_LOOK_BEHIND)
    {
        HideMessage(playerid);
    }
}
Duh?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)