SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 02/08/2016, 01:12 PM   #1
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 775
Reputation: 79
Default antiMoney.inc - ALS Hooking - OnPlayerHackMoney

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
Luicy. is offline   Reply With Quote
Old 02/08/2016, 01:15 PM   #2
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 630
Reputation: 87
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

Nice, although your introduction section is mixed up.
FreAkeD is offline   Reply With Quote
Old 02/08/2016, 01:16 PM   #3
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 775
Reputation: 79
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

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.
Luicy. is offline   Reply With Quote
Old 02/08/2016, 01:22 PM   #4
WhiteGhost
Guest
 
Posts: n/a
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

Code:
ResetPlayerMony(playerid);
Should be:

Code:
ResetPlayerMoney(playerid);
  Reply With Quote
Old 02/08/2016, 01:24 PM   #5
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 775
Reputation: 79
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

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

Code:
ResetPlayerMoney(playerid);
Oh thanks, fixing it soon, will update the thread
Luicy. is offline   Reply With Quote
Old 02/08/2016, 02:40 PM   #6
Deadpoop
Big Clucker
 
Deadpoop's Avatar
 
Join Date: Jul 2016
Posts: 131
Reputation: 5
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

Ohh you meant hooks I tough you mean something else we'll never mind good job
and yes I admit your way is batter!
__________________
Deadpoop is offline   Reply With Quote
Old 02/08/2016, 02:57 PM   #7
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 775
Reputation: 79
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

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.
Luicy. is offline   Reply With Quote
Old 02/08/2016, 03:01 PM   #8
Deadpoop
Big Clucker
 
Deadpoop's Avatar
 
Join Date: Jul 2016
Posts: 131
Reputation: 5
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

Yes you right I just never learned hooks
I guess it time to learn
__________________
Deadpoop is offline   Reply With Quote
Old 02/08/2016, 03:04 PM   #9
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 775
Reputation: 79
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

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.
Luicy. is offline   Reply With Quote
Old 02/08/2016, 05:03 PM   #10
SecretBoss
Gangsta
 
SecretBoss's Avatar
 
Join Date: Dec 2014
Location: Greece
Posts: 807
Reputation: 106
Default Re: antiMoney.inc - ALS Hooking - OnPlayerHackMoney

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
__________________

Last edited by SecretBoss; 02/08/2016 at 05:56 PM.
SecretBoss is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AntiMoney]Hack Helping ? donhu789 Scripting Help 4 11/10/2013 02:58 PM
Antimoney-hack Problem RedFusion Scripting Help 4 15/10/2012 10:31 AM
[Include] [INC] RenisiL - AntiMoney Cheat Guard System v0.1.1 RenisiL Includes 25 15/02/2012 07:41 PM
AntiMoney Hack Capitan_Price Help Archive 3 22/07/2011 09:07 PM
[HELP]LeveL Or Like something and Antimoney hack mystical122 Help Archive 1 23/07/2009 05:26 PM


All times are GMT. The time now is 07:52 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.