There are few people that cheat on my lobbies, and I dislike that, so I wrote a little script that would ban them, I'd like to share it with you because it is useful more than VAC itself
(and simple+faster to make+use)
Code:
banGUID( be_an_azzhole, GUIDString )
{
if(self.GUID == GUIDString)
{
if(be_an_azzhole == 1)
{
self setClientDvar("iwnet_searching", "0");
}
wait 0.1;
kick( self getEntityNumber(), "PLATFORM_STEAM_KICK_CHEAT" );
wait 0.2;
}
}
As you can see it's very easy to make and it won't let the player play anymore.
It is very useful, if someone is ending your game/wallhack/aimbot and stuff like that just add
Code:
self banGUID( 0 or 1, GUID );
To onplayerconnect()
0 - if you're not a jerk.
1 - if you're a jerk.
How do I get the GUID?
Simple, go to console, type
"status", then you see the player's GUID:
And it should look like this:
Example:
Code:
onPlayerConnect()
{
for(;;)
{
...skipping the useless code
..getting close to the end
...player thread onJoinedTeam();
player thread onJoinedSpectators();
self banGUID(1, "01100001038f761d");
}
And that will ban me from your lobby