OnPlayerUpdate
#8

Код:
public OnPlayerUpdate(playerid)
{
	WantedLevelColor(playerid);
	
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		for(new i = 0; i < sizeof(SInfo); i ++)
		{
			if(SInfo[i][SpikeCreated] == 1)
			{
				if(IsPlayerInRangeOfPoint(playerid, 4.0, SInfo[i][SX], SInfo[i][SY], SInfo[i][SZ]))
				{
					new panels, doors, lights, 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 1;
				}
			}
		}
	}
	return 1;
}
Reply


Messages In This Thread
OnPlayerUpdate - by spykidz01 - 29.04.2014, 01:32
Re: OnPlayerUpdate - by spykidz01 - 29.04.2014, 02:00
Respuesta: OnPlayerUpdate - by Swedky - 29.04.2014, 02:08
Re: OnPlayerUpdate - by SkittlesAreFalling - 29.04.2014, 02:11
Re: OnPlayerUpdate - by spykidz01 - 29.04.2014, 03:13
Re: OnPlayerUpdate - by SkittlesAreFalling - 29.04.2014, 03:39
Re: OnPlayerUpdate - by spykidz01 - 29.04.2014, 03:41
Re: OnPlayerUpdate - by SkittlesAreFalling - 29.04.2014, 03:42
Re: OnPlayerUpdate - by spykidz01 - 29.04.2014, 03:46
Re: OnPlayerUpdate - by spykidz01 - 29.04.2014, 03:55

Forum Jump:


Users browsing this thread: 1 Guest(s)