#include #include // -- Colour's -- // #define COLOR_RED 0xFF0000FF #define COLOR_YELLOW 0xFFFF00AA #define COLOR_GREEN 0x33FF33AA #define COLOR_GREY 0xAFAFAFAA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_BLUE 0x0000BBAA #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_ORANGE 0xFF9900AA #define COLOR_BLACK 0x000000AA #define COLOR_TRANS 0xFFFFFF00 #define COLOR_PURPLE 0xC2A2DAAA #define COLOR_CYAN 0x00FFFFAA // ---- // // -- Various Things -- // forward Noises(playerid); forward Noises2(playerid); new cellphone; new exithint; new ramav[MAX_PLAYERS]; new copenter; new end; forward GMX(playerid); // ---- // //------------------------------------------------------------------------------ main() { print("\n---------------------------------------------"); print("//\\//\\//\\Interactive Story Gamemode\\//\\//\\//"); print("- by [DRiFT]GTA86700"); print("---------------------------------------------\n"); } public OnGameModeInit() { SetGameModeText("LS_TSOL"); SetPDistance(5); ShowPlayerMarkers(0); AllowInteriorWeapons(1); EnableStuntBonusForAll(0); EnableTirePopping(1); DisableInteriorEnterExits(); SetWeather(19); SetWorldTime(0); AddPlayerClass(2,2230.5186,-1183.4012,1030.5249,285.6667,0,0,0,0,0,0); // macer AddStaticVehicle(481,2224.0867,-1135.2201,27.9514,179.2430,180,180); // BMX Outside AddStaticVehicle(481,2240.4397,-1149.1843,26.7043,63.7354,180,180); // BMX Outside AddStaticVehicle(481,2215.2764,-1164.1973,28.2694,144.9896,180,180); // BMX Outside AddStaticVehicle(481,2227.3298,-1156.2333,28.5990,297.6456,180,180); // BMX Outside return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,2329.9722,1442.7406,42.8203); SetPlayerCameraPos(playerid,2332.4680,1436.1307,42.8203); SetPlayerCameraLookAt(playerid,2328.1309,1446.8931,42.8203); return 1; } public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); GivePlayerMoney(killerid,1000); ResetPlayerMoney(playerid); SetPlayerScore(killerid,GetPlayerScore(killerid) + 10 ); return 1; } public OnPlayerDisconnect(playerid) { ramav[playerid] = 0; return 1; } public OnPlayerConnect(playerid) { TogglePlayerClock(playerid, 1); return 1; } public OnPlayerSpawn(playerid) { SetTimer("Noises",10000,false); cellphone = CreatePickup(2966,2,2248.1772,-1194.5608,1030.4219); exithint = CreatePickup(1239,3,2215.0071,-1150.4498,1025.7969); copenter = CreatePickup(1318,3,1554.4529,-1675.6399,16.1953); end = CreatePickup(3092,3,215.1928,74.9788,1005.0391); SetPlayerInterior(playerid,15); ResetPlayerWeapons(playerid); SetPlayerHealth(playerid,20); SetPlayerColor(playerid, COLOR_WHITE); return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == cellphone) { SendClientMessage(playerid, COLOR_WHITE, "Looks like somebody lost their cellphone..."); } else if(pickupid == exithint) { SendClientMessage(playerid, COLOR_WHITE, "The door is locked, try to /ram it and see what happens..."); ramav[playerid] = 1; } else if(pickupid == copenter) { SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,246.7289,64.8702,1003.6406); SendClientMessage(playerid, COLOR_WHITE, "Looks empty to me. Have a quick look around..."); } else if(pickupid == end) { SendClientMessage(playerid, COLOR_RED, "[ERROR]: Cannot locate heart pump"); SendClientMessage(playerid, COLOR_RED, "[ERROR]: Scanning.."); SendClientMessage(playerid, COLOR_RED, "[ERROR]: Scanning.."); SendClientMessage(playerid, COLOR_RED, "[ERROR]: Scanning.."); SendClientMessage(playerid, COLOR_RED, "[ERROR]: Scanning.."); SendClientMessage(playerid, COLOR_RED, "[ERROR]: DwwkddjawdWDJjdJwdk"); SendClientMessage(playerid, COLOR_RED, "[ERROR]: LIAF OUY"); SendClientMessage(playerid, COLOR_RED, "[ERROR]: !WON XMG GNIYALP ROF SKNAHT"); SetPlayerHealth(playerid, 0); SetTimer("GMX",3000,0); } return 1; } public OnPlayerCommandText(playerid,cmdtext[]) { if(strcmp(cmdtext, "/ram", true) == 0) { if (ramav[playerid] == 1) { ramav[playerid] = 0; SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,2230.7878,-1159.7753,25.8241); SendClientMessage(playerid, COLOR_WHITE, "Nice. I suggest you go to the Los Santos Police Department to see what has happened..."); new PlayerName[30]; GetPlayerName(playerid, PlayerName, 30); printf("[RAM] %s used /ram on the front door", PlayerName); } else if (ramav[playerid] == 0) { SendClientMessage(playerid, COLOR_WHITE, "There is nothing to ram..."); } return 1; } if(strcmp(cmdtext, "/help", true) == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "[GAMEMODE HELP]"); SendClientMessage(playerid, COLOR_GREEN, "''You wake up in a room, all alone, everything is quiet, nobody there to tell you what's wrong.''"); SendClientMessage(playerid, COLOR_GREEN, "Thanks for choosing to play on GTA86700's Interactive Story Gamemode!"); SendClientMessage(playerid, COLOR_GREEN, "Once you wake up in the hotel pissed from last night, you must head downstairs and try to exit the"); SendClientMessage(playerid, COLOR_GREEN, "Motel. But you find there are alot of strings needing pulling to find out what is going on."); SendClientMessage(playerid, COLOR_GREEN, "Just stick to the story, don't deathmatch, freeroam etc."); return 1; } if(strcmp(cmdtext, "/commands", true) == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "[GAMEMODE COMMANDS]"); SendClientMessage(playerid, COLOR_GREEN, "/ram [For when you get to the front door]"); return 1; } if(strcmp(cmdtext, "/credits", true) == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "[GAMEMODE CREDITS]"); SendClientMessage(playerid, COLOR_GREEN, "Gamemode Creator: [DRiFT]GTA86700"); SendClientMessage(playerid, COLOR_GREEN, "Contact: grandtheftauto86700@hotmail.co.uk"); return 1; } return 0; } public Noises(playerid) { PlayerPlaySound(playerid,1163,0.0,0.0,0.0); SetTimer("Noises2",10000,false); return 1; } public Noises2(playerid) { PlayerPlaySound(playerid,1131,0.0,0.0,0.0); return 1; } public GMX(playerid) { SendRconCommand("gmx"); new str[256], pname[256]; GetPlayerName(playerid, pname, 256); format(str, 256, "[WIN]: %s has won the Interactive story gamemode by completing the instructions!", pname); SendClientMessageToAll(COLOR_YELLOW, str); return 1; }