Question - 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: Question (
/showthread.php?tid=342852)
Question -
SpiderWalk - 15.05.2012
Hello.Today I create Perk system.I have 1 question.I made perk name Maximal Armour.And how to set this.When Shooter shoot the target(Other player).To take damage on armour 0.5 percent of full armour(When Shooter shoot target to take from target just 0.5 percent of full armour)
I trying to use this public but I dont have idea how to script it.
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(perk[playerid][MaxArmour] == 1)
{
}
return 1;
}
PS:My english is little bad when i am explaing
Re: Question -
SpiderWalk - 15.05.2012
Can someone help??
Re: Question -
Niko_boy - 15.05.2012
what is it supposed to do ? i read ur first post thrice didnt understood,
+ I really wanna know what u actualy tryna do and help you out.
Re: Question -
SpiderWalk - 15.05.2012
Quote:
Originally Posted by Niko_boy
what is it supposed to do ? i read ur first post thrice didnt understood,
+ I really wanna know what u actualy tryna do and help you out.
|
Look.I made perk system.Also I made one perk named Maximal Armour based on Crysis 2.IF you know Maximal Armour from Crysis then you will know what I want to do.If not then I will explain again.When player shot other player.He will take damage just 0.5 per cent of full armour.And I dont know how to create that to take damage just 0.5 damage with all weapons...how??
Re: Question -
ViniBorn - 15.05.2012
You can store the old armour on each shot, and after, calculate the new armour and set it.
Re: Question -
SpiderWalk - 15.05.2012
Quote:
Originally Posted by Viniborn
You can store the old armour on each shot, and after, calculate the new armour and set it.
|
?What you say I don`t understand
Re: Question -
ViniBorn - 15.05.2012
Ex:
pawn Код:
new Float:LastArmour;
//OnPlayerGiveDamage
LastArmour*= 0.05;
SetPlayerArmour(ID,LastArmour);
Re: Question -
SpiderWalk - 15.05.2012
Quote:
Originally Posted by Viniborn
Ex:
pawn Код:
new Float:LastArmour;
//OnPlayerGiveDamage LastArmour*= 0.05; SetPlayerArmour(ID,LastArmour);
|
I try it.But it`s not working
Re: Question -
SpiderWalk - 15.05.2012
Someone know