local generalText = [[Protect the Prime Minister (PTPM) took its inspiration from the original SA-MP "Protect the President" (ptp.domorewithcel) mode but has been reimplemented from scratch. It is a team based mode promoting teamwork and strategy over the conventional deathmatch tactics. It was first created in the SA-MP, but later reimplemented on the more powerful Multi Theft Auto engine. The aim for the 'good guys' is for the PM to stay alive for the allotted time limit with the help of his bodyguards and the cops. While the aim of the Terrorists is to murder the PM before the end of the round. Generally rounds last for 15 minutes, but it is dependant on the map. Use /timeleft to see how long there is left or refer to the timer on top right corner of your screen. The round ends if one of the following happens: - The timer reaches 0 and the PM is still alive (good guys win). - The PM is killed (bad guys win). - In case the map includes objectives, PM has to finish those within the given time limit. Otherwise the bad guys will win.]] local teamsText = [[The game has several classes, divided into 5 teams. All classes in the same team spawn in the same "base". Within each team, the different classes have different weapons. Some classes have special "medic" powers, and usually spawn with less weaponry. Medics have a slightly paler colour so you can identify them on the radar and in the chat. There is an unarmed "Prime Minister" (PM) class(yellow). Closely guarding the Prime Minister is the "bodyguard" team(green), consisting of all the bodyguard classes. Then there are the more heavily-armed "cops" (blue). The "good guys" are allies, they fight united against the "terrorists" (pink) team. There are also "psychos" (orange) who can kill whatever they like and generally mess around. Teams can chat privately by prepending '!' to their messages. For example: "!this is team chat". Alternatively you may also use the team chat built in MTA.]] local mapsText = [[There are various maps in the PTPM mode each with different locations and features, requiring tactics to be varied depending on which map is being played. Users can vote for the next desired map at the end of the round using MTA's votemanager. The special version of the votemanager also supports number past 9 to be voted. You can vote for maps with higher number than 9 by first typing the first number and then the latter one. For example, pressing 1 and then 0 will vote for map number 10, in case the time period between the presses was small enough.]] local tasksText = [[Some of the maps include a series of tasks which PM can alternatively complete to gain different special abilities. These include ability to drive any vehicle on the map, decrease the health amount of the terrorists on spawn to half, enabling the hightened security around the safehouse area and much more. Once the PM gets close to one of these tasks placed around the map, a red blip along with a checkpoint will appear on the radar. These can be seen by both the good and the bad guys. Upon entering the task area, a textdraw describing the task mission and time left to complete it will appear on players' screen. Task times will stack, meaning that the timer will not be reset once PM leaves the task area. Once the timer reaches zero, PM will gain the special ability described by the the task description.]] local objectivesText = [[Certain maps require PM to complete objectives. These are represented by a red blip on the radar. A message describing the objective will be regularly displayed on the screen. Goal of the PM in these maps is to complete the objectives. If the round timer reaches zero when the PM hasn't completed all the objectives, the bad guys win. These maps mostly have longer time limit than the regular maps making it easier for the Prime Minister to have time to complete them all.]] local miscText = [[To view all available gamemode commands, use command /cmds. You can view the current map boundaries by viewing the F11 map. Gaming area is seperated by a red line. You can enable/disable the (gray) vehicle blips on the radar by pressing F2. The PM's health recharges 1% every 5 seconds. Medics' health also recharges, but faster (only on specific maps). Medics can transfer some of their health to other players using /heal.]] local contactText = [[If you want to contact us about anything try one of the following: Website: http://sparksptpm.co.uk/ IRC: connect to irc.gtanet.com on port 6667 and join the channel #ptpm]] local function createHelpTab () helpTab = exports.helpmanager:addHelpTab( getThisResource(), true ) helpGridList = guiCreateGridList ( 0.03, 0.05, 0.20, 0.9, true, helpTab ) addEventHandler ( "onClientGUIClick", helpGridList, chooseHelp ) column = guiGridListAddColumn ( helpGridList, "Contents: ", 0.85 ) guiGridListSetSortingEnabled ( helpGridList, false ) local general = guiGridListAddRow ( helpGridList ) local teams = guiGridListAddRow ( helpGridList ) local maps = guiGridListAddRow ( helpGridList ) local tasks = guiGridListAddRow ( helpGridList ) local objectives = guiGridListAddRow ( helpGridList ) local misc = guiGridListAddRow ( helpGridList ) local contact = guiGridListAddRow ( helpGridList ) guiGridListSetItemText ( helpGridList, general, column, "General", false, false ) guiGridListSetItemText ( helpGridList, teams, column, "Teams", false, false ) guiGridListSetItemText ( helpGridList, maps, column, "Maps", false, false ) guiGridListSetItemText ( helpGridList, tasks, column, "Tasks", false, false ) guiGridListSetItemText ( helpGridList, objectives, column, "Objectives", false, false ) guiGridListSetItemText ( helpGridList, misc, column, "Misc", false, false ) guiGridListSetItemText ( helpGridList, contact, column, "Contact", false, false ) labelTopic = guiCreateLabel ( 0.25, 0.05, 0.7, 0.3, "Protect the Prime Minister", true, helpTab ) guiSetFont ( labelTopic, "sa-header" ) guiLabelSetColor( labelTopic, 80, 176, 80, 255 ) memoTextField = guiCreateMemo ( 0.25, 0.2, 0.7, 0.75, "Welcome to the official Protect the Prime Minister server! Please select one the main topics on the left to continue.", true, helpTab ) guiMemoSetReadOnly ( memoTextField, true ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(), createHelpTab ) function chooseHelp () local choosenHelp = guiGridListGetItemText ( helpGridList, guiGridListGetSelectedItem ( helpGridList ) ) if choosenHelp ~= "" then if choosenHelp == "General" then guiSetText ( memoTextField, generalText ) elseif choosenHelp == "Teams" then guiSetText ( memoTextField, teamsText ) elseif choosenHelp == "Maps" then guiSetText ( memoTextField, mapsText ) elseif choosenHelp == "Tasks" then guiSetText ( memoTextField, tasksText ) elseif choosenHelp == "Objectives" then guiSetText ( memoTextField, objectivesText ) elseif choosenHelp == "Misc" then guiSetText ( memoTextField, miscText ) elseif choosenHelp == "Contact" then guiSetText ( memoTextField, contactText ) end guiSetText ( labelTopic, choosenHelp ) else guiSetText ( memoTextField, "Welcome to the official Protect the Prime Minister server! Please select one the main topics on the left to continue." ) guiSetText ( labelTopic, "Protect the Prime Minister" ) end end