17.02.2014, 16:09
I suggest, health and Armour also and weapon to do like:
pawn Код:
case 1:
{
new Float:health; GetPlayerHealth(membername,health);
SetPlayerHealth(membername,health+amount);
}
case 2:
{
new Float:armour; GetPlayerHealth(membername,armour);
SetPlayerArmour(membername,armour+ amount);
}
case 3:
{
new playeridweapon;
playeridweapon=GetPlayerWeapon(playerid);
GivePlayerWeapon(membername, playeridweapon, amount);
}