10.02.2015, 19:58
(
Последний раз редактировалось Rodney Francalim; 11.02.2015 в 21:01.
)
Rodney Francalim
Includes
••••••••••••••••••••••••••••••••••••••••••••••••••Includes
1: LOG
Код:
[v0.2 - 02/11/2015]: - Added GetPlayerArmourEx(playerid, &Float:armour); - Added GetPlayerHealthEx(playerid, &Float:health); - Name, health and armour removed from player's head; - Now the player gets "drunk" when he took a headshot; - The DEBUG was removed; [v0.1 - 02/10/2015]: - Initial release; (http://pastebin.com/JMNGX7gB)
- Now the damage is based on the body part and the distance between the 2 players. If the player take damage on the torso, and he uses an armour, he loses his armour, else if the damage is on the another part, so he loses his life, only. The weapons have a max range that causes the "perfect" damage. Example: the sniper rifle has 2^6.0 of range, until this, the damage is only 41.5. After this, for each meter after the max range, the damage falls 0.06. It's just applied on weapons that use bullets.
3: What do we need?
- Progress Bar v2
4: Functions
Код:
SetPlayerHealthEx(playerid, Float:health); SetPlayerArmourEx(playerid, Float:armour); GetPlayerHealthEx(playerid, &Float:health); GetPlayerArmourEx(playerid, &Float:armour);
[ame]http://www.youtube.com/watch?v=WcVKQb4bcXA[/ame]
6: Download

7: Final considerations
- SORRY FOR MY BAD ENGLISH!

- It's my first Include that I post here, I hope that be useful.

- Yes, I'll do some changes, cause' I was using it in my GM.
- I don't have to say, but, if you'll use it, keep the credits.
- PLEASE, REPORT ANY BUG!!!
8: Thanks and credits
- [HLF]Southclaw for Progress Bar.
••••••••••••••••••••••••••••••••••••••••••••••••••