04.06.2010, 02:22
Quote:
Originally Posted by PotH3Ad
SA-MP Wiki: Floatround - Round a floating point number to an integer value.
|
pawn Код:
if(dialogid == 3)
{
if(response)
{
if(listitem == 0)
{
if(PlayerInfo[playerid][pCash] > 9999)
{
new Float:Armour;
GetPlayerArmour(playerid,Armour);
if(Armour > 0) return SendClientMessage(playerid, COLOR_GREY, " You can't buy more then 100 Armor!");
SetPlayerArmour(playerid,Armour+100);
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerCash(playerid, -10000);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Not enough cash for that !");
}