#include // Arena Script By // [9z]John //#define FILTERSCRIPT enum PlayerSpawnInfo { FloatlayerX, FloatlayerY, FloatlayerZ, FloatlayerAngle } new Float:gRandomSpawns[][PlayerSpawnInfo] = { {-1304.0339,2541.8005,93.3047,2.9175}, {-1304.0920,2545.4050,93.6172,186.0509}, {-1302.4114,2542.5583,93.3047,191.6909}, {-1292.4335,2527.5254,90.3828,150.8122}, {-1287.9810,2516.2681,87.1488,191.3776}, {-1312.5641,2489.3171,87.1464,32.0578}, {-1320.8942,2502.9089,89.5703,20.1510}, {-1321.8890,2512.1050,92.5406,321.8704}, {-1328.6165,2512.2866,87.0469,341.6105}, {-1335.1302,2524.7043,87.0469,267.6632}, {-1321.9098,2540.7217,87.2068,308.2765}, {-1318.3521,2540.9116,87.7373,199.3559}, {-1313.6439,2526.6172,87.5560,352.8907}, {-1305.5002,2524.5625,87.4751,147.0042}, {-1299.0509,2547.1594,87.7422,322.9788}, {-1251.0885,2548.8811,105.1581,95.9783}, {-1341.5076,2567.6091,91.2216,206.8994}, {-1341.2822,2559.5603,83.4084,265.1799}, {-1317.2384,2525.1453,87.4981,46.6396}, {-1306.8650,2486.2004,87.1966,138.0379}, {-1280.6350,2493.2947,87.0175,15.7642} }; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Arena By [9z]John"); print("----------------------------------\n"); } #endif public OnGameModeInit() { SetGameModeText("[9z]Arena"); ShowNameTags(0); ShowPlayerMarkers(0); SetWorldTime(1); EnableTirePopping(1); AllowInteriorWeapons(1); SetWeather(1); SetGravity(0.008); AllowAdminTeleport(1); EnableZoneNames(1); UsePlayerPedAnims(); //Spawns AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,-1302.4114,2542.5583,93.3047); SetPlayerCameraPos(playerid,-1304.0920,2545.4050,93.6172); SetPlayerCameraLookAt(playerid,-1304.0339,2541.8005,93.3047); return 1; } public OnPlayerRequestSpawn(playerid) { ResetSpawnInfo(playerid); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); ResetSpawnInfo(playerid); return 1; } public OnPlayerSpawn(playerid) { SetPlayerArmour(playerid,100); return 1; } ResetSpawnInfo(playerid) { new rand = random(sizeof(gRandomSpawns)); SetSpawnInfo(playerid, 255, 0, gRandomSpawns[rand][PlayerX], gRandomSpawns[rand][PlayerY], gRandomSpawns[rand][PlayerZ], gRandomSpawns[rand][PlayerAngle], 30, 50000, 0, 0, 0, 0); }