06.07.2017, 09:16
Hi. Recently i saw a cheater who can throw any player in random directions, also with vehicles. What's the name of that cheat? How can I make an anticheat to block it?
public OnPlayerStateChange(playerid, newstate, oldstate) { #if defined DEBUG printf("[debug] OnPlayerStateChange(%d, %d, %d)", playerid, newstate, oldstate); #endif if( newstate == PLAYER_STATE_DRIVER && PlayerData[playerid][pAdminLevel] == 0 ) { if( GetPlayerVehicleID( playerid ) != p_CarWarpVehicleID[ playerid ] ) { if( p_CarWarpTime[ playerid ] > gettime( ) ) { format(string128, sizeof(string128),"[AdmBot]{FFFFFF} %s(%d) has been kicked for car warping.", PlayerData[playerid][pNormalName], playerid ); SendClientMessageToAll(COLOR_LIGHTRED, string128); KickEx(playerid); return 1; } p_CarWarpTime[ playerid ] = gettime( ) + 1; p_CarWarpVehicleID[ playerid ] = GetPlayerVehicleID( playerid ); } } return 1; }