Hooking filterscript to gamemode
#1

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]"
Reply
#2

Don't use that, 1second timer.. Horrible, learn ALS Hooking and hook GivePlayerMoney, ResetPlayerMoney, and add or reset the variable.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)