Jump to content
  • 0

pomoc Posledný Damage.


House

Dotaz

9 odpovědí na tuto otázku

Recommended Posts

  • 0
public OnPlayerWeaponShot(playerid,weaponid,hittype,hitid,Float:fX,Float:fY,Float:fZ)
{
if(hittype == BULLET_HIT_TYPE_VEHICLE)
{

}
return 1;
}

Ovsem ma to nekolik nevyhod. Bere to pouze strelku z "kulkovych" zbrani a jen pouze v ON_FOOD takze ne stralba z vozidla

Bohuzel nic lepsiho k dispozici nemame

Link to comment
Share on other sites

  • 0

dá sa to pohode fixnúť

 

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(GetPlayerVehicleID(playerid) > 0) weaponid = GetPlayerWeapon(playerid); //fix lebo keď si vo vozidle tak weaponid je 0

 

}

Link to comment
Share on other sites

  • 0

dá sa to pohode fixnúť

 

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)

{

    if(GetPlayerVehicleID(playerid) > 0) weaponid = GetPlayerWeapon(playerid); //fix lebo keď si vo vozidle tak weaponid je 0

 

}

kdyz budes strilet z vozidla tak se tenhle callback vubec nevyvola

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...