Filterscript read stock in main gm?
#4

i found this but im not understanding it a great deal..
https://sampforum.blast.hk/showthread.php?tid=261584

Can anyone help? Ill add that im using zgaming roleplay GM script and What is setup in the main GM for cash is:
enum pInfo
{
pMoney,//Money

the stock for giving or taking money is:
stock GiveZaiatMoney(playerid, amount)
{
new string[128];
if(amount < 0) format(string, sizeof(string), "~r~-$%d", amount*-1);
else if(amount > 0) format(string, sizeof(string), "~g~+$%d", amount);
GameTextForPlayer(playerid, string, 3000, 1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pMoney] += amount;
return 1;
}

How can I make it so the money handling can be accessed through the vehicle filterscript. Thanks guys.
Reply


Messages In This Thread
Filterscript read stock in main gm? - by oblexive - 15.07.2012, 17:57
Re: Filterscript read stock in main gm? - by Matz - 15.07.2012, 18:05
Re: Filterscript read stock in main gm? - by GSRP - 15.07.2012, 18:06
Re: Filterscript read stock in main gm? - by oblexive - 15.07.2012, 18:12
Re: Filterscript read stock in main gm? - by oblexive - 15.07.2012, 19:25
Re: Filterscript read stock in main gm? - by Calgon - 15.07.2012, 19:40
Re: Filterscript read stock in main gm? - by oblexive - 15.07.2012, 19:43

Forum Jump:


Users browsing this thread: 3 Guest(s)