Anti-cheat

Posts 1–15 of 17 · Page 1 of 2
Anti-cheat
Hello i made a code that checks if the player has 8 headshots and then ends the game (that is just for easy debug) i will change it later, but i get the error unknown function.

Code:
headShot( killId )
{
   {
	self.modifiers["headshot"] = true;

	self thread maps\mp\gametypes\_hud_message::SplashNotifyDelayed( "headshot", maps\mp\gametypes\_rank::getScoreInfoValue( "headshot" ) );
	self thread maps\mp\gametypes\_rank::giveRankXP( "headshot" );
	self thread giveAdrenaline( "headshot" );
	self thread maps\mp\_matchdata::logKillEvent( killId, "headshot" );
	self.headshots += 1;
	self sayall("lala");
	}
	{
	while(1)
			if (self.headshots == 8)
			{
			 level thread maps\mp\gametypes\_gamelogic::forceEnd();
			}
   wait 1;
   }
}
this is in the _events.gsc, as you can see i dont know much about self. and decimals increase in c++.

The error will be in
Code:
self.headshots += 1;
i guess.
omg....
Quote Originally Posted by Yamato View Post
omg....
Would you rather help me instead of posting this?
Quote Originally Posted by codGmer View Post
Would you rather help me instead of posting this?
The code is REALLY REALLY REALLY messed up... lol
Quote Originally Posted by EpicPlayer View Post
The code is REALLY REALLY REALLY messed up... lol
another usefull comment
This code is so WTF as this:

Code:
Hackur();
{
     { 
          yes
      }
       else({)
       no
       })
       maybe:
       {}{}{}{}{}{}{}
       +1-54+16*headshots = OMA
       }
}
Quote Originally Posted by Yamato View Post
This code is so WTF as this:

Code:
Hackur();
{
     { 
          yes
      }
       else({)
       no
       })
       maybe:
       {}{}{}{}{}{}{}
       +1-54+16*headshots = OMA
       }
}
Exactly, it makes no sense...
btw, the error is not

self.headshots += 1;
I am used to Visual basic so thats maybe why. I want everytime you get a headshot a counter counts + 1 and if that value is 8(from the counter) then end the game..

Quote Originally Posted by Yamato View Post
btw, the error is not

self.headshots += 1;
So that is possible ?
Quote Originally Posted by codGmer View Post
I am used to Visual basic so thats maybe why. I want everytime you get a headshot a counter counts + 1 and if that value is 8(from the counter) then end the game..



So that is possible ?
yeahh, sure, isnt better to kick the hacker that end game, lol?
Quote Originally Posted by Yamato View Post
yeahh, sure, isnt better to kick the hacker that end game, lol?
yea iknow, but it the end game is for debug only.... i will change it later.
you need to edit it soon at possblie dude the code are Fu*^ up so yeah just telling you !
Quote Originally Posted by XX_Kivata_XX View Post
you need to edit it soon at possblie dude the code are Fu*^ up so yeah just telling you !
What? i can't follow you lol, yea i know the code is Fu*^ up.

Code:
headShot( killId )
{
   
	self.modifiers["headshot"] = true;

	self thread maps\mp\gametypes\_hud_message::SplashNotifyDelayed( "headshot", maps\mp\gametypes\_rank::getScoreInfoValue( "headshot" ) );
	self thread maps\mp\gametypes\_rank::giveRankXP( "headshot" );
	self thread giveAdrenaline( "headshot" );
	self thread maps\mp\_matchdata::logKillEvent( killId, "headshot" );
	self.headshots += 1; 
            self thread test();
   
}
And then this thread

Code:
test()
{
 for(;;)
 {
    if (self.headshots == 8)
    {
level thread maps\mp\gametypes\_gamelogic::forceEnd();
    }
 wait 1;
 }
}
I am going to say you a few BIG-> ENORMOUS-> EPIC-> FAILS¡¡¡¡¡

Code:
headShot( killId )
{
   { //?
	self.modifiers["headshot"] = true;

	self thread maps\mp\gametypes\_hud_message::SplashNotifyDelayed( "headshot", maps\mp\gametypes\_rank::getScoreInfoValue( "headshot" ) );
	self thread maps\mp\gametypes\_rank::giveRankXP( "headshot" );
	self thread giveAdrenaline( "headshot" );
	self thread maps\mp\_matchdata::logKillEvent( killId, "headshot" );
	self.headshots += 1; // you can also do self.headshots ++; is same
	self sayall("lala"); //for?
	} //O_O
	{ //wait WTF
	while(1) //?¿?¿
			if (self.headshots == 8)
			{
			 level thread maps\mp\gametypes\_gamelogic::forceEnd(); 
			}
   wait 1;
   } //?
}
I am going to say you a few BIG-> ENORMOUS-> EPIC-> FAILS¡¡¡¡¡
Not really... I made several mods.

Look at my other post.
Posts 1–15 of 17 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?