Jump to content
  • 0

Denumirea Masini + Numere de inmatriculare


XpLoD

Question

4 answers to this question

Recommended Posts

Guest farse

pai poti sa faci ceva de genu:

new bool:VehHaveAtt[MAX_VEHICLES];
pulbic OnVehicleSpawn(vehicleid)
{
	if(!VehHaveAtt[vehicleid])
	{
		new 
			3DText:NumarInmatriculare,
			Float:X,
			Float:Y,
			Float:Z,
			string[126];
		GetVehiclePos(vehicleid,X,Y,Z);
		format(string,126,"Nr:%d",vehicleid);
		NumarInmatriculare=Create3DTextLabel(string, COLOR_DEZ, X, Y, Z, 10, -1, 1);
		Attach3DTextLabelToVehicle(NumarInmatriculare,vehicleid,0,0,2);
		VehHaveAtt[vehicleid]=1;
	}
	return 1;
}

Nu stiu daca functioneaza..lam scris acuma..

Link to comment
Share on other sites

Guest farse

i lose that,sorry...

Pui asta la inceput,pe la variabile:

new VehicleName[][] = {
   "Landstalker",  "Bravura",  "Buffalo", "Linerunner", "Perennial", "Sentinel",
   "Dumper",  "Firetruck" ,  "Trashmaster" ,  "Stretch",  "Manana",  "Infernus",
   "Voodoo", "Pony",  "Mule", "Cheetah", "Ambulance",  "Leviathan",  "Moonbeam",
   "Esperanto", "Taxi",  "Washington",  "Bobcat",  "Mr Whoopee", "BF Injection",
   "Hunter", "Premier",  "Enforcer",  "Securicar", "Banshee", "Predator", "Bus",
   "Rhino",  "Barracks",  "Hotknife",  "Trailer",  "Previon", "Coach", "Cabbie",
   "Stallion", "Rumpo", "RC Bandit",  "Romero", "Packer", "Monster",  "Admiral",
   "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer",  "Turismo", "Speeder",
   "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
   "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
   "Oceanic", "Sanchez", "Sparrow",  "Patriot", "Quad",  "Coastguard", "Dinghy",
   "Hermes", "Sabre", "Rustler", "ZR-350", "Walton",  "Regina",  "Comet", "BMX",
   "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
   "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
   "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin",
   "Hotring Racer", "Hotring Racer", "Bloodring Banger", "Rancher",  "Super GT",
   "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropdust", "Stunt",
   "Tanker", "RoadTrain", "Nebula", "Majestic", "Buccaneer", "Shamal",  "Hydra",
   "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona",
   "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington",
   "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover",
   "Sadler",  "Firetruck", "Hustler", "Intruder", "Primo", "Cargobob",  "Tampa",
   "Sunrise", "Merit",  "Utility Truck", "Nevada", "Yosemite", "Windsor", "Monster",
   "Monster", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance", "RCTiger",
   "Flash", "Tahoma", "Savanna", "Bandito", "Freight", "Trailer", "Kart", "Mower",
   "Dune", "Sweeper", "Broadway", "Tornado", "AT-400",  "DFT-30", 	  "Huntley",
   "Stafford", "BF-400", "Newsvan", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros",
   "Hotdog", "Club", "Trailer", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch",
   "Police Car (LSPD)", "Police Car (SFPD)", "Police Car (LVPD)", "Police Ranger",
   "Picador",   "S.W.A.T. Van",  "Alpha",   "Phoenix",   "Glendale",   "Sadler",
   "Luggage Trailer", "Luggage Trailer", "Stair Trailer", "Boxville", "Farm Plow",
   "Utility Trailer"
};

Si asta la OnplayerStateChange



if(newstate==PLAYER_STATE_DRIVER)
{
new string[256];
format(string,256,"~p~~h~%s",VehicleName[GetVehicleModel(vehicleid)-400]);
GameTextForPlayer(playerid,string,3000,1);
}

Link to comment
Share on other sites

mersi

P.S nu il aveam  am pus

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
new string[256];
format(string,256,"~p~~h~%s",VehicleName[GetVehicleModel(vehicleid)-400]);
GameTextForPlayer(playerid,string,3000,1);
   }
return 1;
}
eroare. vehicleid am facut
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
new string[256];
new vehicleid = GetPlayerVehicleID(playerid);
format(string,256,"~p~~h~%s",VehicleName[GetVehicleModel(vehicleid)-400]);
GameTextForPlayer(playerid,string,3000,1);
   }
return 1;
}
acu fara nicio eroare  thx

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.