SA-MP Forums Archive
IsAnOwnableCar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IsAnOwnableCar (/showthread.php?tid=246682)



IsAnOwnableCar - Gagi_Corleone - 05.04.2011

I have not added any cars to buy I just changed cars id and their coordinates, but now I do not write the name of the vehicle that you just wrote some buffalo, although it is not a buffalo, and some can not drive. E whether we should here something that I change
Код:
 for(new h = 230; h < sizeof(CarInfo); h++)
	{
		AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
	}
When i start to edit GameMode id was start from 230 and i add same cars for gangs then i must to change id to 285.
Код:
public IsAnOwnableCar(vehicleid)
{
	if(vehicleid >= 285 && vehicleid <= 564) { return 1; }
	return 0;
}
Sorry for my bad English