Cj run - 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: Cj run (
/showthread.php?tid=313174)
Cj run -
Snowman12 - 24.01.2012
Hey,
I have added a lot to my anticheat over the past few days, I have Jetpack, Speed, Money, Car spam, weapon hacking.
One thing that I really want to include is detecting CJ runners as most people use this, how would this be done?
Re: Cj run -
henry jiggy - 24.01.2012
hmmmm... first thing would be to remove skin 0 from your server's spawn option and detect if someone is using it, second and more effective still risky thing would be a lot more advanced to check for speed and could ban innocent players that lag.
Re: Cj run -
Snowman12 - 24.01.2012
firstly I wasn't looking for "detect" I was looking for a way of detecting it.
Re: Cj run -
Chris White - 24.01.2012
There's no way, dude. I've made searches, and seen posts, but without a result. Sorry for disappointing you.
Re: Cj run -
Snowman12 - 24.01.2012
alright thanks man
Re: Cj run -
Konstantinos - 24.01.2012
There are only one way. Remove the function that allow player run/walk as CJ
pawn Код:
// OnGameModeInit( )
UsePlayerPedAnims( );
But if you have CJ's skin on your server, remove that skin, else if it's impossible to disable this animation to CJ.
Re: Cj run -
Lightning[SV] - 24.01.2012
I think its possible using GetPlayerAnimationIndex and GetAnimationName. Try checking for the anim RUN_PLAYER (untested).
Re: Cj run -
henry jiggy - 26.01.2012
I know this thread is kinda necro, but i have something to add:
Even if you dont use UsePlayerPedAnims(), people with hacks can still CJ run, thats what hes trying to detect...
Still if you don't use it, skin 0 can ALWAYS CJ Run. well, at least last time i checked it was like that.
Re: Cj run -
Snowman12 - 26.01.2012
cj skin is removed.
AW: Cj run -
BigETI - 26.01.2012
You should check the CJ running animations with GetPlayerAnimationIndex in OnPlayerUpdate callback