Adding Armour/Health Points
#1

So I have a general store in my gamemode where I want people to be able to purchase a life vest or condoms for example and it gives you +5 armour or +3 armour. I was trying some things last night but I ended up giving me +5 the first time, and them it stayed at 5 armour even if I purchased it again, which is not exactly what I want.. Here is my script.

PHP код:
        case 0:
        {
         {
         
SendClientMessage(playerid,0xFF9900AA,"You have bought condoms for $59!");
         
GivePlayerMoney(playerid,-59);
         
SetPlayerArmour(playerid,+5);
         }
        } 
This is my first case in my selection, but it sets my armour to 5, then doesn't add any more after I buy it again...
If you could help, I would appreciate. By the way this is under OnDialogResponse.
Reply


Messages In This Thread
Adding Armour/Health Points - by ryan39 - 24.02.2012, 14:48
Re: Adding Armour/Health Points - by Shadow_ - 24.02.2012, 14:52
Re: Adding Armour/Health Points - by ryan39 - 24.02.2012, 15:05
Re: Adding Armour/Health Points - by Shadow_ - 24.02.2012, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)