📄 taxifr.pwn
字号:
{454},
{539}
};
new mbike[11][0] = {
{581},
{521},
{462},
{463},
{468},
{471},
{586},
{522},
{523},
{461},
{448}
};
new pbike[3][0] = {
{481},
{509},
{510}
};
new splane[6][0] = {
{593},
{512},
{513},
{460},
{464},
{465}
};
new mplane[2][0] = {
{519},
{511}
};
new lplane[2][0] = {
{553},
{592}
};
new milair[4][0] = {
{520},
{476},
{447},
{425}
};
new sheli[4][0] = {
{487},
{488},
{469},
{497}
};
new lheli[3][0] = {
{417},
{548},
{563}
};
new gPlayerClass[MAX_PLAYERS];
new tmpname[256];
new Count[MAX_PLAYERS];
new passenger[MAX_PLAYERS];
new speedo[MAX_PLAYERS];
new messaged[MAX_PLAYERS];
new aMessage[MAX_PLAYERS];
new tempid[MAX_PLAYERS];
new lockmess[V_LIMIT];
new securemess[V_LIMIT];
new carmess[999];
enum SavePlayerPosEnum
{
Float:LastX,
Float:LastY,
Float:LastZ
}
new SavePlayerPos[MAX_PLAYERS][SavePlayerPosEnum];
new Float:ta, Float:tb, Float:tc;
new PlayerInterior[MAX_PLAYERS];
new tuned;
new cseconds,cstring[256];
new Filling[MAX_PLAYERS];
new spoiler[20][0] = {
{1000},
{1001},
{1002},
{1003},
{1014},
{1015},
{1016},
{1023},
{1058},
{1060},
{1049},
{1050},
{1138},
{1139},
{1146},
{1147},
{1158},
{1162},
{1163},
{1164}
};
new nitro[3][0] = {
{1008},
{1009},
{1010}
};
new fbumper[23][0] = {
{1117},
{1152},
{1153},
{1155},
{1157},
{1160},
{1165},
{1167},
{1169},
{1170},
{1171},
{1172},
{1173},
{1174},
{1175},
{1179},
{1181},
{1182},
{1185},
{1188},
{1189},
{1192},
{1193}
};
new rbumper[22][0] = {
{1140},
{1141},
{1148},
{1149},
{1150},
{1151},
{1154},
{1156},
{1159},
{1161},
{1166},
{1168},
{1176},
{1177},
{1178},
{1180},
{1183},
{1184},
{1186},
{1187},
{1190},
{1191}
};
new exhaust[28][0] = {
{1018},
{1019},
{1020},
{1021},
{1022},
{1028},
{1029},
{1037},
{1043},
{1044},
{1045},
{1046},
{1059},
{1064},
{1065},
{1066},
{1089},
{1092},
{1104},
{1105},
{1113},
{1114},
{1126},
{1127},
{1129},
{1132},
{1135},
{1136}
};
new bventr[2][0] = {
{1042},
{1044}
};
new bventl[2][0] = {
{1043},
{1045}
};
new bscoop[4][0] = {
{1004},
{1005},
{1011},
{1012}
};
new rscoop[13][0] = {
{1006},
{1032},
{1033},
{1035},
{1038},
{1053},
{1054},
{1055},
{1061},
{1067},
{1068},
{1088},
{1091}
};
new lskirt[21][0] = {
{1007},
{1026},
{1031},
{1036},
{1039},
{1042},
{1047},
{1048},
{1056},
{1057},
{1069},
{1070},
{1090},
{1093},
{1106},
{1108},
{1118},
{1119},
{1133},
{1122},
{1134}
};
new rskirt[21][0] = {
{1017},
{1027},
{1030},
{1040},
{1041},
{1051},
{1052},
{1062},
{1063},
{1071},
{1072},
{1094},
{1095},
{1099},
{1101},
{1102},
{1107},
{1120},
{1121},
{1124},
{1137}
};
new hydraulics[1][0] = {
{1087}
};
new base[1][0] = {
{1086}
};
new rbbars[2][0] = {
{1109},
{1110}
};
new fbbars[2][0] = {
{1115},
{1116}
};
new wheels[17][0] = {
{1025},
{1073},
{1074},
{1075},
{1076},
{1077},
{1078},
{1079},
{1080},
{1081},
{1082},
{1083},
{1084},
{1085},
{1096},
{1097},
{1098}
};
new lights[2][0] = {
{1013},
{1024}
};
new Calling[MAX_PLAYERS];
new Answered[MAX_PLAYERS];
new Callerid[MAX_PLAYERS];
new Float:Pickup[23][3] = {
{2109.2126,917.5845,10.8203}, //fuelstations
{2640.1831,1103.9224,10.8203},
{611.8934,1694.7921,6.7193},
{-1327.5398,2682.9771,49.7896},
{-2413.7427,975.9317,45.0031},
{-1672.3597,414.2950,6.8866},
{-2244.1365,-2560.6294,31.6276},
{-1603.0166,-2709.3589,48.2419},
{1939.3275,-1767.6813,13.2787},
{-94.7651,-1174.8079,1.9979},
{1381.6699,462.6467,19.8540},
{657.8167,-559.6507,16.0630},
{-1478.2916,1862.8318,32.3617},
{2147.3054,2744.9377,10.5263},
{2204.9602,2480.3494,10.5278},
{1590.9493,2202.2637,10.5247},
{1561.5695,1448.6895,10.3636},
{366.4071,2535.3784,16.8363},
{1969.3317,-2303.8423,13.2547},
{-1299.7939,-26.2385,13.8556},
{-22.2549,-55.6575,1003.5469},//banks
{-23.0664,-90.0882,1003.5469},
{-33.9593,-29.0792,1003.5573}
};
forward ScoreUpdate();
forward IsPlayerNameOnline(compname[]);
forward fillcheck();
forward ParkVehicle(vehicleid);
forward resetmessage();
forward FuelDown();
forward Fill();
forward resetcount();
forward announcer();
forward CheckGas();
forward BackupInfo();
forward GetDriverID(vehicleid);
forward ModVehicle(vehicleid);
forward SaveComponent(vehicleid,componentid);
forward SavePaintjob(vehicleid,paintjobid);
forwardSaveColors(vehicleid,color1,color2);
forward PhoneCut();
forward KickTimer(playerid);
forward CallVehicleToPlayer(playerid);
forward RestartVehicle(vehicleid);
forward ctimer();
forward ResetText(playerid);
forward PayDay();
forward VHPBarUpdate();
main()
{
printf(" ");
printf(" ");
print("\n----------------------------------");
print("tAxI's RPG/Freeroam World [v0.2.7b]");
print("----------------------------------\n");
}
public OnPlayerExitedMenu(playerid)
{
TogglePlayerControllable(playerid, true);
return 1;
}
public PhoneCut()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (Calling[i] > -1 && Answered[i] == 1 && Callerid[i] == 1)
{
if (GetPlayerMoney(i) >= CALL_UNIT_COST)
{
GivePlayerMoney(i, -CALL_UNIT_COST);
}
if (GetPlayerMoney(i) < CALL_UNIT_COST)
{
SendClientMessage(i, COLOR_BRIGHTRED, "CUT OFF: You don't have enough cash to continue this call");
SendClientMessage(Calling[i], COLOR_BRIGHTRED, "CUT OFF: Your recipient's phone has been cut off due to lack of credit");
Calling[Calling[i]] = -1;
Answered[Calling[i]] = 0;
Calling[i] = -1;
Answered[i] = 0;
Callerid[i] = 0;
}
}
}
}
return 1;
}
public OnPlayerText(playerid, text[])
{
if (Calling[playerid] > -1 && Answered[playerid] == 1)
{
new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s: %s", sendername, text);
SendClientMessage(Calling[playerid], COLOR_YELLOW, string);
format(string, sizeof(string), "%s: %s", sendername, text);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "%s: %s", sendername, text);
print(string);
format(string, sizeof(string), "%s: %s", sendername, text);
print(string);
return 0;
}
return 1;
}
public PayDay()
{
SendClientMessageToAll(COLOR_LIGHTBLUE,"PAYDAY: All business earnings have been updated and all players have recieved a rebate of $10000");
for (new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
GivePlayerMoney(i,10000);
if(PlayerInfo[i][bowner] == 1) {
SendClientMessage(i,COLOR_LIGHTBLUE,"To collect you business' earnings return to your business and type '/cashbox'");
}
}
}
for (new i = 0; i < bizcount; i++) {
if(BizInfo[i][bought] == 1) {
new cbmon = BizInfo[i][cashbox], pmon = BizInfo[i][profit];
BizInfo[i][cashbox] = cbmon+pmon;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -