[AYUDAME] Sobre informacion de vehiculos.
#4

Aqui esta exactamente lo que buscas

Код:
#include <a_samp>
#define Color 0x008080FF
//=======================
new NombreAutos[212][] = {
"Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana",
"Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat",
"Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife",
"Trailer 1", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo",
"Seasparrow", "Pizzaboy", "Tram", "Trailer 2", "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", "Boxvillde", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B",
"Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster","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 LA", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit",
"Utility", "Nevada", "Yosemite", "Windsor", "Monster A", "Monster B", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance",
"RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway",
"Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer 3", "Emperor", "Wayfarer", "Euros", "Hotdog",
"Club", "Freight Carriage", "Trailer 4", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car (LSPD)", "Police Car (SFPD)",
"Police Car (LVPD)", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer A",
"Luggage Trailer B", "Stairs", "Boxville", "Tiller", "Utility Trailer" };
//=========================
new PlayerText3D:Velocimetro3Dtext;
new VelocimetroXao;
//======================
public OnFilterScriptInit(){
VelocimetroXao = SetTimer("Velocimetro", 500, 1);
return 1;
}

forward Velocimetro();
public Velocimetro()
{
for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p))
{
new vehicleid = GetPlayerVehicleID(p);
if(vehicleid)
{
new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth;
GetVehicleVelocity(vehicleid, X, Y, Z);
PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;
GetVehicleHealth(vehicleid,vhealth);
format(string,sizeof string ,"escribe tu publicidad aqui \nVehiculo: %s\nEstado: %.2f\nVelocidad: %ikm/h", NombreAutos[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor));
DeletePlayer3DTextLabel(p, Velocimetro3Dtext);
Velocimetro3Dtext = CreatePlayer3DTextLabel(p, string, Color, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid);
} else if(p) { DeletePlayer3DTextLabel(p, Velocimetro3Dtext); }
}
}

public OnFilterScriptExit()
{
KillTimer(VelocimetroXao);
for(new p = 0; p < GetMaxPlayers();
p++) DeletePlayer3DTextLabel(p, Velocimetro3Dtext);
return 1;
}
Deves copilarlo en un fs o ponlo en tu GM

Disfrutalo
en donde dice "escribe tu publicidad aqui" Pone tu blog, foro, msn lo que quieres qe vean los que se suban a un vehiculo
Reply


Messages In This Thread
[AYUDAME] Sobre informacion de vehiculos. - by luillixd - 16.04.2010, 02:06
Re: [AYUDAME] Sobre informacion de vehiculos. - by TheChaoz - 16.04.2010, 02:13
Re: [AYUDAME] Sobre informacion de vehiculos. - by luillixd - 16.04.2010, 02:19
Re: [AYUDAME] Sobre informacion de vehiculos. - by RcoN! - 16.04.2010, 03:17
Re: [AYUDAME] Sobre informacion de vehiculos. - by luillixd - 16.04.2010, 04:12
Re: [AYUDAME] Sobre informacion de vehiculos. - by RcoN! - 16.04.2010, 04:19

Forum Jump:


Users browsing this thread: 1 Guest(s)