02.05.2010, 19:59
Hey, I've got an odd question, which many of you probibly get asked a billion times a day, but is it possible to set armour on top of what a person has?
Like,
GetPlayerArmour(playerid);
IfPlayerArmour == 50
SetPlayerArmour(playerid, +50);
The reason im asking is I'm setting up a dialog,
ETC, Anyways...It's being set up, so that
If they've got 50 Armor they can't buy more then 50, It will say You can't go higher then 100 armor, Somthing like that, If you can help, It'd be greatly appreciated
Like,
GetPlayerArmour(playerid);
IfPlayerArmour == 50
SetPlayerArmour(playerid, +50);
The reason im asking is I'm setting up a dialog,
Код:
} if(listitem == 6) { SetPlayerArmour(playerid,+70); } if(listitem == 7) { SetPlayerArmour(playerid,+80); } if(listitem == 8) { SetPlayerArmour(playerid,+90); } if(listitem == 9) { SetPlayerArmour(playerid,+100); }
If they've got 50 Armor they can't buy more then 50, It will say You can't go higher then 100 armor, Somthing like that, If you can help, It'd be greatly appreciated