OnPlayerKeyStateChange
#4

PHP код:
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys) {
    if(
PRESSED(KEY_FIRE)) {
        
// do stuff
    
}
    return 
1;

Reply


Messages In This Thread
OnPlayerKeyStateChange - by Micko123 - 05.05.2016, 19:20
Re: OnPlayerKeyStateChange - by oMa37 - 05.05.2016, 19:30
Re: OnPlayerKeyStateChange - by Gammix - 05.05.2016, 19:30
Re: OnPlayerKeyStateChange - by J0sh... - 05.05.2016, 19:32
Re: OnPlayerKeyStateChange - by Dayrion - 05.05.2016, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)