17.07.2016, 14:55
how to get, when the player launches a missile(Hydra)
my english is not very good
my english is not very good
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
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;
}