05.06.2016, 09:41
Код:
if(GetPlayerCash(playerid) < LoInfo[ix][loPrice]) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to buy this house."); GivePlayerCash(playerid, -LoInfo[ix][loPrice]);
if(GetPlayerCash(playerid) < LoInfo[ix][loPrice]) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to buy this house."); GivePlayerCash(playerid, -LoInfo[ix][loPrice]);
forward GetPlayerCash(playerid);
public GetPlayerCash(playerid)
{
return Variable[playerid][Cash];
}
CallRemoteFunction("GetPlayerCash", "i", playerid);