14.12.2015, 23:38
Quote:
|
Im editing a gm and iv added a vehicle system. Im trying to access the way the main gm handles cash from the filterscript. How would I access the stock:
stock GiveZaiatMoney(playerid, amount) From the filterscript? |
pawn Код:
forward GiveZaiatMoney(playerid, amount);
public GiveZaiatMoney(playerid, amount)
pawn Код:
CallRemoteFunction("GiveZaiatMoney", "ii", playerid, amount);
Gamemode:
pawn Код:
new PlayerMoney[MAX_PLAYERS];
forward Player_GetMoney(playerid);
public Player_GetMoney(playerid)
{
return PlayerMoney[playerid];
}
pawn Код:
new Money = CallRemoteFunction("Player_GetMoney", "i", playerid);


