15.01.2019, 20:38
Hey, I need a anti crash what work with vortex and screen,where can I found?
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:vec0,Float:vec1,Float:vec2;
GetPlayerCameraFrontVector(playerid, vec0, vec1, vec2);
new bool:possible_crasher = false;
if (floatabs(vec0) > 10.0 || floatabs(vec1) > 10.0 || floatabs(vec2) > 10.0)
possible_crasher = true;
if (possible_crasher) {
new stringw[128];
format(stringw,128,"(Anti-Cheat) %s(%d) posibil crasher / spam!",GetName(playerid),playerid);
ABroadCast(COLOR_ADMCOMMANDS,stringw,1);
return 0; //do not send fake data, prevents crash
}
}