help plz
#3

the only way is, adding checks in OnPlayerKeyStateChange like that:

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    new 
veh;
    if( ( 
veh GetPlayerVehicleID(playerid) ) )
    {
        if( 
GetVehicleModel(veh) == 520 )
        {
                if( ( ( ( 
newkeys & ( KEY_FIRE) ) == ( KEY_FIRE ) && ( ( oldkeys & ( KEY_FIRE ) ) != ( KEY_FIRE ) ) ) ) )
                {
                    
// player fired a missle with a hydra. NOT ACCURATE, NOT TESTED.
                
}
        }
    }
    return 
true;

Reply


Messages In This Thread
help plz - by Tmw9s - 17.07.2016, 14:55
Re: help plz - by Dayrion - 17.07.2016, 15:06
Re: help plz - by iKarim - 17.07.2016, 15:06

Forum Jump:


Users browsing this thread: 4 Guest(s)