[HELP] How to make infinity armour ?
#3

Quote:
Originally Posted by Mini`
Посмотреть сообщение
You didn't read the Scripting Basics and such on the wiki did you?

pawn Код:
new
Float:HP,
Float:Armour;
GetPlayerHealth(playerid, HP);
if(HP < 100000) {
SetPlayerHealth(playerid, 100000);
}
GetPlayerArmour(playerid, Armour);
if(Armour < 10000) {
SetPlayerArmour(playerid, 10000);
}
Is my guess at least :/
It's untested. And I wasn't sure how you wanted to handle giving player Armour, so I went ahead and checked it before giving it.
Can make it smaller with
pawn Код:
new Float:HP, Float:Armour;
GetPlayerArmour(playerid, Armour);
GetPlayerHealth(playerid, HP);
if(HP < 10000 || Armour < 10000)
{
    SetPlayerHealth(playerid, 10000);
    SetPlayerArmour(playerid, 10000);
}
Does nearly the same thing its just a bit smaller
Reply


Messages In This Thread
[HELP] How to make infinity armour ? - by c0GI - 23.12.2011, 21:03
Re: [HELP] How to make infinity armour ? - by Mini` - 23.12.2011, 21:09
Re: [HELP] How to make infinity armour ? - by [ABK]Antonio - 23.12.2011, 21:24
Re: [HELP] How to make infinity armour ? - by Mini` - 23.12.2011, 21:40
Re: [HELP] How to make infinity armour ? - by Vince - 23.12.2011, 23:27
Re: [HELP] How to make infinity armour ? - by c0GI - 24.12.2011, 16:56
Re: [HELP] How to make infinity armour ? - by eLeCTroNNN - 03.02.2015, 09:05
Re: [HELP] How to make infinity armour ? - by CalvinC - 03.02.2015, 09:35
Re: [HELP] How to make infinity armour ? - by HydraHumza - 03.02.2015, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)