⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 taxifr.pwn

📁 著名网络游戏
💻 PWN
📖 第 1 页 / 共 5 页
字号:
//-------------This code was designed by tAxI aka Necrioss------------//
//-------------------email <::> cptnsausage@hotmail.com--------------------//
//---------If you are having problems please feel free to contact me-------//
//--------If u use this script in your gamemode you MUST give me credit------//

/*---Here it is ppl...tAxI's RPG/Freeroam World...still in alpha
stage but its looking very promising!!!

Ok a few things u need to know to get started with this:

1 - You must Create some folders in your scriptfiles directory - tAxI_SYS_SETUP, tAxI_SYS_SAVE and tAxI_SYS_PLAYERS

2 - you must remove all the vehicles in your gamemode and place their co-ords in a file "scriptfiles/tAxI_SYS_setup/tAxI_vehicles_setup.tAxI". You only
need to write in the co-ords etc like the following example:

on line one you would have: modelid,x,y,z,z_angle,color1,color2

3 - Businesses are not currently included but will be introduced again shortly.

and on line 2 you would do the same for your next car and so-on, and so-on........!

Thats it i think...Enjoy!!!---*/

#include <a_samp>
#include <dudb>
#include <time>
#include <file>
#include <float>
#pragma tabsize 0
#pragma dynamic 145000

#define V_FILE_LOAD "tAxI_SYS_SETUP/tAxI_vehicles_setup.tAxI"
#define B_FILE_LOAD "tAxI_SYS_SETUP/tAxI_businesses_setup.tAxI"
#define V_FILE_SAVE "tAxI_SYS_SAVE/tAxI_vehicles_perm.tAxI"
#define B_FILE_SAVE "tAxI_SYS_SAVE/tAxI_businesses_perm.tAxI"
#define P_FILE "tAxI_SYS_PLAYERS/%s.tAxI"
#define B_ICON 1272
#define B_ICON_TYPE 2
#define PD_TIMER 1800000
#define CALL_UNIT_COST 1
#define DEFAULT_OWNER "[null]"
#define V_LIMIT 700
#define B_LIMIT 250
#define GasMax 100
#define RunOutTime 30000
#define COLOR_AQUA 0x7CFC00AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x0AFF0AAA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_INDIGO 0x4B00B0AA
#define CP_STATION1   0
#define CP_STATION2   1
#define CP_STATION3   2
#define CP_STATION4   3
#define CP_STATION5   4
#define CP_STATION6   5
#define CP_STATION7   6
#define CP_STATION8   7
#define CP_STATION9   8
#define CP_STATION10  9
#define CP_STATION11  10
#define CP_STATION12  11
#define CP_STATION13  12
#define CP_STATION14  13
#define CP_STATION15  14
#define CP_STATION16  15
#define CP_LVSTATION  16
#define CP_VMSTATION  17
#define CP_LSSTATION  18
#define CP_SFSTATION  19
#define CP_BANK 		20
#define CP_BANK_2 		21
#define CP_BANK_3 		22

#define TEAM_BALLA 0
#define TEAM_GROVE 1
#define TEAM_VAGO 2
#define TEAM_AZTEC 3
#define TEAM_TRIAD 4
#define TEAM_FIRE 5
#define TEAM_MEDIC 6
#define TEAM_COP 7
#define TEAM_CIV 8
#define TEAM_ARMY 9

new Text:vehiclehpbar[12];

new Float:PlayerRandomSpawn[9][4] = {
{2031.2622,1343.2483,10.8203,270.1700},
{2017.6318,1545.4016,10.8292,269.8567},
{1704.9874,1454.4901,10.8166,266.0967},
{2140.9788,2281.4158,10.8203,267.0366},
{2294.7498,2421.5452,10.8203,181.1824},
{2179.7900,1286.4680,10.8203,270.4599},
{2176.1526,1119.2438,12.6617,63.0313},
{2027.6475,1007.7634,10.8203,271.0866},
{2390.8379,986.6993,10.8203,46.7612}
};

forward SetPlayerRandomSpawn(playerid);

