#include #include #include #pragma tabsize 0 // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #if defined FILTERSCRIPT public SetPlayerTeamFromClass(playerid, classid) { if (classid == 0) { gTeam[playerid] = TEAM_GROVE; } else { gTeam[playerid] = TEAM_BALLA; } } public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" PhoenixMedia TDM BY Black Phoenix (B-powell) "); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript GameTextForAll("~g~ The gamemode is being started", 3000, 6); // This is really fast. You only will see it for a sec... print (" The gamemode is being started "); SetGameModeText("Phoenix TDM "); ShowPlayerMarkers(0); AddStaticVehicle(599,3621.3215,-1586.6306,2.3230,21.8603,79,79); // DM AddStaticVehicle(599,3614.0754,-1591.3269,2.3177,23.1903,79,79); // DM AddStaticVehicle(599,3608.2954,-1593.2428,2.3186,17.8384,79,79); // DM AddStaticVehicle(599,3598.9929,-1597.5502,2.3192,16.5214,79,79); // DM AddStaticVehicle(599,3588.7295,-1601.6425,2.3248,195.7727,79,79); // UD AddStaticVehicle(427,3564.7595,-1596.4139,2.2614,293.0057,79,79); // UD AddStaticVehicle(427,3562.1426,-1589.5525,2.2614,293.5476,79,79); // UD AddStaticVehicle(427,3574.9412,-1606.5161,2.2687,201.4209,79,79); // UD AddStaticVehicle(445,3620.3264,-1609.4058,2.1581,290.6597,0,0); // UD AddStaticVehicle(445,3608.7754,-1614.0627,2.1594,291.5170,0,0); // UD AddStaticVehicle(505,3648.6416,-1596.1619,2.4232,293.5267,0,0); // UD AddStaticVehicle(505,3656.7122,-1593.1904,2.4239,292.9666,0,0); // UD AddPlayerClass(165,3632.7908,-1605.6237,3.6196,24.5541,31,100000,29,100000,0,0); // UD FBI AddPlayerClass(281,3631.4402,-1567.9264,2.1371,111.8718,24,100000,29,1000000,0,0); // UD POLICE AddPlayerClass(82,3589.9695,-1471.9882,2.0703,288.8357,25,100000,33,1000000,0,0); // UD star AddPlayerClass(112,3624.9268,-1509.4078,2.1283,112.0513,25,10000,32,100000,0,0); // UD mafia AddStaticVehicle(486,3488.3696,-1518.6436,2.2883,231.9089,1,1); // UD AddStaticVehicle(486,3507.4609,-1538.3491,2.3250,285.0316,1,1); // UD AddPlayerClass(260,3499.7148,-1529.0370,2.2735,260.9334,24,100000,32,100000,0,0); // UD worker AddStaticVehicle(496,3598.4717,-1533.7502,1.9497,290.6475,0,0); // UD AddStaticVehicle(496,3608.7019,-1528.7928,1.9152,296.1361,0,0); // UD AddStaticVehicle(496,3590.0935,-1509.9396,1.9660,109.0937,0,0); // UD AddStaticVehicle(496,3599.4236,-1506.8604,1.8793,106.9695,0,0); // UD AddStaticVehicle(457,3591.2283,-1470.3162,1.6971,199.8790,32,1); // UD AddStaticVehicle(457,3593.4956,-1476.5896,1.6968,199.8803,32,1); // ud AddPlayerClass(262,3535.8479,-1609.8080,2.9573,135.1788,5,10000,24,1000000,0,0); // UD poor man AddStaticVehicle(510,3530.8125,-1617.0013,2.3550,286.5530,28,28); // ud AddStaticVehicle(510,3526.3140,-1616.0759,2.5788,296.9483,28,28); // UD AddStaticVehicle(510,3525.0767,-1613.0685,2.5562,292.8594,28,28); // UD //Objects: CreateObject(4812, 3497.945313, -1672.835938, 4.664530, 0, 0, 258.75); CreateObject(4812, 3465.436523, -1599.973389, 4.412516, 0, 0, 149.6106); CreateObject(4862, 3416.597900, -1513.982666, 7.426970, 0, 0, 348.75); CreateObject(4812, 3482.237793, -1519.951172, 18.581108, 0, 0, 171.0966); CreateObject(4812, 3507.010986, -1445.728149, -0.856968, 0, 0, 171.0966); CreateObject(6293, 3537.362061, -1463.995239, 15.805542, 0, 0, 90); CreateObject(4822, 3543.347900, -1529.585571, 4.087543, 0, 0, 112.5001); CreateObject(5799, 3592.477783, -1522.315308, -2.076255, 0, 0, 292.4999); CreateObject(5507, 3638.208984, -1554.343872, 1.290295, 0, 0, 112.5); CreateObject(5748, 3585.884033, -1441.253296, 1.187486, 0, 0, 292.5); CreateObject(4812, 3613.888184, -1659.671387, 7.337769, 0, 0, 303.75); CreateObject(4812, 3686.000732, -1587.293823, 7.589884, 0, 0, 0); CreateObject(4812, 3645.614502, -1469.512207, 9.956886, 0, 0, 56.25); CreateObject(4812, 3680.731201, -1506.654053, 11.341215, 0, 0, 22.5); CreateObject(4887, 3645.201904, -1500.736938, 10.897579, 0, 0, 112.5001); CreateObject(5725, 3581.968750, -1475.924316, 9.771935, 0, 0, 292.5001); CreateObject(4602, 3549.227295, -1491.469238, 70.992378, 0, 0, 11.25); CreateObject(5812, 3538.471436, -1500.066650, 0.918862, 0, 0, 90); CreateObject(3776, 3563.227295, -1471.280884, 1.491275, 0, 0, 112.5); CreateObject(3596, 3506.216797, -1556.752930, 6.941006, 0, 0, 348.75); CreateObject(4165, 3613.133789, -1606.334351, 1.284071, 0, 0, 202.5); CreateObject(10381, 3642.993652, -1615.962036, 13.414927, 0, 0, 292.5); CreateObject(9931, 3607.722656, -1644.276001, 18.240715, 0, 0, 112.5); CreateObject(8040, 3596.555176, -1582.451904, 1.895144, 0, 0, 22.5002); CreateObject(3776, 3611.953613, -1542.803589, 8.699055, 0, 0, 22.5001); CreateObject(3443, 3575.440674, -1643.603271, 4.159824, 0, 0, 202.5); CreateObject(3820, 3539.064453, -1631.571533, 5.691748, 0, 0, 22.5); CreateObject(3820, 3542.893799, -1640.771851, 5.696863, 0, 0, 22.5); CreateObject(4843, 3550.769287, -1664.926025, 4.688112, 0, 359.1406, 225.705); CreateObject(4843, 3506.456787, -1620.915283, 4.855008, 0, 359.1406, 203.205); CreateObject(5812, 3517.538574, -1619.387329, 1.364296, 0, 0, 112.5); CreateObject(3172, 3558.670898, -1602.259033, 0.930383, 0, 0, 22.5); CreateObject(3172, 3546.366699, -1593.738892, 0.997588, 0, 0, 112.5); CreateObject(3172, 3539.851074, -1620.176880, 0.965128, 0, 0, 292.5); CreateObject(3776, 3577.875000, -1558.973389, 1.053648, 0, 0, 202.5001); CreateObject(3776, 3558.865234, -1566.093750, 5.134309, 0, 0, 202.5001); CreateObject(3776, 3665.747803, -1549.786255, 9.416242, 0, 0, 22.5001); CreateObject(3776, 3670.875732, -1559.336060, 8.199018, 0, 0, 22.5001); CreateObject(3707, 3516.374023, -1586.010742, 8.704706, 0, 0, 292.5); CreateObject(10808, 3499.934082, -1638.309814, 9.919321, 0, 0, 56.2501); CreateObject(9339, 3589.968506, -1639.419312, 1.991713, 0, 0, 202.5); CreateObject(974, 3459.499756, -1532.604614, 3.792423, 0, 0, 78.75); CreateObject(974, 3460.805176, -1526.059082, 3.791260, 0, 0, 78.75); CreateObject(18450, 3547.588135, -1504.096436, 143.764328, 0, 359.1406, 190.0044); CreateObject(4862, 3249.645996, -1480.695068, 7.359800, 0, 0, 348.75); CreateObject(4841, 3057.516602, -1395.919189, 3.938174, 0, 0, 258.75); CreateObject(972, 3136.380615, -1468.961548, 0.974118, 0, 0, 348.75); CreateObject(972, 3131.545410, -1456.866821, 0.974118, 0, 0, 80.3915); CreateObject(972, 3119.438721, -1461.621216, 0.974120, 0, 0, 170.3915); CreateObject(972, 2968.707764, -1317.719360, 1.145993, 0, 0, 258.75); CreateObject(972, 3460.851318, -1509.983032, 1.001976, 0, 0, 348.75); CreateObject(972, 3460.703125, -1509.901978, 7.564511, 0, 0, 348.75); CreateObject(3867, 3551.899170, -1508.689941, -0.640775, 271.4781, 0, 191.2499); CreateObject(4106, 3590.696045, -1445.828491, -0.253878, 0, 0, 28.5934); CreateObject(3458, 2967.887939, -1343.265625, -0.329359, 1.7189, 0, 13.8283); CreateObject(1633, 2939.625000, -1346.723267, 11.002222, 0, 0, 281.25); //Checkpoints: return 1; } public OnGameModeExit() { GameTextForAll("~r~ The server is being restarted", 5000, 1); // When the gamemode is being changed... print (" The server is being restarted "); return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 3647.9321,-1523.2054,11.6599); SetPlayerCameraPos(playerid, 3649.3933,-1527.0132,11.6583); SetPlayerCameraLookAt(playerid, 3646.7322,-1520.5695,11.6640); if (classid == 0) GameTextForPlayer(playerid, "~b~ CIA ~n~ ~r~Law", 5000, 6); if (classid == 1) GameTextForPlayer(playerid, "~b~ POLICE ~n~ ~r~Law", 5000, 6); if (classid == 2) GameTextForPlayer(playerid, "~y~ Famous", 5000, 6); if (classid == 3) GameTextForPlayer(playerid, "~w~ Mafia", 5000, 6); if (classid == 4) GameTextForPlayer(playerid, "~y~ Worker", 5000, 6); if (classid == 5) GameTextForPlayer(playerid, "~y~ Poor man", 5000, 6); return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerConnect(playerid) { SendClientMessageToAll(0xFFFF00AA, "A player joined the server"); SendClientMessage(playerid, 0xFFFF00AA, "New in this server? Type /help !!"); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { SendClientMessage(playerid, 0xFFFF00AA, "Make sure to read /RULES before play "); return 1; } public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); GameTextForPlayer(playerid, "~r~ You died", 5000, 4); return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { GameTextForPlayer(playerid, "~>~ Message Sent!", 5000, 3); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/help", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFF0000, "If you are new to this server type: /rules"); SendClientMessage(playerid, 0xFFF000, "Also you can see /cmds"); return 1; } if (strcmp("/rules", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFF0000, "Rules of this server:"); SendClientMessage(playerid, 0xFFF000, "- No spam - No flood - No team kill - No fool - No hack"); // You are allowed to change it :P return 1; } if (strcmp("/cmds", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFFF000, "/opengate - /closegate = Open / close the gate of the tunnel"); SendClientMessage(playerid, 0xFFF000, "/up - /down = makes the elevator go up or down"); SendClientMessage(playerid, 0xFFF000, "/lup - /ldown = makes the ladder elevator go up or down"); SendClientMessage(playerid, 0xFFF000, "/bup - /bdown = makes the bridge elevator go up or down"); SendClientMessage(playerid, 0xFFF000, "/music = Turns music ON"); SendClientMessage(playerid, 0xFFF000, "/credits = Credits of the gamemode"); return 1; } if (strcmp("/opengate", cmdtext, true, 10) == 0) { MoveObject(51, 3460.703125, -1509.901978, 7.564511, 2); return 1; } if (strcmp("/closegate", cmdtext, true, 10) == 0) { MoveObject(51, 3460.851318, -1509.983032, 1.001976, 2); return 1; } if (strcmp("/up", cmdtext, true, 10) == 0) { MoveObject(53, 3551.916260, -1508.817383, 142.237930, 10); return 1; } if (strcmp("/down", cmdtext, true, 10) == 0) { MoveObject(53, 3551.899170, -1508.689941, -0.640775, 5); return 1; } if (strcmp("/lup", cmdtext, true, 10) == 0) { MoveObject(54, 3590.968506, -1446.198975, 27.304447, 2); return 1; } if (strcmp("/ldown", cmdtext, true, 10) == 0) { MoveObject(54, 3590.696045, -1445.828491, -0.253878, 5); return 1; } if (strcmp("/bup", cmdtext, true, 10) == 0) { MoveObject(55, 2962.028320, -1342.093140, 10.943129, 2); return 1; } if (strcmp("/bdown", cmdtext, true, 10) == 0) { MoveObject(55, 2967.887939, -1343.265625, -0.329359, 2); return 1; } if (strcmp("/credits", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFF0000, "This gamemode has been created by: DarkPhoenix / BPowell"); return 1; } if (strcmp("/music", cmdtext, true, 10) == 0) { PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0); return 1; } return 0; } public OnPlayerInfoChange(playerid) { return 1; } 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 OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; }