[HELP] SetvehicleParams
#9

With this CODE i log off the server and log in under a different acc and am able to get in the car but not start the engine.

When i log in with my account that owns the car, its still locked

Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(PlayerInfo[i][pPcarkey] == vehicleid && CarInfo[vehicleid][cLock] == 1)
		{
	 		for(new u = 0; u < MAX_PLAYERS; u++)
	   		{
	     		SetVehicleParamsForPlayer(vehicleid, u, 0, 1);
		    }
	   	}
		if(PlayerInfo[i][pPcarkey2] == vehicleid && CarInfo[vehicleid][cLock] == 1)
		{
			for(new u = 0; u < MAX_PLAYERS; u++)
			{
				SetVehicleParamsForPlayer(vehicleid, u, 0, 1);
	 		}
		}
	}
	return 1;
}
Reply


Messages In This Thread
[HELP] SetvehicleParams - by euRo - 25.06.2011, 14:39
Re: [HELP] SetvehicleParams - by [HiC]TheKiller - 25.06.2011, 14:50
AW: [HELP] SetvehicleParams - by Nero_3D - 25.06.2011, 14:50
Re: [HELP] SetvehicleParams - by euRo - 25.06.2011, 15:00
Re: [HELP] SetvehicleParams - by euRo - 25.06.2011, 15:11
AW: [HELP] SetvehicleParams - by Nero_3D - 25.06.2011, 16:04
Re: [HELP] SetvehicleParams - by euRo - 25.06.2011, 18:31
Re: [HELP] SetvehicleParams - by euRo - 25.06.2011, 19:07
Re: [HELP] SetvehicleParams !!HELP PLEASE :< - by euRo - 25.06.2011, 19:41
Re: [HELP] SetvehicleParams - by euRo - 25.06.2011, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)