30.11.2009, 16:04
There are some sample script profit on property?
Example
if (Owner == 0)
{
GivePlayerMoney (playerid, -100) / / player buy food
SendClientMessage (playerid, 0xC8C8C8C8, "You bought food.");
}
if (Owner == 1)
{
GivePlayerMoney (Owner, 100);
SendClientMessage (Owner, 0xC8C8C8C8, "You received $ 100 profit.");
}
I know it does not work, but it is just an example.
Thanks!
Example
if (Owner == 0)
{
GivePlayerMoney (playerid, -100) / / player buy food
SendClientMessage (playerid, 0xC8C8C8C8, "You bought food.");
}
if (Owner == 1)
{
GivePlayerMoney (Owner, 100);
SendClientMessage (Owner, 0xC8C8C8C8, "You received $ 100 profit.");
}
I know it does not work, but it is just an example.
Thanks!