24.02.2012, 14:48
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.
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.
PHP код:
case 0:
{
{
SendClientMessage(playerid,0xFF9900AA,"You have bought condoms for $59!");
GivePlayerMoney(playerid,-59);
SetPlayerArmour(playerid,+5);
}
}
If you could help, I would appreciate. By the way this is under OnDialogResponse.