OKStyle
| Дата: Пятница, 10/07/2009, 01:17 | Сообщение # 1 |
Analgésico
Регистрация: 17/01/2009 |
Клан: | [ACF] |
Статус: | |
| Code /* ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ ¤ Vehicle Name Display filterscript by Seif. Please give ¤ ¤ credits if used anyhow. ¤ ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : »GameText Colors« : : ~r~ Red Red Color : : ~g~ Green Green Color : : ~p~ Purple Purple Color : : ~w~ White White Color : : ~b~ Blue Blue Color : : ~y~ Yellow Yellow Color : : ~l~ Black Black Color : : ~h~ Bright More bright : : ~n~ New line Creates a new line : : ~u~ Up arrow in grey Does the UP arrow : : ~d~ Down arrow in grey Does the DOWN arrow : : ~<~ Left arrow in grey Does the LERT arrow : : ~>~ Right arrow in grey Does the RIGHT arrow : : ] Star Makes a star : :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */ #include <a_samp> #define TextColor "~r~" // red #define GREEN 0x21DD00FF #define RED 0xE60000FF new VehiclesName[][] = { "Landstalker", "Bravura", "Buffalo", "Linerunner", "Pereniel", "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 Truck", "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", "Nevada", "Yosemite", "Windsor", "Monster Truck", "Monster Truck", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight", "Trailer", "Kart", "Mower", "Duneride", "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" }; new vehname[128]; forward VehNameTime(playerid); forward VehNameTime2(playerid); public OnFilterScriptInit() { print("¤|------------|>FilterScript<|------------|¤"); print(" Vehicle Names Display Filterscript by Seif"); print("¤|------------|>Filterscript<|------------|¤"); return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if (newstate == PLAYER_STATE_DRIVER) { format(vehname,sizeof(vehname),"%s%s",TextColor,VehiclesName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); GameTextForPlayer(playerid,vehname,5000,1); } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/vehid",cmdtext,true) == 0) { if (IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid,RED,"-----------------------------------------"); format(vehname,128,"Name: %s",VehiclesName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); SendClientMessage(playerid,GREEN,vehname); format(vehname,128,"Model ID: %d",GetVehicleModel(GetPlayerVehicleID(playerid))); SendClientMessage(playerid,GREEN,vehname); format(vehname,128,"Vehicle ID: %d",GetPlayerVehicleID(playerid)); SendClientMessage(playerid,GREEN,vehname); SendClientMessage(playerid,RED,"-----------------------------------------"); } else SendClientMessage(playerid,RED,"You're not inside a vehicle"); return 1; } return 0; } Автор: -Seif-.
|
|
| |