// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT new gTeam[MAX_PLAYERS]; #define TEAM_GROVE 0 #define TEAM_BALLAS 1 #define TEAM_LOS AZ TECAS 2 #define TEAM_LOS SANTOS VAGOS 3 #define TEAM_DANANG BOYS 4 #define TEAM_SAN FIERRO RIFA 5 #define TEAM_BIKERS 6 #define TEAM_MAFIA 7 #define TEAM_POLICE 8 #define TEAM_TERRORIST 9 public OnFilterScriptInit() { print("\n--------------------------------------"); print(" TDT DM"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" TDT DM"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); //GROVE AddPlayerClass(105, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE AddPlayerClass(106, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE AddPlayerClass(107, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE //BALLAS AddPlayerClass(102, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS AddPlayerClass(103, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS AddPlayerClass(104, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS //LOZ AZ TECAS AddPlayerClass(114, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS AddPlayerClass(115, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS AddPlayerClass(116, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS //LOS SANTOS VAGOS AddPlayerClass(108, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS AddPlayerClass(109, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS AddPlayerClass(110, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS //DA NANG BOYS AddPlayerClass(121, 2171.9373,1416.3539,11.0625,93.4578, 27, 50, 29, 500, 31, 1000); //DA NANG BOYS AddPlayerClass(122, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS AddPlayerClass(123, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS //SAN FIERRO RIFA AddPlayerClass(173, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA AddPlayerClass(174, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA AddPlayerClass(175, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA //BIKERS AddPlayerClass(247, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS AddPlayerClass(248, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS AddPlayerClass(254, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS //MAFIA AddPlayerClass(111, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(112, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(113, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(124, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(125, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(126, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(127, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA //POLICE AddPlayerClass(165, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(166, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(280, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(281, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(283, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(285, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(286, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(287, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(288, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(163, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE AddPlayerClass(164, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE //TERRORIST AddPlayerClass(1, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(14, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(48, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(73, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(77, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(78, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(79, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(142, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(158, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(159, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(161, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(162, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerTeamFromClass(playerid, classid) { if(classid == 0) { gTeam[playerid] = TEAM_GROVE; SetPlayerColor(playerid, 0x008000FF); return 1; } else if(classid == 1) { gTeam[playerid] = TEAM_BALLAS; SetPlayerColor(playerid, 0x800080FF); return 1; } else if(classid == 2) { gTeam[playerid] = TEAM_LOS AZ TECAS; SetPlayerColor(playerid, 0x00FFFFFF); return 1; } else if(classid == 3) { gTeam[playerid] = TEAM_LOS SANTOS VAGOS; SetPlayerColor(playerid, 0xFFFF00FF); return 1; } else if(classid == 4) { gTeam[playerid] = TEAM_DANANG BOYS; SetPlayerColor(playerid, 0x808080FF); return 1; } else if(classid == 5) { gTeam[playerid] = TEAM_SAN FIERRO RIFA; SetPlayerColor(playerid, 0xFFFFFFFF); return 1; } else if(classid ==6) { gTeam[playerid] = TEAM_BIKERS; SetPlayerColor(playerid, 0x00008BFF); return 1; } else if(classid == 7) { gTeam[playerid] = TEAM_MAFIA; SetPlayerColor(playerid, 0x000000FF); return 1; } else if(classid == 8) { gTeam[playerid] = TEAM_POLICE; SetPlayerColor(playerid, 0x0000FFFF); return 1; } else if(classid ==9) { gTeam[playerid] = TEAM_TERRORIST; SetPlayerColor(playerid, 0xFF0000FF); return 1; } SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1657.5237,1207.6644,13.6719); SetPlayerFacingAngle(playerid,357.6906); SetPlayerCameraPos(playerid, -1657.4678,1211.2292,13.6781); SetPlayerCameraLookAt(playerid,-1657.5237,1207.6644,13.6719); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT new gTeam[MAX_PLAYERS]; #define TEAM_GROVE 0 #define TEAM_BALLAS 1 #define TEAM_LOS_AZTECAS 2 #define TEAM_LOS_SANTOS_VAGOS 3 #define TEAM_DANANG_BOYS 4 #define TEAM_SAN_FIERRO_RIFA 5 #define TEAM_BIKERS 6 #define TEAM_MAFIA 7 #define TEAM_POLICE 8 #define TEAM_TERRORIST 9 public OnFilterScriptInit() { print("\n--------------------------------------"); print(" TDT DM"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" TDT DM"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); //GROVE AddPlayerClass(105, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE AddPlayerClass(106, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE AddPlayerClass(107, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE //BALLAS AddPlayerClass(102, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS AddPlayerClass(103, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS AddPlayerClass(104, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS //LOZ AZ TECAS AddPlayerClass(114, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS AddPlayerClass(115, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS AddPlayerClass(116, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS //LOS SANTOS VAGOS AddPlayerClass(108, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS AddPlayerClass(109, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS AddPlayerClass(110, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS //DA NANG BOYS AddPlayerClass(121, 2171.9373,1416.3539,11.0625,93.4578, 27, 50, 29, 500, 31, 1000); //DA NANG BOYS AddPlayerClass(122, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS AddPlayerClass(123, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS //SAN FIERRO RIFA AddPlayerClass(173, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA AddPlayerClass(174, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA AddPlayerClass(175, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA //BIKERS AddPlayerClass(247, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS AddPlayerClass(248, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS AddPlayerClass(254, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS //MAFIA AddPlayerClass(111, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(112, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(113, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(124, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(125, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(126, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(127, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA //POLICE AddPlayerClass(165, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(166, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(280, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(281, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(283, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(285, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(286, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(287, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(288, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(163, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE AddPlayerClass(164, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE //TERRORIST AddPlayerClass(1, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(14, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(48, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(73, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(77, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(78, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(79, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(142, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(158, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(159, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(161, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(162, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerTeamFromClass(playerid, classid) { if(classid == 0) { gTeam[playerid] = TEAM_GROVE; SetPlayerColor(playerid, 0x008000FF); return 1; } else if(classid == 1) { gTeam[playerid] = TEAM_BALLAS; SetPlayerColor(playerid, 0x800080FF); return 1; } else if(classid == 2) { gTeam[playerid] = TEAM_LOS_AZTECAS; SetPlayerColor(playerid, 0x00FFFFFF); return 1; } else if(classid == 3) { gTeam[playerid] = TEAM_LOS_SANTOS_VAGOS; SetPlayerColor(playerid, 0xFFFF00FF); return 1; } else if(classid == 4) { gTeam[playerid] = TEAM_DANANG_BOYS; SetPlayerColor(playerid, 0x808080FF); return 1; } else if(classid == 5) { gTeam[playerid] = TEAM_SAN_FIERRO_RIFA; SetPlayerColor(playerid, 0xFFFFFFFF); return 1; } else if(classid ==6) { gTeam[playerid] = TEAM_BIKERS; SetPlayerColor(playerid, 0x00008BFF); return 1; } else if(classid == 7) { gTeam[playerid] = TEAM_MAFIA; SetPlayerColor(playerid, 0x000000FF); return 1; } else if(classid == 8) { gTeam[playerid] = TEAM_POLICE; SetPlayerColor(playerid, 0x0000FFFF); return 1; } else if(classid ==9) { gTeam[playerid] = TEAM_TERRORIST; SetPlayerColor(playerid, 0xFF0000FF); return 1; } SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1657.5237,1207.6644,13.6719); SetPlayerFacingAngle(playerid,357.6906); SetPlayerCameraPos(playerid, -1657.4678,1211.2292,13.6781); SetPlayerCameraLookAt(playerid,-1657.5237,1207.6644,13.6719); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
E:\SA\gamemodes\TDT DM.pwn(122) : error 017: undefined symbol "SetPlayerTeamFromClass" E:\SA\gamemodes\TDT DM.pwn(126) : error 017: undefined symbol "gTeam" E:\SA\gamemodes\TDT DM.pwn(126) : warning 215: expression has no effect E:\SA\gamemodes\TDT DM.pwn(126) : error 001: expected token: ";", but found "]" E:\SA\gamemodes\TDT DM.pwn(126) : error 029: invalid expression, assumed zero E:\SA\gamemodes\TDT DM.pwn(126) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
SetPlayerTeamFromClass(playerid, classid)
gTeam[playerid] = TEAM_GROVE;
#include <a_samp>
new gTeam[MAX_PLAYERS];
#define TEAM_GROVE 0
#define TEAM_BALLAS 1
#define TEAM_LOS_AZ_TECAS 2
#define TEAM_LOS_SANTOS_VAGOS 3
#define TEAM_DANANG_BOYS 4
#define TEAM_SAN_FIERRO_RIFA 5
#define TEAM_BIKERS 6
#define TEAM_MAFIA 7
#define TEAM_POLICE 8
#define TEAM_TERRORIST 9
main()
{
print("\n----------------------------------");
print(" TDT DM");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
//GROVE
AddPlayerClass(105, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE
AddPlayerClass(106, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE
AddPlayerClass(107, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE
//BALLAS
AddPlayerClass(102, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS
AddPlayerClass(103, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS
AddPlayerClass(104, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS
//LOZ AZ TECAS
AddPlayerClass(114, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS
AddPlayerClass(115, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS
AddPlayerClass(116, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS
//LOS SANTOS VAGOS
AddPlayerClass(108, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS
AddPlayerClass(109, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS
AddPlayerClass(110, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS
//DA NANG BOYS
AddPlayerClass(121, 2171.9373,1416.3539,11.0625,93.4578, 27, 50, 29, 500, 31, 1000); //DA NANG BOYS
AddPlayerClass(122, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS
AddPlayerClass(123, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS
//SAN FIERRO RIFA
AddPlayerClass(173, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA
AddPlayerClass(174, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA
AddPlayerClass(175, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA
//BIKERS
AddPlayerClass(247, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS
AddPlayerClass(248, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS
AddPlayerClass(254, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS
//MAFIA
AddPlayerClass(111, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA
AddPlayerClass(112, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA
AddPlayerClass(113, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA
AddPlayerClass(124, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA
AddPlayerClass(125, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA
AddPlayerClass(126, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA
AddPlayerClass(127, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA
//POLICE
AddPlayerClass(165, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(166, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(280, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(281, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(283, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(285, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(286, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(287, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(288, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE
AddPlayerClass(163, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE
AddPlayerClass(164, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE
//TERRORIST
AddPlayerClass(1, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(14, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(48, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(73, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(77, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(78, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(79, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(142, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(158, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(159, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(161, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
AddPlayerClass(162, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = TEAM_GROVE;
SetPlayerColor(playerid, 0x008000FF);
return 1;
}
else if(classid == 1)
{
gTeam[playerid] = TEAM_BALLAS;
SetPlayerColor(playerid, 0x800080FF);
return 1;
}
else if(classid == 2)
{
gTeam[playerid] = TEAM_LOS_AZ_TECAS;
SetPlayerColor(playerid, 0x00FFFFFF);
return 1;
}
else if(classid == 3)
{
gTeam[playerid] = TEAM_LOS_SANTOS_VAGOS;
SetPlayerColor(playerid, 0xFFFF00FF);
return 1;
}
else if(classid == 4)
{
gTeam[playerid] = TEAM_DANANG_BOYS;
SetPlayerColor(playerid, 0x808080FF);
return 1;
}
else if(classid == 5)
{
gTeam[playerid] = TEAM_SAN_FIERRO_RIFA;
SetPlayerColor(playerid, 0xFFFFFFFF);
return 1;
}
else if(classid ==6)
{
gTeam[playerid] = TEAM_BIKERS;
SetPlayerColor(playerid, 0x00008BFF);
return 1;
}
else if(classid == 7)
{
gTeam[playerid] = TEAM_MAFIA;
SetPlayerColor(playerid, 0x000000FF);
return 1;
}
else if(classid == 8)
{
gTeam[playerid] = TEAM_POLICE;
SetPlayerColor(playerid, 0x0000FFFF);
return 1;
}
else if(classid ==9)
{
gTeam[playerid] = TEAM_TERRORIST;
SetPlayerColor(playerid, 0xFF0000FF);
return 1;
}
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1657.5237,1207.6644,13.6719);
SetPlayerFacingAngle(playerid,357.6906);
SetPlayerCameraPos(playerid, -1657.4678,1211.2292,13.6781);
SetPlayerCameraLookAt(playerid,-1657.5237,1207.6644,13.6719);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT new gTeam[MAX_PLAYERS]; #define TEAM_GROVE 0 #define TEAM_BALLAS 1 #define TEAM_LOS AZ TECAS 2 #define TEAM_LOS SANTOS VAGOS 3 #define TEAM_DANANG BOYS 4 #define TEAM_SAN FIERRO RIFA 5 #define TEAM_BIKERS 6 #define TEAM_MAFIA 7 #define TEAM_POLICE 8 #define TEAM_TERRORIST 9 public OnFilterScriptInit() { print("\n--------------------------------------"); print(" TDT DM"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" TDT DM"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); //GROVE AddPlayerClass(105, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE AddPlayerClass(106, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE AddPlayerClass(107, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE //BALLAS AddPlayerClass(102, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS AddPlayerClass(103, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS AddPlayerClass(104, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS //LOZ AZ TECAS AddPlayerClass(114, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS AddPlayerClass(115, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS AddPlayerClass(116, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS //LOS SANTOS VAGOS AddPlayerClass(108, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS AddPlayerClass(109, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS AddPlayerClass(110, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS //DA NANG BOYS AddPlayerClass(121, 2171.9373,1416.3539,11.0625,93.4578, 27, 50, 29, 500, 31, 1000); //DA NANG BOYS AddPlayerClass(122, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS AddPlayerClass(123, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS //SAN FIERRO RIFA AddPlayerClass(173, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA AddPlayerClass(174, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA AddPlayerClass(175, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA //BIKERS AddPlayerClass(247, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS AddPlayerClass(248, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS AddPlayerClass(254, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS //MAFIA AddPlayerClass(111, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(112, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(113, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(124, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(125, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(126, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(127, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA //POLICE AddPlayerClass(165, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(166, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(280, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(281, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(283, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(285, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(286, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(287, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(288, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(163, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE AddPlayerClass(164, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE //TERRORIST AddPlayerClass(1, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(14, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(48, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(73, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(77, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(78, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(79, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(142, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(158, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(159, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(161, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(162, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST return 1; } public OnGameModeExit() { return 1; } public SetPlayerTeamFromClass(playerid, classid) { if(classid == 0) { gTeam[playerid] = TEAM_GROVE; SetPlayerColor(playerid, 0x008000FF); return 1; } else if(classid == 1) { gTeam[playerid] = TEAM_BALLAS; SetPlayerColor(playerid, 0x800080FF); return 1; } else if(classid == 2) { gTeam[playerid] = TEAM_LOS AZ TECAS; SetPlayerColor(playerid, 0x00FFFFFF); return 1; } else if(classid == 3) { gTeam[playerid] = TEAM_LOS SANTOS VAGOS; SetPlayerColor(playerid, 0xFFFF00FF); return 1; } else if(classid == 4) { gTeam[playerid] = TEAM_DANANG BOYS; SetPlayerColor(playerid, 0x808080FF); return 1; } else if(classid == 5) { gTeam[playerid] = TEAM_SAN FIERRO RIFA; SetPlayerColor(playerid, 0xFFFFFFFF); return 1; } else if(classid ==6) { gTeam[playerid] = TEAM_BIKERS; SetPlayerColor(playerid, 0x00008BFF); return 1; } else if(classid == 7) { gTeam[playerid] = TEAM_MAFIA; SetPlayerColor(playerid, 0x000000FF); return 1; } else if(classid == 8) { gTeam[playerid] = TEAM_POLICE; SetPlayerColor(playerid, 0x0000FFFF); return 1; } else if(classid ==9) { gTeam[playerid] = TEAM_TERRORIST; SetPlayerColor(playerid, 0xFF0000FF); return 1; } } public OnPlayerRequestClass(playerid, classid) { SetPlayerTeamFromClass(playerid, classid) SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1657.5237,1207.6644,13.6719); SetPlayerFacingAngle(playerid,357.6906); SetPlayerCameraPos(playerid, -1657.4678,1211.2292,13.6781); SetPlayerCameraLookAt(playerid,-1657.5237,1207.6644,13.6719); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT new gTeam[MAX_PLAYERS]; #define TEAM_GROVE 0 #define TEAM_BALLAS 1 #define TEAM_LOS AZ TECAS 2 #define TEAM_LOS SANTOS VAGOS 3 #define TEAM_DANANG BOYS 4 #define TEAM_SAN FIERRO RIFA 5 #define TEAM_BIKERS 6 #define TEAM_MAFIA 7 #define TEAM_POLICE 8 #define TEAM_TERRORIST 9 public OnFilterScriptInit() { print("\n--------------------------------------"); print(" TDT DM"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" TDT DM"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); //GROVE AddPlayerClass(105, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE AddPlayerClass(106, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE AddPlayerClass(107, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //GROVE //BALLAS AddPlayerClass(102, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS AddPlayerClass(103, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS AddPlayerClass(104, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 1000, 31, 1000); //BALLAS //LOZ AZ TECAS AddPlayerClass(114, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS AddPlayerClass(115, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS AddPlayerClass(116, 2171.9373,1416.3539,11.0625,93.4578, 24, 100, 26, 50, 18, 20); //LOS AZ TECAS //LOS SANTOS VAGOS AddPlayerClass(108, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS AddPlayerClass(109, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS AddPlayerClass(110, 2171.9373,1416.3539,11.0625,93.4578, 32, 1000, 22, 100, 25, 20); //LOS SANTOS VAGOS //DA NANG BOYS AddPlayerClass(121, 2171.9373,1416.3539,11.0625,93.4578, 27, 50, 29, 500, 31, 1000); //DA NANG BOYS AddPlayerClass(122, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS AddPlayerClass(123, 2171.9373,1416.3539,11.0625,93.4578, 37, 50, 29, 500, 31, 1000); //DA NANG BOYS //SAN FIERRO RIFA AddPlayerClass(173, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA AddPlayerClass(174, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA AddPlayerClass(175, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 28, 500, 35, 20); //SAN FIERRO RIFA //BIKERS AddPlayerClass(247, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS AddPlayerClass(248, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS AddPlayerClass(254, 2171.9373,1416.3539,11.0625,93.4578, 30, 1000, 26, 100, 22, 50); //BIKERS //MAFIA AddPlayerClass(111, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(112, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(113, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(124, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(125, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(126, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA AddPlayerClass(127, 2171.9373,1416.3539,11.0625,93.4578, 34, 100, 24, 100, 30, 200); //MAFIA //POLICE AddPlayerClass(165, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(166, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(280, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(281, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(283, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(284, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(285, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(286, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(287, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(288, 2171.9373,1416.3539,11.0625,93.4578, 22, 100, 29, 500, 31, 900); //POLICE AddPlayerClass(163, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE AddPlayerClass(164, 2171.9373,1416.3539,11.0625,93.4578, 23, 100, 29, 500, 34, 900); //POLICE //TERRORIST AddPlayerClass(1, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(14, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(48, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(73, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(77, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(78, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(79, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(142, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(158, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(159, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(161, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST AddPlayerClass(162, 2171.9373,1416.3539,11.0625,93.4578, 18, 100, 35, 500, 39, 40); //TERRORIST return 1; } public OnGameModeExit() { return 1; } public SetPlayerTeamFromClass(playerid, classid) { if(classid == 0) { gTeam[playerid] = TEAM_GROVE; SetPlayerColor(playerid, 0x008000FF); return 1; } else if(classid == 1) { gTeam[playerid] = TEAM_BALLAS; SetPlayerColor(playerid, 0x800080FF); return 1; } else if(classid == 2) { gTeam[playerid] = TEAM_LOS AZ TECAS; SetPlayerColor(playerid, 0x00FFFFFF); return 1; } else if(classid == 3) { gTeam[playerid] = TEAM_LOS SANTOS VAGOS; SetPlayerColor(playerid, 0xFFFF00FF); return 1; } else if(classid == 4) { gTeam[playerid] = TEAM_DANANG BOYS; SetPlayerColor(playerid, 0x808080FF); return 1; } else if(classid == 5) { gTeam[playerid] = TEAM_SAN FIERRO RIFA; SetPlayerColor(playerid, 0xFFFFFFFF); return 1; } else if(classid ==6) { gTeam[playerid] = TEAM_BIKERS; SetPlayerColor(playerid, 0x00008BFF); return 1; } else if(classid == 7) { gTeam[playerid] = TEAM_MAFIA; SetPlayerColor(playerid, 0x000000FF); return 1; } else if(classid == 8) { gTeam[playerid] = TEAM_POLICE; SetPlayerColor(playerid, 0x0000FFFF); return 1; } else if(classid ==9) { gTeam[playerid] = TEAM_TERRORIST; SetPlayerColor(playerid, 0xFF0000FF); return 1; } } public OnPlayerRequestClass(playerid, classid) { SetPlayerTeamFromClass(playerid, classid) SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1657.5237,1207.6644,13.6719); SetPlayerFacingAngle(playerid,357.6906); SetPlayerCameraPos(playerid, -1657.4678,1211.2292,13.6781); SetPlayerCameraLookAt(playerid,-1657.5237,1207.6644,13.6719); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; } EDIT: Ahh.. Someone already do it |