enum bInfo
{
	name[256],
	owner[256],
	bought,
	cost,
	profit,
	cashbox,
 	Float:xpos,
    Float:ypos,
    Float:zpos,
}

new BizInfo[B_LIMIT][bInfo];

enum pInfo
{
	name[256],
	vowned,
	vowner,
	bowner,
	bowned,
	pass,
	pcash,
	bank,
	logged,
	admin,
	team,
	frozen,
	jailed,
	vhpb,
}
	
new PlayerInfo[MAX_PLAYERS][pInfo];

enum vInfo
{
	model,
	Float:x_spawn,
	Float:y_spawn,
	Float:z_spawn,
 	Float:za_spawn,
 	color_1,
 	color_2,
 	owner[256],
	vehiclecost,
	vused,
	bought,
	secure,
	asecure,
	buybar,
	name[256],
	mod1,
	mod2,
	mod3,
	mod4,
	mod5,
	mod6,
	mod7,
	mod8,
	mod9,
	mod10,
	mod11,
	mod12,
	mod13,
	mod14,
	mod15,
	mod16,
	mod17,
	paintjob,
 	gas,
 	modding,
};

new bizmsg[MAX_PLAYERS];
new VehicleInfo[V_LIMIT][vInfo];
new bizcount;
new vehcount;


new Menu:vehiclemain;
new Menu:playervm;
new Menu:buysell;
new Menu:secure1;
new Menu:secure2;
new Menu:templock;
new Menu:adminm;
new Menu:asecure1;
new Menu:asecure2;
new Menu:speedom;
new Menu:buyable;
new Menu:healthbar;

new VehicleName[212][0] = {
   "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", //artict1
   "Previon",
   "Coach",
   "Cabbie",
   "Stallion",
   "Rumpo",
   "RC Bandit",
   "Romero",
   "Packer",
   "Monster Truck",
   "Admiral",
   "Squalo",
   "Seasparrow",
   "Pizzaboy",
   "Tram",
   "Trailer", //artict2
   "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", //hotrina
   "Hotring Racer", //hotrinb
   "Bloodring Banger",
   "Rancher",
   "Super GT",
   "Elegant",
   "Journey",
   "Bike",
   "Mountain Bike",
   "Beagle",
   "Cropdust",
   "Stunt",
   "Tanker", //petro
   "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", //firela
   "Hustler",
   "Intruder",
   "Primo",
   "Cargobob",
   "Tampa",
   "Sunrise",
   "Merit",
   "Utility",
   "Nevada",
   "Yosemite",
   "Windsor",
   "Monster Truck", //monstera
   "Monster Truck", //monsterb
   "Uranus",
   "Jester",
   "Sultan",
   "Stratum",
   "Elegy",
   "Raindance",
   "RC Tiger",
   "Flash",
   "Tahoma",
   "Savanna",
   "Bandito",
   "Freight", //freiflat
   "Trailer", //streakc
   "Kart",
   "Mower",
   "Duneride",
   "Sweeper",
   "Broadway",
   "Tornado",
   "AT-400",
   "DFT-30",
   "Huntley",
   "Stafford",
   "BF-400",
   "Newsvan",
   "Tug",
   "Trailer", //petrotr
   "Emperor",
   "Wayfarer",
   "Euros",
   "Hotdog",
   "Club",
   "Trailer", //freibox
   "Trailer", //artict3
   "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", //bagboxa
   "Luggage Trailer", //bagboxb
   "Stair Trailer", //tugstair
   "Boxville",
   "Farm Plow", //farmtr1
   "Utility Trailer" //utiltr1
};

new	heavycar[24][0] = {
	{406},
	{444},
	{556},
	{557},
	{573},
	{601},
	{407},
	{427},
	{433},
	{434},
	{499},
	{498},
	{482},
	{431},
	{524},
	{578},
	{455},
	{403},
	{414},
	{443},
	{515},
	{428},
	{408},
	{456}
};
new	boat[11][0] = {
	{472},
	{473},
	{493},
	{595},
	{484},
	{430},
	{453},
	{452},
	{446},

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -