Akcslimit bug
#3

Код:
public OnPlayerUpdate(playerid)
{
	if(!IsPlayerConnected(playerid)) return 0;

	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		for(new i = 1; i < sizeof(SpikeInfo); i++)
		{
			if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sgX], SpikeInfo[i][sgY], SpikeInfo[i][sgZ]))
			{
				if(SpikeInfo[i][sgCreated] == 1)
				{
					new panels, tires;
					new carid = GetPlayerVehicleID(playerid);
					GetVehicleDamageStatus(carid, panels, doors, lights, tires);
					tires = encode_tires(1, 1, 1, 1);
					UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
					return 0;
				}
			}
		}
	}

	return 1;
}
This is my OnPlayerUpdate.
Reply


Messages In This Thread
Akcslimit bug - by CloW - 09.01.2015, 16:07
Re: Akcslimit bug - by PowerPC603 - 09.01.2015, 17:07
Re: Akcslimit bug - by CloW - 09.01.2015, 17:22
Re: Akcslimit bug - by CloW - 10.01.2015, 13:35
Re: Akcslimit bug - by bigboy81 - 10.01.2015, 14:48
Re: Akcslimit bug - by CloW - 10.01.2015, 16:21
Re: Akcslimit bug - by ball - 10.01.2015, 17:09
Re: Akcslimit bug - by CloW - 10.01.2015, 17:39

Forum Jump:


Users browsing this thread: 3 Guest(s)