29.08.2013, 16:15
(
Последний раз редактировалось 3MY; 29.08.2013 в 17:27.
)
Hi, I have a problem with some haters which crash my players.
They use a program named crasher.exe . After you start this program when you hit a player or simply W+ALT or other keys it blocks the players game and they got crashed..
I think this is a posibly anti-crasher but it doesn't work good.
They use a program named crasher.exe . After you start this program when you hit a player or simply W+ALT or other keys it blocks the players game and they got crashed..
I think this is a posibly anti-crasher but it doesn't work good.
Код:
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:vec[3];
GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
new bool:possible_crasher = false;
for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
if (floatabs(vec[i]) > 10.0)
possible_crasher = true;
if (possible_crasher)
return 0; //do not send fake data, prevents crash
}


