I Need Anti Troll Car
#6

Here you are, my method is working for almost every car troll hack:

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	pInfo[playerid][player_entering_vehicle] = vehicleid;
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if( (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) && (oldstate != PLAYER_STATE_DRIVER && oldstate != PLAYER_STATE_PASSENGER) )
	{
		if( pInfo[playerid][player_entering_vehicle] != GetPlayerVehicleID(playerid) )
		{
			//Punish cheater
		}
		else
		{
			pInfo[playerid][player_entering_vehicle] = -1;
		}
	}
	return 1;
}
Reply


Messages In This Thread
I Need Anti Troll Car - by ducmcmca1 - 01.01.2018, 02:49
Re: I Need Anti Troll Car - by GangstaSunny. - 01.01.2018, 03:41
Re: I Need Anti Troll Car - by JesterlJoker - 01.01.2018, 11:06
Re: I Need Anti Troll Car - by GangstaSunny. - 01.01.2018, 13:04
Re: I Need Anti Troll Car - by RogueDrifter - 01.01.2018, 13:08
Re: I Need Anti Troll Car - by raydx - 01.01.2018, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)