Hooking filterscript to gamemode - 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: Hooking filterscript to gamemode (
/showthread.php?tid=613891)
Hooking filterscript to gamemode -
ChristofferHoffmann - 01.08.2016
I was trying to use this tutorial
https://sampforum.blast.hk/showthread.php?tid=370123 to hook my filterscript and gamemode when it comes to the money. But in my gamemode I have inside my player enum "pCash", which is what I use to detect whether or not a player is cheating. How can I make make it so it stores the cash in the enum?
I use "PlayerInfo[playerid][pCash]"
Re: Hooking filterscript to gamemode -
Luicy. - 01.08.2016
Don't use that, 1second timer.. Horrible, learn ALS Hooking and hook GivePlayerMoney, ResetPlayerMoney, and add or reset the variable.