SA-MP Forums Archive
Y_Ini problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_Ini problem (/showthread.php?tid=641902)



Y_Ini problem - SeanDenZYR - 22.09.2017

Ok, so i was editing a CG:RP Script for my server. And i decided to remove the vehicle system of The CG:RP, and download MadeMan's AVS one, i have this one problem, i couldn't combine it with the script, cause CG:RP script uses an anti money cheat which is this:
Код:
stock GiveMoney(playerid, money)
{
	PlayerInfo[playerid][pCash] += money;
	ResetPlayerMoney(playerid);
	GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
	return 1;
}
What i was willing to do is just use his filterscript, but just change the code to GiveMoney, but can't cause its in a separate gamemode. I need help.


Re: Y_Ini problem - SeanDenZYR - 23.09.2017

up! .. .......


Re: Y_Ini problem - FuNkYTheGreat - 23.09.2017

That can be easily done by using this function
Use it in your FilterScript,
It'll call the function of your Gamemode ( only if it's loaded ).
Код:
GiveMoney(playerid,amount)
{
	CallRemoteFunction("GiveMoney", "ii", playerid , amount);
}