rendered paste body#include <a_samp>#define COLOR_GREY 0xAFAFAFAA#define COLOR_GREEN 0x33AA33AA#define COLOR_YELLOW 0xFFFF00AAnew Float:RandomSpawns[][4] ={ {-724.4068,2502.0046,282.0584,178.8919}, {-694.5940,2494.8718,282.0549,179.5186}, {-694.4985,2471.9792,278.9982,163.8517}, {-729.4271,2452.3093,279.0397,161.6583}, {-728.0261,2428.7314,279.1953,327.3898}, {-697.4846,2419.3376,279.2008,328.0165}, {-686.4645,2439.8010,279.0987,17.5236}, {-671.2247,2432.6826,279.1481,39.4338}, {-692.5183,2407.4116,282.0569,12.1734}, {-721.4327,2408.7429,282.0563,63.2472}, {-741.1788,2410.1897,282.0552,301.3594}};main(){ print(" Lost Isle DM - Created by Ramjet."); print(" Compatibility: SA-MP v0.2 or Higher.\n");}public OnGameModeInit(){ SetGameModeText("Lost Isle DM"); AddAllClass(-707.366211, 2450.564209, 282.334412, 360.000000, -1, -1, 33, 50, -1, -1); // Objects: CreateObject(8398, -680.859497, 2451.985107, 279.606995, 0, 0, 0); CreateObject(8483, -708.348816, 2503.587158, 285.724823, 0, 352.2651, 269.7591); CreateObject(8483, -708.560547, 2400.063232, 285.374908, 0, 349.6868, 94.4341); CreateObject(6293, -642.649414, 2456.796631, 295.469208, 0, 0, 329.0603); CreateObject(6293, -766.171875, 2461.621094, 294.741119, 0, 0, 162.6149); CreateObject(3524, -721.891357, 2402.273682, 283.979645, 0, 0, 171.8874); CreateObject(3524, -692.559814, 2402.973389, 284.390900, 0, 0, 171.8874); CreateObject(3524, -695.157104, 2498.256348, 283.964661, 0, 0, 5.2604); CreateObject(3524, -724.306152, 2498.991211, 283.987640, 0, 0, 5.2604); CreateObject(4811, -708.028809, 2382.715088, 291.887787, 0, 0, 241.5018); CreateObject(7247, -734.736877, 2531.420898, 253.172089, 354.8434, 355.7028, 86.0475); CreateObject(4811, -704.909241, 2520.727783, 290.483673, 0, 0, 67.9993); CreateObject(8398, -737.045837, 2451.613525, 279.609863, 0, 0, 180.4818); CreateObject(4811, -632.965149, 2500.597168, 290.667938, 0, 0, 42.2163); CreateObject(621, -683.088013, 2440.645508, 278.059631, 0, 0, 0); CreateObject(621, -694.979431, 2463.410156, 278.419708, 0, 0, 0); CreateObject(621, -732.664429, 2442.096436, 278.111969, 0, 0, 0); CreateObject(641, -723.924500, 2453.794434, 275.721008, 0, 0, 0); CreateObject(641, -689.822449, 2440.169434, 275.867493, 0, 0, 0); CreateObject(641, -679.752075, 2478.947754, 275.924927, 0, 0, 0); CreateObject(641, -719.221069, 2474.809814, 275.874939, 0, 0, 0); CreateObject(655, -698.117188, 2429.038574, 278.291077, 0, 0, 0); CreateObject(655, -725.559875, 2425.104248, 278.259216, 0, 0, 0); CreateObject(655, -725.386841, 2469.774902, 278.246765, 0, 0, 0); CreateObject(655, -697.877808, 2476.218018, 278.224518, 0, 0, 0); CreateObject(621, -737.776733, 2485.073242, 277.867493, 0, 0, 0); CreateObject(619, -708.361206, 2482.923828, 281.201691, 0, 0, 0); CreateObject(619, -672.064270, 2453.298584, 278.311523, 0, 0, 0); CreateObject(619, -732.439270, 2423.371094, 278.196594, 0, 0, 227.7508); CreateObject(745, -670.253235, 2475.704590, 278.647736, 0, 0, 0); CreateObject(745, -687.694580, 2479.156006, 278.762054, 0, 0, 0); CreateObject(745, -725.588318, 2485.964844, 278.792267, 0, 0, 0); CreateObject(745, -729.236389, 2462.975586, 278.626221, 0, 0, 0); CreateObject(745, -742.570435, 2436.854492, 278.810333, 0, 0, 0); CreateObject(745, -727.457886, 2421.394531, 278.601227, 0, 0, 0); CreateObject(745, -687.588318, 2448.038818, 278.648651, 0, 0, 0); CreateObject(750, -672.337280, 2425.242920, 278.617859, 0, 0, 0); CreateObject(750, -723.628601, 2446.368896, 278.480347, 0, 0, 0); CreateObject(750, -705.821655, 2462.435059, 280.479340, 0, 0, 0); CreateObject(647, -684.688110, 2458.488037, 279.963745, 0, 0, 0); CreateObject(647, -743.034607, 2459.461426, 280.043335, 0, 0, 0); CreateObject(647, -724.378357, 2430.131836, 279.942017, 0, 0, 0); CreateObject(647, -684.409607, 2426.191162, 279.917114, 0, 0, 0); CreateObject(647, -669.972107, 2444.101074, 279.983978, 0, 0, 0); CreateObject(647, -678.031189, 2470.950439, 280.047943, 0, 0, 0); CreateObject(679, -739.441711, 2471.108643, 278.255676, 0, 0, 0); CreateObject(679, -735.252319, 2436.624756, 278.239380, 0, 0, 0); CreateObject(679, -704.853271, 2432.847656, 279.903290, 0, 0, 0); CreateObject(679, -710.665649, 2428.693604, 280.952850, 0, 0, 0); CreateObject(679, -683.870422, 2473.365723, 278.242157, 0, 0, 0); CreateObject(702, -678.912170, 2447.744873, 278.783051, 0, 0, 0); CreateObject(702, -736.548279, 2446.462646, 278.770599, 0, 0, 0); // Pickups: AddStaticPickup(352, 2, -709.3766,2506.1084,282.0552); // Mac-10 AddStaticPickup(350, 2, -675.0344,2494.8127,282.0449); // Sawnoff AddStaticPickup(339, 2, -751.1165,2511.6829,282.0552); // Katana AddStaticPickup(351, 2, -720.3621,2466.8384,278.8192); // Combat Shotgun AddStaticPickup(359, 2, -706.1094,2399.7603,282.0552); // Rocket Launcher AddStaticPickup(342, 2, -721.3221,2422.3320,279.0476); // Grenades AddStaticPickup(356, 2, -708.9437,2446.4280,281.9866); // M4 AddStaticPickup(358, 2, -654.0292,2392.8083,309.8208); // Sniper Rifle // Gamemode Settings: SetWeather(9); ShowPlayerMarkers(0); ShowNameTags(1); return 1;}AddAllClass(Float:x,Float:y,Float:z,Float:r,w1,a1,w2,a2,w3,a3) for(new i; i < 300; i++) if(IsValidSkin(i)) AddPlayerClass(i,x,y,z,r,w1,a1,w2,a2,w3,a3);IsValidSkin(skinid){ #define MAX_BAD_SKINS 22 new badSkins[MAX_BAD_SKINS] = { 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 265, 266, 267, 268, 269, 270, 271, 272, 273, 289 }; if (skinid < 0 || skinid > 299) return false; for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins[i]) return false; } #undef MAX_BAD_SKINS return true;}public OnGameModeExit(){ print("Lost Isle DM Unloaded."); return 1;}public OnPlayerRequestClass(playerid, classid){ SetPlayerPos(playerid, -708.5266,2424.9944,282.0800); SetPlayerFacingAngle(playerid, 3.5683); SetPlayerCameraPos(playerid, -708.7674,2430.9563,282.0489); SetPlayerCameraLookAt(playerid, -708.5266,2424.9944,282.0800); ApplyAnimation(playerid, "benchpress", "gym_bp_celebrate", 4.000000, 1, 1, 1, 1, -1); return 1;}public OnPlayerRequestSpawn(playerid){ ClearAnimations(playerid); return 1;}public OnPlayerConnect(playerid){ new string[128], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "[join] %s has joined the server.", pname); SendClientMessageToAll(COLOR_GREY, string); return 1;}public OnPlayerDisconnect(playerid, reason){ new string[128], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "[part] %s has left the server.", pname); SendClientMessageToAll(COLOR_GREY, string); return 1;}public OnPlayerSpawn(playerid){ SetPlayerRandomSpawn(playerid); return 1;}SetPlayerRandomSpawn(playerid){ new rand = random(sizeof(RandomSpawns)); SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]); SetPlayerFacingAngle(playerid, RandomSpawns[rand][3]);}public OnPlayerDeath(playerid, killerid, reason){ SendDeathMessage(killerid, playerid, reason); if(killerid == INVALID_PLAYER_ID) SetPlayerScore(playerid, GetPlayerScore(playerid) - 1); // Punish Suiciders. else SetPlayerScore(killerid, GetPlayerScore(playerid) + 1); // Reward Killers. return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp("/help", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, "Lost Isle v1.0 by Ramjet"); SendClientMessage(playerid, COLOR_YELLOW, "This is a deathmatch mode, located in the beautiful Lost Isle."); SendClientMessage(playerid, COLOR_YELLOW, "Your objective is to achieve the most kills."); SendClientMessage(playerid, COLOR_YELLOW, "You will be penalised for commiting suicide, however '/kill' is enabled."); SendClientMessage(playerid, COLOR_YELLOW, "Have fun. :D"); return 1; } if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 0.0); return 1; } return 0;}