SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 05/01/2012, 05:27 AM   #31
cessil
Beta Tester
 
cessil's Avatar
 
Join Date: Apr 2009
Posts: 2,512
Reputation: 254
Default Re: anti cheat tips

@DarkKillerWithPride<3
No it's not go re-read it again

@Gamer_Z
If 30 players quit because of a crash then how are they going to reconnect within 30seconds?
cessil is offline   Reply With Quote
Old 05/01/2012, 09:45 AM   #32
Gamer_Z
High-roller
 
Gamer_Z's Avatar
 
Join Date: Jun 2009
Location: Fontys Uni. - Applied Sciences (Currently doing the hardest possible study Fontys has to offer)
Posts: 2,664
Reputation: 870
Default Re: anti cheat tips

Quote:
Originally Posted by cessil View Post
@DarkKillerWithPride<3
No it's not go re-read it again

@Gamer_Z
If 30 players quit because of a crash then how are they going to reconnect within 30seconds?
fast enough pc's
__________________

New Site (http://gz0.nl)
Google code not working? Try GitHub


Gamer_Z is offline   Reply With Quote
Old 05/01/2012, 09:57 AM   #33
cessil
Beta Tester
 
cessil's Avatar
 
Join Date: Apr 2009
Posts: 2,512
Reputation: 254
Default Re: anti cheat tips

if that's the case then your method would fail too, but there is an obvious over head of time that gta san andreas can load on any pc
cessil is offline   Reply With Quote
Old 05/01/2012, 01:50 PM   #34
Gamer_Z
High-roller
 
Gamer_Z's Avatar
 
Join Date: Jun 2009
Location: Fontys Uni. - Applied Sciences (Currently doing the hardest possible study Fontys has to offer)
Posts: 2,664
Reputation: 870
Default Re: anti cheat tips

Quote:
Originally Posted by cessil View Post
if that's the case then your method would fail too, but there is an obvious over head of time that gta san andreas can load on any pc
Ah ok whatever xD Anyway my experience is that on a optimized by me pc, with an i7 , gtx 540 and DDR3 1600MHz ram on a x64 system it just takes 3 seconds to load up xD (+ ofcourse an 250 gig SSD, how I love my friends PC for tests... ;d)
__________________

New Site (http://gz0.nl)
Google code not working? Try GitHub


Gamer_Z is offline   Reply With Quote
Old 05/01/2012, 01:56 PM   #35
[ABK]Antonio
High-roller
 
[ABK]Antonio's Avatar
 
Join Date: Sep 2011
Location: ID, USA
Posts: 1,172
Reputation: 163
Default Re: anti cheat tips

Quote:
Originally Posted by Gamer_Z View Post
Ah ok whatever xD Anyway my experience is that on a optimized by me pc, with an i7 , gtx 540 and DDR3 1600MHz ram on a x64 system it just takes 3 seconds to load up xD
That's what...$200+ for the cpu another $100 or more for the mobo...another $500 for the video card, another $50 or more for the ram...then throw on anywhere from $40+ for the PSU...That's already $890 for just that....You think everyone spends that much money on their PC? lol...Aside from that, 30 people that are going to load that fast is rare to find in SA-MP
__________________
ABKClan.com
[ABK]Antonio is offline   Reply With Quote
Old 05/01/2012, 02:02 PM   #36
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 18,175
Reputation: 2541
Default Re: anti cheat tips

If 30 people leave because of a crash they timeout, they don't quit. That method explicitly states it should be used for quits and kicks, not timeouts.
Y_Less is offline   Reply With Quote
Old 05/01/2012, 03:17 PM   #37
Gamer_Z
High-roller
 
Gamer_Z's Avatar
 
Join Date: Jun 2009
Location: Fontys Uni. - Applied Sciences (Currently doing the hardest possible study Fontys has to offer)
Posts: 2,664
Reputation: 870
Default Re: anti cheat tips

Quote:
Originally Posted by Y_Less View Post
If 30 people leave because of a crash they timeout, they don't quit. That method explicitly states it should be used for quits and kicks, not timeouts.
What I tried to explain is that if you make an array of X size you are limited to X size.
If you just make a DB with the SQLi functions that sa-mp has you can have 'unlimited' storage (well, VERY big) and still - very fast.
__________________

New Site (http://gz0.nl)
Google code not working? Try GitHub


Gamer_Z is offline   Reply With Quote
Old 05/01/2012, 03:25 PM   #38
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 18,175
Reputation: 2541
Default Re: anti cheat tips

Or, you could just make a "MAX_PLAYERS" array and have no need for messing with SQL at all.
Y_Less is offline   Reply With Quote
Old 05/01/2012, 04:22 PM   #39
Gamer_Z
High-roller
 
Gamer_Z's Avatar
 
Join Date: Jun 2009
Location: Fontys Uni. - Applied Sciences (Currently doing the hardest possible study Fontys has to offer)
Posts: 2,664
Reputation: 870
Default Re: anti cheat tips

Quote:
Originally Posted by Y_Less View Post
Or, you could just make a "MAX_PLAYERS" array and have no need for messing with SQL at all.
possible too, but I'm wondering.. looping a 'new ExitTime[MAX_PLAYERS][enum { PlayerLastExitTime, PlayerName[24] }];' (yes this code won't work, but you know what I mean)
or just doing a "SELECT `PlayerLastExitTime` FROM `players` WHERE `playername` (equals or whatever) `Gamer_Z`;"

I think SQL is faster than strcmp for each PlayerName variable?
__________________

New Site (http://gz0.nl)
Google code not working? Try GitHub


Gamer_Z is offline   Reply With Quote
Old 05/01/2012, 05:07 PM   #40
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 18,175
Reputation: 2541
Default Re: anti cheat tips

Only if you do use strcmp rather than a hash say.
Y_Less 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
[Include] ELC_ANTI-CHEAT(Arme,Argent,AirBreak,...)(BEST ANTI-CHEAT) Eloctro Includes 124 05/09/2014 08:55 PM
[Include] [INC] Anti Money Cheat, Anti Ban Weapon FreshKilla Includes 28 11/08/2014 03:05 PM


All times are GMT. The time now is 04:00 PM.


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