- 0
Health Side - nu functioneaza.
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Edw
Problema intalnita (descriere): Nu functioneaza acest 'Health Side', adica daca e afk nu moare.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):
public OnPlayerTakeDamage( playerid, issuerid, Float:amount, weaponid, bodypart ) { if( issuerid != INVALID_PLAYER_ID ) { if( playerDeath[ issuerid ] == 0 ) { new Float: HP, Float: AP, Float: totalhp; GetPlayerHealthEx( playerid, HP ); GetPlayerArmourEx( playerid, AP ); printf("wadawda"); if ( AP >= amount ) { SetPlayerArmourEx( playerid, AP - amount ); SetPlayerHealthEx( playerid, HP ); } else if ( AP <= 0 ) { totalhp = HP - amount; SetPlayerHealthEx( playerid, totalhp ); if ( totalhp <= 0 && playerDeath[ playerid ] == 0 ) { OnPlayerDeath( playerid, issuerid, weaponid ); playerDeath[ playerid ] = 1; } } else { totalhp = HP + ( AP - amount ); SetPlayerArmourEx( playerid, 0.0 ); SetPlayerHealthEx( playerid, totalhp ); if ( totalhp <= 0 && playerDeath[ playerid ] == 0 ) { OnPlayerDeath( playerid, issuerid, weaponid ); playerDeath[ playerid ] = 1; } } } } return 1; }Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Desigur.
1 answer to this question
Recommended Posts