SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 22/05/2010, 09:17 AM   #1
MummyKillerSLO
Big Clucker
 
Join Date: May 2009
Posts: 61
Reputation: 0
Default Activate Function Using A Key

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.
MummyKillerSLO is offline  
Old 22/05/2010, 09:36 AM   #2
woot
Gangsta
 
Join Date: Jun 2007
Posts: 785
Reputation: 173
Default Re: Activate Function Using A Key

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

Duh?
__________________
woop
woot is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/bomb = Activate Car Bomb DeltaAirlines12 Scripting Help 3 28/10/2012 06:09 PM
[HowTo] Activate Variable W/ PassWord. shitbird Help Archive 11 22/06/2010 01:04 PM
I can't activate my own server in the list HELP ME [C]_[H]KiLLeR Server Support 2 10/11/2009 04:53 PM
[SOLVED]activate npc using cmd troy52192 Help Archive 1 06/11/2009 11:30 AM
Activate NOS DragoNuno Help Archive 7 02/10/2009 08:48 PM


All times are GMT. The time now is 02:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.