Help with weapon damage system thanks
#3

pawn Code:
new armour;//defines the armour var..
GetPlayerArmour(playerid, armour);//Get the players armour
if(armour >= x)//Check if the armour is above a certain ammount (change the x.)
SetPlayerArmour(playerid, armour-ammount);//If the armour is higher than the ammount you checked, decrease it with the ammount you like..

//If the armour check is not higher, take the ammount form the health
Reply


Messages In This Thread
Help with weapon damage system thanks - by JessThompson - 14.07.2014, 20:26
Re: Help with weapon damage system thanks - by JessThompson - 14.07.2014, 20:45
Re: Help with weapon damage system thanks - by Don_Cage - 14.07.2014, 21:07
Re: Help with weapon damage system thanks - by JessThompson - 14.07.2014, 21:25
Re: Help with weapon damage system thanks - by azzerking - 14.07.2014, 22:16
Re: Help with weapon damage system thanks - by JessThompson - 15.07.2014, 11:56
Re: Help with weapon damage system thanks - by JessThompson - 15.07.2014, 12:18
Re: Help with weapon damage system thanks - by Pottus - 15.07.2014, 13:01

Forum Jump:


Users browsing this thread: 3 Guest(s)