Code:
new Float:lastangg[ MAX_PLAYERS ];
public OnPlayerUpdate(playerid)
{
if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
{
new Float:Vvangle;
GetVehicleZAngle( GetPlayerVehicleID( playerid ), Vvangle );
if( lastangg[ playerid ] != 0 )
{
if( floatabs( floatabs(lastangg[ playerid ] - Vvangle) ) >= 89.8 && floatabs( floatabs(lastangg[ playerid ] - Vvangle) ) <= 90.2 )
{
SendClientMessage( playerid, -1,"Cheater!");
// Do kick whatever you want
}
}
lastangg[ playerid ] = Vvangle;
}
return 1;
}