Adding air horn when a key is pressed
#10

If you already have an instance of OnPlayerKeyStateChange in your mode (check with CTRL+F) then you need to add the check to the existing callback. If, on the other hand, you DON'T have an instance of OnPlayerKeyStateChange in your mode yet, you need to add

pawn Код:
public OnPlayerKeyStateChange(...)
{
    if(newkeys & KEY_???)
    {
        PlayerPlaySound(...);
    }
    return 1;
}
Reply


Messages In This Thread
Adding air horn when a key is pressed - by ShiffeyTheGamer - 14.04.2015, 16:22
Re: Adding air horn when a key is pressed - by d3ll - 14.04.2015, 16:25
Re: Adding air horn when a key is pressed - by ShiffeyTheGamer - 14.04.2015, 16:29
Re: Adding air horn when a key is pressed - by fuckingcruse - 14.04.2015, 16:33
Re: Adding air horn when a key is pressed - by ShiffeyTheGamer - 14.04.2015, 16:36
Re: Adding air horn when a key is pressed - by MP2 - 14.04.2015, 16:58
Re: Adding air horn when a key is pressed - by ShiffeyTheGamer - 14.04.2015, 17:03
Re: Adding air horn when a key is pressed - by MP2 - 14.04.2015, 17:05
Re: Adding air horn when a key is pressed - by ShiffeyTheGamer - 14.04.2015, 17:06
Re: Adding air horn when a key is pressed - by MP2 - 14.04.2015, 17:13

Forum Jump:


Users browsing this thread: 1 Guest(s)