Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include zcmd
- new Text:Velocidadex[MAX_PLAYERS],
- Text:Veiculox[MAX_PLAYERS],
- Text:Lataria[MAX_PLAYERS],
- Float:Latariax;
- new Veiculos[][] =
- {
- "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", "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", "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", "Hustler", "Intruder", "Primo",
- "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
- "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
- "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", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
- "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
- "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
- "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
- "Tiller", "Utility Trailer"
- };
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, -1,"by: SkolPlay");
- SendClientMessage(playerid, -1,"Não retire os creditos!");
- return 1;
- }
- public OnGameModeInit()
- {
- for(new I = 0; I < MAX_PLAYERS; I ++)
- {
- Velocidadex[I] = TextDrawCreate(145.000000, 378.000000, " ");
- TextDrawBackgroundColor(Velocidadex[I], 255);
- TextDrawFont(Velocidadex[I], 1);
- TextDrawLetterSize(Velocidadex[I], 0.330000, 1.000000);
- TextDrawColor(Velocidadex[I], -1);
- TextDrawSetOutline(Velocidadex[I], 0);
- TextDrawSetProportional(Velocidadex[I], 1);
- TextDrawSetShadow(Velocidadex[I], 1);
- TextDrawSetSelectable(Velocidadex[I], 0);
- Veiculox[I] = TextDrawCreate(145.000000, 393.000000, " ");
- TextDrawBackgroundColor(Veiculox[I], 255);
- TextDrawFont(Veiculox[I], 1);
- TextDrawLetterSize(Veiculox[I], 0.330000, 1.000000);
- TextDrawColor(Veiculox[I], -1);
- TextDrawSetOutline(Veiculox[I], 0);
- TextDrawSetProportional(Veiculox[I], 1);
- TextDrawSetShadow(Veiculox[I], 1);
- TextDrawSetSelectable(Veiculox[I], 0);
- Lataria[I] = TextDrawCreate(145.000000, 405.000000, " ");
- TextDrawBackgroundColor(Lataria[I], 255);
- TextDrawFont(Lataria[I], 1);
- TextDrawLetterSize(Lataria[I], 0.330000, 1.000000);
- TextDrawColor(Lataria[I], -1);
- TextDrawSetOutline(Lataria[I], 0);
- TextDrawSetProportional(Lataria[I], 1);
- TextDrawSetShadow(Lataria[I], 1);
- TextDrawSetSelectable(Lataria[I], 0);
- }
- SetTimer("Velocimetro", 1, 1);
- return 1;
- }
- forward Velocimetro(playerid);
- public Velocimetro(playerid)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new vehicle, velocidade, Float:Pos[3], string[180];
- vehicle = GetPlayerVehicleID(playerid);
- GetVehicleVelocity(vehicle, Pos[0], Pos[1], Pos[2]);
- velocidade = floatround(floatsqroot(Pos[0] * Pos[0] + Pos[1] * Pos[1] + Pos[2] * Pos[2]) * 180.00);
- format(string,sizeof(string), "~b~~>~~b~~h~~h~Velocidade:~w~%3d km/h", velocidade);
- TextDrawSetString(Velocidadex[playerid], string);
- TextDrawShowForPlayer(playerid, Velocidadex[playerid]);
- //==========================================================================================================================
- format(string,sizeof(string), "~b~~>~~b~~h~~h~Veiculo: ~w~%s", Veiculos[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
- TextDrawShowForPlayer(playerid,Veiculox[playerid]);
- TextDrawSetString(Veiculox[playerid], string);
- //==========================================================================================================================
- GetVehicleHealth(GetPlayerVehicleID(playerid), Latariax);
- format(string,sizeof(string), "~b~~>~~b~~h~~h~Lataria:~w~%0.0f%", Latariax/10);
- TextDrawShowForPlayer(playerid,Lataria[playerid]);
- TextDrawSetString(Lataria[playerid], string);
- }
- else
- {
- TextDrawHideForPlayer(playerid, Velocidadex[playerid]);
- TextDrawHideForPlayer(playerid, Veiculox[playerid]);
- TextDrawHideForPlayer(playerid, Lataria[playerid]);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement