[REP++] s0b detect - 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: [REP++] s0b detect (
/showthread.php?tid=585739)
[REP++] s0b detect -
buburuzu19 - 16.08.2015
Does anybody know how to make a s0b detector ?
I searched a little bit but i can't find one . I heard that you can make one by getting the player vector's camera but i can't understand how this works and how to reproduce one.
Thanks for help!
Re: [REP++] s0b detect -
IgorLuiz - 16.08.2015
this friend
OnPlayerSpawn
PHP Code:
SetCameraBehindPlayer(playerid);
SetTimerEx("Check", 4 * 1000, 0, "i", playerid);
TogglePlayerControllable(playerid, 0);
public
PHP Code:
forward Check(playerid);
public Check(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerCameraFrontVector(playerid, x, y, z);
#pragma unused x
#pragma unused y
if(z < -0.8)
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, -1, "{FF0000}You were automatically kicked on suspicion of hask" );
Kick(playerid);
}
else
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, -1, "Without hask, good game" );
}
return 1;
}
Re: [REP++] s0b detect -
buburuzu19 - 16.08.2015
Quote:
Originally Posted by IgorLuiz
this friend
OnPlayerSpawn
PHP Code:
SetCameraBehindPlayer(playerid);
SetTimerEx("Check", 4 * 1000, 0, "i", playerid);
TogglePlayerControllable(playerid, 0);
public
PHP Code:
forward Check(playerid);
public Check(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerCameraFrontVector(playerid, x, y, z);
#pragma unused x
#pragma unused y
if(z < -0.8)
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, -1, "{FF0000}You were automatically kicked on suspicion of hask" );
Kick(playerid);
}
else
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, -1, "Without hask, good game" );
}
return 1;
}
|
It is necessary to make a timer for checking ? I was thinking to just use Check(playerid); under SetCameraBehindPlayer.
Re: [REP++] s0b detect -
IgorLuiz - 16.08.2015
Quote:
Originally Posted by buburuzu19
It is necessary to make a timer for checking ? I was thinking to just use Check(playerid); under SetCameraBehindPlayer.
|
can use as well, but with timer and safer against bugs.
Re: [REP++] s0b detect -
rymax99 - 16.08.2015
Quote:
Originally Posted by IgorLuiz
this friend
OnPlayerSpawn
PHP Code:
SetCameraBehindPlayer(playerid);
SetTimerEx("Check", 4 * 1000, 0, "i", playerid);
TogglePlayerControllable(playerid, 0);
public
PHP Code:
forward Check(playerid);
public Check(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerCameraFrontVector(playerid, x, y, z);
#pragma unused x
#pragma unused y
if(z < -0.8)
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, -1, "{FF0000}You were automatically kicked on suspicion of hask" );
Kick(playerid);
}
else
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, -1, "Without hask, good game" );
}
return 1;
}
|
Not effective anymore, pretty much all versions of the modification that works with 0.3.7 have been patched so that checking camera vectors doesn't detect it.
Re: [REP++] s0b detect -
Scriptery - 02.09.2015
Don`t work for any s0b. Best detector s0b is detect press f12 and CJ run
Re: [REP++] s0b detect -
Pottus - 02.09.2015
Igor doesn't know what he's talking about that will produce false positives out your asshole. That check is also prehistoric and useless these days.
Re: [REP++] s0b detect -
Jefff - 02.09.2015
Last known method is:
- ResetPlayerWeapons
- Create caddy and put player inside as driver
- After few X ms destroy caddy
- Check if player have WEAPON_GOLFCLUB
- If yes - ban or send info for admins
- If not give him back weapons
and remember they can use NOPs
AW: Re: [REP++] s0b detect -
Kaliber - 02.09.2015
Wow this works...but Cleo Mods or any other mods...it doesn't detect..so at least u should use an anti-cheat system
Re: [REP++] s0b detect -
br155 - 06.09.2015
upppppppppppppp