Buying 2 vehicles
#1

Hello!

in my GM you can only buy one vehicle, and i want to make it so peoples can buy 2 vehicles, one car and one bike.
the GM is custom made, not a mod of a existing script!

any ideas how to make this?

Reply
#2

pCar[playerid]
pBike[playerid]
Reply
#3

Quote:
Originally Posted by kaisersouse
pCar[playerid]
pBike[playerid]
i have
Код:
forward HouseCar(carid);
new Float:HouseCarSpawns[45][4] =
public OnGameModeInit()
{
	SetGameModeText("Texas RP");
	DisableInteriorEnterExits();
	ShowPlayerMarkers(0);
	AllowAdminTeleport(1);
	AllowInteriorWeapons(1);
	LoadHouses();
	for(new h = 0; h < sizeof(HouseAtom); h++)
	{
		AddStaticVehicleEx(HouseAtom[h][hVehicle], HouseCarSpawns[h][0], HouseCarSpawns[h][1], HouseCarSpawns[h][2], HouseCarSpawns[h][3],-1 ,-1,900000000);
		gCarLock[h+1] = 1;
	}
	for(new i = 0; i < sizeof(CreatedCars); i++)
	{
	  CreatedCars[i] = 0;
	}
	for(new i = 0; i <= sizeof(Skins)-1; i++)
	{
		AddPlayerClass(Skins[i][0],-205.9944,1119.2583,20.1064,269.7959,-1,-1,-1,-1,-1,-1);
	}
	for(new i = 0; i < sizeof(HouseAtom); i++)
	{
	  if(HouseAtom[i][hOwned] == 0)
	  {
	  	AddStaticPickup(1273, 2, HouseAtom[i][hOx], HouseAtom[i][hOy], HouseAtom[i][hOz]);
	  	printf("House %d pos: %f, %f, %f", i,HouseAtom[i][hOx], HouseAtom[i][hOy], HouseAtom[i][hOz]);
	  	pickups++;
		}
		else
		{
	  	AddStaticPickup(1239, 2, HouseAtom[i][hOx], HouseAtom[i][hOy], HouseAtom[i][hOz]);
	  	printf("House %d pos: %f, %f, %f", i,HouseAtom[i][hOx], HouseAtom[i][hOy], HouseAtom[i][hOz]);
	  	pickups++;
		}
	}
public HouseCar(carid)
{
	if(carid >= 1 && carid <= 45)
	{
	  return 1;
	}
	return 0;
}
so i dont use pCar

anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)