XpLoD Posted May 23, 2010 Report Share Posted May 23, 2010 as vrea cand intru in masina sa'mi zica denumirea masinii exact cum e in poza si daca am server stunt/freeroam cum as putea sa pun si eu cateva numere de inmatriculare..? Link to comment Share on other sites More sharing options...
Guest farse Posted May 23, 2010 Report Share Posted May 23, 2010 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 More sharing options...
XpLoD Posted May 23, 2010 Author Report Share Posted May 23, 2010 pff dar macar sa'mi zica numele la masina cand intru in ea in dreapta exact ca in poza... Link to comment Share on other sites More sharing options...
Guest farse Posted May 24, 2010 Report Share Posted May 24, 2010 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 OnplayerStateChangeif(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 More sharing options...
XpLoD Posted May 24, 2010 Author Report Share Posted May 24, 2010 mersiP.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 Link to comment Share on other sites More sharing options...
Question
XpLoD
as vrea cand intru in masina sa'mi zica denumirea masinii exact cum e in poza
si
daca am server stunt/freeroam cum as putea sa pun si eu cateva numere de inmatriculare..?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts