Posts: 9
Threads: 0
Joined: Nov 2014
Quote:
Originally Posted by kaZax
This fix is patching a hack which appeared few days ago. This hack crashes players when you are near them.
I got this hack, and used it on a test server using a debug for GetPlayerCameraPos, this is what it returned:
PHP Code:
[12:00:29] -309.053192 1523.427368 -173527616.000000
See those huge numbers ? Yeah... they are reported by that hack to the server.
This is the fix:
PHP Code:
public OnPlayerUpdate(playerid)
{
if(GetPlayerCameraMode(playerid) == 53)
{
new Float:kLibPos[3];
GetPlayerCameraPos(playerid, kLibPos[0], kLibPos[1], kLibPos[2]);
if ( kLibPos[2] < -50000.0 || kLibPos[2] > 50000.0 )
{
BanEx(playerid, "WeaponCrasher");
return 0;
}
}
return 1;
}
Credits:
IstuntmanI - for text.
|
Thanks Bro' !!