[Include] antiMoney.inc - ALS Hooking - OnPlayerHackMoney
#1

Introduction
I was challanged to 'create a better' include other than using a 50 millisecond timer
Functions
Code:
GivePlayerMoney(playerid, amount);
GetPlayerMoney(playerid);
ResetPlayerMoney(playerid);

forward OnPlayerHackMoney(playerid, hackedmoney, realmoney);
Explanation
This is basically an anti money include that I was challanged for some reason to do.
Download
Reply
#2

Nice, although your introduction section is mixed up.
Reply
#3

Quote:
Originally Posted by FreAkeD
View Post
Nice, although your introduction section is mixed up.
Oh rip, copied the style from my other include, lemme fix that.
Thanks. lmao.
Reply
#4

Code:
ResetPlayerMony(playerid);
Should be:

Code:
ResetPlayerMoney(playerid);
Reply
#5

Quote:
Originally Posted by WhiteGhost
View Post
Code:
ResetPlayerMony(playerid);
Should be:

Code:
ResetPlayerMoney(playerid);
Oh thanks, fixing it soon, will update the thread
Reply
#6

Ohh you meant hooks I tough you mean something else we'll never mind good job
and yes I admit your way is batter!
Reply
#7

Quote:
Originally Posted by Deadpoop
View Post
Ohh you meant hooks I tough you mean something else we'll never mind good job
and yes I admit your way is batter!
It'snot only the hooking,
imagine a timer that runs each 50 milliseconds,
1 second=1000 milliseconds
1000/50 = 20
Your include runs 20 times a second.
Almost like OnPlayerUpdate.
It will cause lag.
It will cause really big lag when there's alot of player in game.
Reply
#8

Yes you right I just never learned hooks
I guess it time to learn
Reply
#9

Quote:
Originally Posted by Deadpoop
View Post
Yes you right I just never learned hooks
I guess it time to learn
I just said it's not about the hooking..
Re-read.
Reply
#10

Actually it is a server sided system you can remove the money directly or just don't give them return 0 on the GivePlayerMoney hook

That will prevent hackers from even using it, well they will use it but there will be no effect so they will give up that's the logic also you keep the player online instead of banning/kicking him

Edit:
I checked your code and it won't actually work because a hackers adds some money GivePlayerMoney is called you are putting the check for your callback on GetPlayerMoney for god sake what a logic

Your code is pointless
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)