30.11.2009, 21:20
At top of script:
pawn Код:
new Owner[MAX_PLAYERS];
pawn Код:
if (Owner[playerid != 1)
{
GivePlayerMoney (playerid, -100) / / player buy food
SendClientMessage (playerid, 0xC8C8C8C8, "You bought food.");
}
else if (Owner[playerid] == 1)
{
GivePlayerMoney (Owner, 100);
SendClientMessage (Owner, 0xC8C8C8C8, "You received $ 100 profit.");
}