SA-MP Forums Archive
Damage system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Damage system (/showthread.php?tid=607142)



Damage system - karoliko - 15.05.2016

I want to make realistic damage system for my TDM server but it only will take the health and wonґt work when player have armou, any suggest?


Re: Damage system - Micko123 - 15.05.2016

https://sampforum.blast.hk/showthread.php?tid=383020

You can use that FS

Or this tut

https://sampforum.blast.hk/showthread.php?tid=330005


Re: Damage system - karoliko - 15.05.2016

Quote:
Originally Posted by Micko123
Посмотреть сообщение
Dude, it only take damage, not armour!


Re: Damage system - MBilal - 15.05.2016

Код:
Float:Armour;
GetPlayerArmour(playerid,Armour); 
if( Armour > 0)
{
SetPlayerArmour(playerid,amount);
}
else
{
SetPlayerHealth(playerid,amount);
}

Check his armout first if his armout greater than 0 then remove his armout first ..
and else if he have no armour mean armout = 0 set his health to the amount of damage which he got under OnPlayerTakeDamage



Re: Damage system - Pottus - 15.05.2016

Quote:
Originally Posted by Micko123
Посмотреть сообщение
That is retarded you are giving him useless old ass shit.

https://sampforum.blast.hk/showthread.php?tid=563387


Re: Damage system - karoliko - 15.05.2016

Quote:
Originally Posted by Pottus
Посмотреть сообщение
That is retarded you are giving him useless old ass shit.

https://sampforum.blast.hk/showthread.php?tid=563387
How to install it?


Re: Damage system - Micko123 - 15.05.2016

That "useles old shit" works


Re: Damage system - karoliko - 15.05.2016

Im so confused... someone can make me the code?


Re: Damage system - GoldenLion - 15.05.2016

I use this: https://sampforum.blast.hk/showthread.php?tid=275461