16.02.2017, 19:41
I need some help to detect if play fall from a bike...
On this way i detect splat (on bike too sometimes)
But only sometimes and damage is too slow, i want to make like GTA V, sometimes you fall from bike and die...
Someone know how to help me?
On this way i detect splat (on bike too sometimes)
But only sometimes and damage is too slow, i want to make like GTA V, sometimes you fall from bike and die...
Someone know how to help me?
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(weaponid == 54) { // splat new damage = floatround(amount); damage = damage * 5; health[playerid] -= damage; }