14.04.2015, 17:13
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;
}