07.08.2011, 11:58
pawn Код:
if(dialogid == 15)
{
if(response)
{
new plyName[MAX_PLAYER_NAME];
new bouse = PlayerInfo[playerid][pHouseKey];
GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
new Float:plyArmour;
GetPlayerArmour(playerid, plyArmour);
new amount = strval(inputtext);
SetPlayerArmour(playerid, -sarvaipadeti);
Houses[bouse][Armour]=Houses[bouse][Armour]+amount;
new string[126];
format(string, sizeof(string), "stored %s", amount);
SendClientMessage(playerid, 0xAFAFAFAA, string);
}
return 1;
}