[HELP] Making a car non enterable
#5

I also have some other misc code with SetVehicleParamsForPlayer.

Код:
	for(new c = 1; c < 254; c++)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				if (PlayerInfo[i][pJob] == 5)
				{
					SetVehicleParamsForPlayer(c, i, 0, 0);
				}
			}
		}
		if (gLastDriver[c] == 301)
		{
			CarRespawn©;
		}
		if (gLastDriver[c] >= 300)
		{
			gLastDriver[c]++;
		}
		//foundowner = -1;
	}
	return 1;
}
Код:
public LockCar(carid)
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			SetVehicleParamsForPlayer(carid,i,0,1);
		}
	}
}

public UnLockCar(carid)
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(!IsAPlane(carid))
			{
				SetVehicleParamsForPlayer(carid,i,0,0);
			}
		}
	}
}
I'll remove the SetVehicleParamsForPlayer(99, j, 0, 0); etc, to see if that works.
Reply


Messages In This Thread
[HELP] Making a car non enterable - by Tito_Johnson - 10.02.2009, 01:57
Re: [HELP] Making a car non enterable - by Backwardsman97 - 10.02.2009, 02:03
Re: [HELP] Making a car non enterable - by Tito_Johnson - 10.02.2009, 02:05
Re: [HELP] Making a car non enterable - by ICECOLDKILLAK8 - 10.02.2009, 02:06
Re: [HELP] Making a car non enterable - by Tito_Johnson - 10.02.2009, 02:07
Re: [HELP] Making a car non enterable - by ICECOLDKILLAK8 - 10.02.2009, 02:09
Re: [HELP] Making a car non enterable - by Backwardsman97 - 10.02.2009, 02:10
Re: [HELP] Making a car non enterable - by Tito_Johnson - 10.02.2009, 02:13
Re: [HELP] Making a car non enterable - by ICECOLDKILLAK8 - 10.02.2009, 02:14
Re: [HELP] Making a car non enterable - by Tito_Johnson - 10.02.2009, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)