All pastes #488650 Raw Edit

Someone

public cpp v1 · immutable
·published 2007-05-15 02:58 UTC
rendered paste body
public Anticheat(){	for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i))	{	    if(pInfo[i][Spawned] == 0) break;	    new Float:h,Float:h1,v,Float:x,Float:y,Float:z;	    GetPlayerHealth(i,h);		GetPlayerPos(i,x,y,z);	    if(h > 100)		{		    if(pInfo[i][R] == 100) break;		    pInfo[i][R] = 100;			Report(i,1);		}		GetPlayerHealth(i,h);		SetPlayerHealth(i,h-0.01);		GetPlayerHealth(i,h1);	    if(GetPlayerHealth(i,h) == h1) Report(i,1);	    SetPlayerHealth(i,h);	    if(pInfo[i][State] == 2)	    {	        v = GetPlayerVehicleID(i);			if(pInfo[i][Speed] > 150 && GetVehicleType(v) != VTYPE_AIR)			for(new s=0; s<3; s++)			if(!P2Point(120,i,speedvoid[s][0],speedvoid[s][1],speedvoid[s][2]))			{			    if(pInfo[i][R] == 200) break;			    pInfo[i][R] = 200;			    Report(i,2);			}			if(pInfo[i][Speed] > 150 && GetVehicleType(v) != VTYPE_AIR)			{	            for(new s=0; s<3; s++)				if(z > 120 && !P2Point(120,i,speedvoid[s][0],speedvoid[s][1],speedvoid[s][2]))				{					if(pInfo[i][R] == 300) break;			    	pInfo[i][R] = 300;					Report(i,3);				}			}		}		if(GetPlayerState(i) == PLAYER_STATE_ONFOOT)		{		    if(z > 700) break;		    for(new s=0; s<3; s++)			if(z > 120 && P2Point(120,i,speedvoid[s][0],speedvoid[s][1],speedvoid[s][2])) break;			if(pInfo[i][Speed] > 100)			Report(i,2);		} 	    if(pInfo[i][Mon] < GetPlayerMoney(i))		{		    if(pInfo[i][R] == 400) break;		    pInfo[i][R] = 400;		    Report(i,4);		}		if(pInfo[i][X] > floatround(x))		if(pInfo[i][X] - floatround(x) > 150 && z < 500)		{		    for(new s=0; s<3; s++)		    if(!P2Point(120,i,speedvoid[s][0],speedvoid[s][1],speedvoid[s][2]))		    {		    	if(pInfo[i][R] == 500) break;				pInfo[i][R] = 500;		        Report(i,5);		    } 		} 		else		if(floatround(x) - pInfo[i][X] > 150 && z < 500)		{		    for(new s=0; s<3; s++)		    if(!P2Point(120,i,speedvoid[s][0],speedvoid[s][1],speedvoid[s][2]))		    {		    	if(pInfo[i][R] == 500) break;				pInfo[i][R] = 500;		        Report(i,5);		    }		}		GetPlayerPos(i,x,y,z);		new Float:x2,Float:y2,Float:z2,player[24];		GetPlayerName(i,player,24);		if(GetPlayerID(player) != GetPlayerID(player))		{		    GetPlayerPos(i,x2,y2,z2);		    if(floatsub(z2,z) < 10 && floatsub(z2,z) > -10)		    if(x < x2)		    if(floatsub(x2,x) > 0 && floatsub(x2,x) < 10)		    {		        Report(i,6);    	            }		    else			if(floatsub(x,x2) > 0 && floatsub(x,x2) < 10)		    {		        Report(i,6);		    }		}	}}