//#define FILTERSCRIPT #include #define MAX_CHATLINES 9 #define MAX_PLAYER_NAME 24 #define MAX_WORLDBOUNDS 20000.0 #define COLOUR_GREY 0xAFAFAFAA #define COLOUR_GREEN 0x33AA33AA #define COLOUR_RED 0xAA3333AA #define COLOUR_YELLOW 0xFFFF00AA #define COLOUR_WHITE 0xFFFFFFAA #define COLOUR_BLUE 0x0000BBAA #define COLOUR_LIGHTBLUE 0x33CCFFAA #define COLOUR_ORANGE 0xFF9900AA #define COLOUR_TAXIYELLOW 0xF0E68CAA #define COLOUR_POLICEBLUE 0x3F63CCAA #define SOUND_MUSIC_CLASSSELECT 1187 #define SOUND_MUSIC_RACEFINISH 1183 #define SOUND_MUSIC_RACERECORD 1097 #define SOUND_MUSIC_MISSIONCOMPLETE 1185 #define SOUND_OFF 1184 #define SOUND_BLIP1 1056 #define SOUND_BLIP2 1057 #define SOUND_EXPLOSION 1159 #define SOUND_PURCHASE 1149 #define SOUND_CHECKPOINT 1058 #if defined FILTERSCRIPT #define COLOUR_GREY 0xAFAFAFAA #define COLOUR_GREEN 0x33AA33AA #define COLOUR_RED 0xAA3333AA #define COLOUR_YELLOW 0xFFFF00AA #define COLOUR_WHITE 0xFFFFFFAA #define COLOUR_BLUE 0x0000BBAA #define COLOUR_LIGHTBLUE 0x33CCFFAA #define COLOUR_ORANGE 0xFF9900AA #define COLOUR_TAXIYELLOW 0xF0E68CAA #define COLOUR_POLICEBLUE 0x3F63CCAA new Menu:Stunts_Main new Menu:Domination new Menu:HereToStay new Menu:Blackout Script_OnFilterScriptInit() { print("\n------------------------------------"); print(" YSI Filterscript by your name here"); print("------------------------------------\n"); ycmd(kill); ycmd("mycommand"); Langs_AddLanguage("EN", "English"); Langs_AddFile("core", "YSI"); return 1; } Script_OnFilterScriptExit() { return 1; } #else main() { print("\n**********************************************"); print("* Stunt Zone Gamemode by ~Cueball~ *"); print("**********************************************\n"); } #endif Text_RegisterTag(tag_with_MY_KILL_HELP); forward ycmd_kill(playerid, params[], help); public ycmd_kill(playerid, params[], help) { if (help) Text_Send(playerid, "MY_KILL_HELP"); else SetPlayerHealth(playerid, 0.0); return 1; } Script_OnGameModeInit() { SetGameModeText("Stunt Zone"); //ramps CreateObject(1634, -1257.910400, -30.677095, 14.070761, 0, 0, 225); CreateObject(1634, -1254.279297, -34.332169, 17.681149, 19.0986, 0, 225); CreateObject(1634, -1687.860229, -162.319519, 17.367630, 19.0986, 0, 45); CreateObject(13590, -1481.086426, -194.762451, 14.449297, 0, 0, 303.75); CreateObject(12956, -1446.998169, -102.497299, 16.551683, 0, 0, 11.25); CreateObject(8375, -1231.162598, -141.228668, 14.907183, 0, 0, 45); CreateObject(1634, -1228.761475, -132.589478, 18.093746, 19.0986, 0, 225); CreateObject(1634, -1235.388550, -139.684845, 18.183538, 19.0986, 0, 225); CreateObject(1634, -1242.042725, -146.531631, 18.184559, 19.0986, 0, 225); CreateObject(1634, -1236.349731, -152.126648, 18.188875, 19.0986, 0, 45); CreateObject(1634, -1229.799072, -144.891174, 18.179810, 19.0986, 0, 45); CreateObject(1634, -1222.593506, -138.260773, 18.179611, 19.0986, 0, 45); CreateObject(1655, -1248.242065, -157.239304, 14.448549, 0, 0, 315); CreateObject(1634, -1244.665771, -153.495728, 17.645889, 19.0986, 0, 315); CreateObject(1631, -1135.538452, -208.243347, 14.012194, 0, 0, 0); CreateObject(1503, -1669.123047, -299.583649, 13.392557, 0, 0, 180); CreateObject(18569, -1466.784790, -201.542755, 14.124533, 0, 0, 337.5); CreateObject(18566, -1480.985840, -173.447525, 13.704893, 0, 0, 56.25); CreateObject(1503, -1285.633911, 24.866051, 13.342558, 0, 0, 315); CreateObject(1632, -1326.421753, -260.841400, 14.148554, 0, 0, 180); CreateObject(1632, -1326.582886, -266.143188, 17.485348, 19.0986, 6.3662, 180); CreateObject(1632, -1326.940552, -270.346832, 22.436474, 38.1971, 12.7324, 180); CreateObject(1633, -1329.656982, -366.810150, 26.312782, 12.7324, 0, 236.25); CreateObject(1655, -1263.406372, -464.836670, 14.448549, 0, 0, 0); CreateObject(1634, -1264.423218, -459.668243, 17.866108, 19.0986, 0, 0.0001); CreateObject(18365, -1142.692627, -356.409363, 21.643520, 0, 0, 315); CreateObject(1631, -1142.486938, -429.825165, 12.432774, 0, 0, 0); CreateObject(12931, -1132.225952, 64.209000, 11.763621, 0, 0, 56.2501); CreateObject(12847, -1135.086914, -81.804916, 19.831549, 0, 0, 56.25); CreateObject(13666, -1326.799683, -268.189301, 30.716879, 63.662, 12.7324, 180); CreateObject(13666, -1266.180908, -459.842682, 26.203606, 50.9295, 0, 0); CreateObject(13666, -1178.158447, -412.026306, 18.574284, 12.7324, 0, 22.5); CreateObject(13666, -1183.453125, -408.301666, 20.288456, 25.4648, 0, 22.5); CreateObject(13666, -1188.079102, -406.255890, 22.398266, 38.1971, 0, 22.5); CreateObject(13666, -1192.881226, -403.755890, 26.177006, 50.9295, 0, 22.5); CreateObject(13666, -1197.397949, -401.935913, 30.848291, 57.2958, 0, 22.5); CreateObject(13666, -1201.554077, -401.118713, 35.094948, 70.0282, 0, 22.5); CreateObject(18284, -1258.116821, 87.475067, 8.799576, 0, 0, 45); CreateObject(18284, -1254.055298, 90.455032, 8.791318, 0, 0, 45); CreateObject(5152, -1219.928467, 42.111458, 13.737517, 0, 0, 56.25); CreateObject(5309, -1394.624512, -582.483948, 17.366842, 0, 0, 11.25); CreateObject(1503, -1336.057129, -573.800110, 13.542555, 0, 0, 101.25); CreateObject(1503, -1336.614014, -571.219299, 13.542557, 0, 0, 101.25); CreateObject(1634, -1425.714600, -588.141846, 23.165260, 0, 0, 101.25); CreateObject(1634, -1464.744995, -595.184143, 14.445755, 0, 0, 281.25); CreateObject(1634, -1315.922363, -448.347687, 14.445755, 0, 0, 135.0001); CreateObject(1503, -1283.980957, 26.464113, 15.064632, 19.0986, 0, 315); CreateObject(1634, -1244.440308, 97.015213, 16.253782, 31.831, 31.831, 337.4861); CreateObject(1634, -1245.823608, 94.114616, 12.762095, 0, 0, 0.0001); CreateObject(1634, -1236.601685, 105.926620, 14.109476, 0, 0, 225.0002); CreateObject(1634, -1232.816528, 102.229355, 17.998907, 19.0986, 0, 225); CreateObject(1503, -1101.205933, 92.706100, 12.157740, 0, 0, 225); CreateObject(1503, -1099.517700, 91.225540, 13.887447, 19.0986, 0, 225); CreateObject(1503, -1083.089233, 54.373146, 17.269205, 19.0986, 0, 56.25); CreateObject(1503, -1083.726563, -0.781944, 16.165552, 0, 0, 326.2501); CreateObject(1503, -1101.610840, 20.570358, 17.089756, 19.0986, 0, 56.25); CreateObject(5126, -1149.045410, -226.491623, 28.272787, 0, 0, 135); CreateObject(5390, -1064.302856, -151.856628, 16.428848, 0, 0, 292.5); CreateObject(13725, -1259.178955, -432.753357, 23.287651, 0, 0, 0); CreateObject(10775, -1696.229736, -228.055023, 22.197584, 0, 0, 168.75); CreateObject(1634, -1649.007446, -166.669647, 14.445755, 0, 0, 135); CreateObject(1634, -1652.795288, -170.406281, 18.372299, 19.0986, 0, 135); CreateObject(13038, -1728.585205, -429.398499, 64.785828, 0, 0, 168.75); CreateObject(4823, -1829.138916, -507.733276, 121.023857, 0, 0, 303.75); CreateObject(1634, -1696.154907, -279.020508, 31.129578, 0, 0, 326.25); CreateObject(4828, -1207.422607, -368.123688, 22.752666, 0, 0, 0); CreateObject(16481, -1623.411133, -338.546539, 18.571102, 0, 0, 281.25); CreateObject(11484, -1755.297241, -468.062744, 0.970501, 0, 286.4789, 101.25); CreateObject(16080, -1292.155396, -431.061584, 10.156742, 0, 0, 270); CreateObject(16316, -1099.587280, -46.497879, 17.641584, 0, 0, 281.25); CreateObject(16318, -1218.489624, -103.488129, 15.812939, 0, 0, 45.0002); CreateObject(16395, -1266.818848, -46.110790, 23.827717, 0, 19.0986, 236.25); CreateObject(18569, -1913.265015, -462.263611, 144.338165, 0, 0, 258.75); CreateObject(18451, -1896.242798, -469.178955, 143.089890, 0, 0, 315); CreateObject(13641, -1512.715942, -20.181252, 14.860132, 0, 0, 45); CreateObject(13641, -1496.217896, -2.705696, 14.867682, 0, 0, 45); CreateObject(13641, -1477.369995, 16.392929, 14.867682, 0, 0, 45); CreateObject(13641, -1459.820435, 33.065971, 14.867682, 0, 0, 45); CreateObject(13641, -1434.100708, 60.638592, 14.867682, 0, 0, 225); CreateObject(1292, 2498.063965, -1718.136108, 18.099890, -0.981748, 0, 0); //others CreateObject(16776, -1458.021362, 58.626591, 14.899281, 0, 0, 45); //chicken west //cars CreateObject(16776, -1436.897095, 37.430824, 14.899282, 0, 0, 225); //chicken east AddStaticVehicle(522,1900.7393,2436.3835,10.3845,355.1729,3,8); // NRG souvenier AddStaticVehicle(545,2009.9912,2486.2651,10.6314,270.5654,44,96); // souvenier hustler AddStaticVehicle(545,1960.3834,2755.6235,10.6314,179.9129,44,96); // rich hustler AddStaticVehicle(575,2012.5741,2729.3718,10.4305,359.3412,31,64); // rich broadway AddStaticVehicle(434,2058.5303,2754.8679,10.7900,179.2075,2,2); // rich hotknife AddStaticVehicle(461,2044.8533,2657.4666,10.4110,180.2642,37,1); // pcj rich AddStaticVehicle(461,1563.4176,2720.9609,10.4050,0.9114,37,1); // pcj rich golf AddStaticVehicle(480,1597.6355,2834.4250,10.5946,180.6249,12,12); // comet golf AddStaticVehicle(575,1665.9275,2810.1936,10.4248,1.4140,25,96); // broadway golf AddStaticVehicle(558,1608.2261,2720.3931,10.4513,1.9489,116,1); // golf uranus AddStaticVehicle(411,1462.1483,2773.4099,10.4708,359.9268,64,1); // infernus golf AddStaticVehicle(522,-1112.4891,396.7588,13.7142,133.9870,3,8); // AddStaticVehicle(522,-1109.5520,393.6222,13.7185,139.8540,3,8); // AddStaticVehicle(522,-1105.9358,390.5348,13.7204,135.4411,3,8); // AddStaticVehicle(522,-1103.0742,388.8676,13.7183,129.4271,3,8); // AddStaticVehicle(411,-1118.3486,390.0021,13.8755,133.3549,64,1); // AddStaticVehicle(411,-1112.5887,383.4311,13.8728,135.6682,64,1); // AddStaticVehicle(411,-1107.7634,380.1320,13.8742,136.1907,64,1); // AddStaticVehicle(411,-1101.6014,373.4995,13.8755,133.6744,64,1); // AddStaticVehicle(411,-1342.6113,122.7913,13.8718,220.5079,64,1); // AddStaticVehicle(411,-1294.4623,39.8948,13.8755,130.4556,64,1); // AddStaticVehicle(522,-1152.9235,-243.7822,13.7197,35.1079,6,25); // AddStaticVehicle(522,-1159.2495,-463.8322,13.7179,32.4421,6,25); // AddStaticVehicle(522,-1244.7596,-578.5295,13.7187,92.0110,6,25); // AddStaticVehicle(524,-1081.7513,410.3708,15.0766,225.7379,61,27); // AddPlayerClass(0,-1092.3137,402.7740,14.1411,139.7960,0,0,0,0,0,0); // Stunts_Main = CreateMenu("~p~GTASTUNTING.COM Stunts ~w~Main",1,125,150,400); if(IsValidMenu(Stunts_Main)) { SetMenuColumnHeader(Stunts_Main, 0, "Choose A Stunt Video:"); AddMenuItem(Stunts_Main, 0, "Domination"); AddMenuItem(Stunts_Main, 0, "Here To Stay"); AddMenuItem(Stunts_Main, 0, "Blackout: SA"); AddMenuItem(Stunts_Main, 0, ""); AddMenuItem(Stunts_Main, 0, ""); } Domination = CreateMenu("~p~GTASTUNTING.COM Stunts ~w~Domination",1,124,150,400); if(IsValidMenu(Domination)) { SetMenuColumnHeader(Domination, 0, "Choose A Stunt To Complete:"); AddMenuItem(Domination, 0, "Avispa Country Club - By Legoman"); AddMenuItem(Domination, 0, ""); AddMenuItem(Domination, 0, ""); AddMenuItem(Domination, 0, ""); AddMenuItem(Domination, 0, ""); } HereToStay = CreateMenu("~p~GTASTUNTING.COM Stunts ~w~Here To Stay",1,124,150,400); if(IsValidMenu(HereToStay)) { SetMenuColumnHeader(HereToStay, 0, "Choose A Stunt To Complete:"); AddMenuItem(HereToStay, 0, ""); AddMenuItem(HereToStay, 0, ""); AddMenuItem(HereToStay, 0, ""); AddMenuItem(HereToStay, 0, ""); AddMenuItem(HereToStay, 0, ""); } Blackout = CreateMenu("~p~GTASTUNTING.COM Stunts ~w~Blackout",1,124,150,400); if(IsValidMenu(Blackout)) { SetMenuColumnHeader(Blackout, 0, "Choose A Stunt To Complete:") AddMenuItem(Blackout, 0, ""); AddMenuItem(Blackout, 0, ""); AddMenuItem(Blackout, 0, ""); AddMenuItem(Blackout, 0, ""); AddMenuItem(Blackout, 0, ""); } Langs_AddLanguage("EN", "English"); Langs_AddFile("core", "YSI"); ycmd(kill); ycmd("mycommand"); return 1; } Command_(mycommand) { // Your code here return 1; } Script_OnGameModeExit() { return 1; } Script_OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } Script_OnPlayerRequestSpawn(playerid) { return 1; } Script_OnPlayerConnect(playerid) { new pName[MAX_PLAYER_NAME], string[256]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "***%s has joined the server.", pName); SendClientMessageToAll(COLOUR_GREY,string); new File:ftw; if((ftw = fopen("names.txt", io_write)) ) format(string, sizeof(string), "%s\r\n", pName); fwrite(ftw, string); fclose(ftw); return 0; } Script_OnPlayerDisconnect(playerid, reason) { switch(reason) { case 0: { new pName[30], string[256]; GetPlayerName(playerid, pName, 30); format(string, 256, "***%s has left the server.(Timeout)", pName); SendClientMessageToAll(COLOUR_GREY, string); } case 1: { new pName[30], string[256]; GetPlayerName(playerid, pName, 30); format(string, 256, "***%s has left the server.(Leaving)", pName); SendClientMessageToAll(COLOUR_GREY, string); } case 2: { new pName[30], string[256]; GetPlayerName(playerid, pName, 30); format(string, 256, "***%s has left the server.(Kicked)", pName); SendClientMessageToAll(COLOUR_GREY, string); } } return 1; } Script_OnPlayerSpawn(playerid) { return 1; } Script_OnPlayerDeath(playerid, killerid, reason) { return 1; } Script_OnVehicleSpawn(vehicleid) { return 1; } Script_OnVehicleDeath(vehicleid, killerid) { return 1; } Script_OnPlayerText(playerid, text[]) { return 1; } Script_OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } Script_OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/me", true, 3)==0) { // 3 is the length of /me new str[256], pname[256]; GetPlayerName(playerid, pname, 256); format(str, 256, "%s %s", pname, cmdtext[4]); SendClientMessageToAll(0xFFFF00AA, str); return 1; } return 0; } Script_OnPlayerInfoChange(playerid) { return 1; } Script_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } Script_OnPlayerExitVehicle(playerid, vehicleid) { return 1; } Script_OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } Script_OnPlayerEnterCheckpoint(playerid) { return 1; } Script_OnPlayerLeaveCheckpoint(playerid) { return 1; } Script_OnPlayerEnterRaceCheckpoint(playerid) { return 1; } Script_OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } Script_OnRconCommand(cmd[]) { return 1; } Script_OnObjectMoved(objectid) { return 1; } Script_OnPlayerObjectMoved(playerid, objectid) { return 1; } Script_OnPlayerPickUpPickup(playerid, pickupid) { return 1; } Script_OnPlayerSelectedMenuRow(playerid, row) { return 1; } Script_OnPlayerExitedMenu(playerid) { return 1; } Script_OnVehicleMod(vehicleid, componentid) { return 1; } Script_OnVehiclePaintjob(vehicleid, paintjobid) { return 1; } Script_OnVehicleRespray(vehicleid, color1, color2) { return 1; } Script_OnPlayerLogin(playerid, yid) { return 1; } Script_OnPlayerLogout(playerid) { return 1; } Script_OnPlayerEnterCheckpointEx(playerid, cpid) { return 1; } Script_OnPlayerLeaveCheckpointEx(playerid, cpid) { return 1; } Script_OnPlayerEnterArea(playerid, areaid) { return 1; } Script_OnPlayerLeaveArea(playerid, areaid) { return 1; } Script_OnRaceEnd(raceid) { return 1; } Script_OnPlayerExitRace(playerid, raceid) { return 1; } Script_OnPlayerFinishRace(playerid, raceid, position, prize, time) { return 1; }