Thursday, June 23, 2011

Protect the Prime Minister v5.9

GO TO BOTTOM IF YOU DON'T WANT TO READ CHANGELOG AND IF YOU'RE LAZY
You shouldn't remove me from Credits.
Yes, I really like this GM. This Server would've been on Hosted Tab, it's just that I couldn't afford anything anymore and that I decided I need a real life. I'm not making any discouragement to Scripting, but I'm just saying, sometimes we need a life, you know? Here's the rest of the information!:

Some Facts/Updates/Info/Changelog
- I would like to make a major statement and state that I am not copying the Original Protect the President Game-Mode objectives owned currently by Tenshi. I originally had planned to have a Vice Minister Class to replace the Prime Minister when the Vice Minister dies. So stop telling me I copied his idea.
- You can find the Original Topic I posted about v4 here (Version 4 Download Link is not in the topic because it was not capable of 0.3c R2 and it had many bugs.): http://forum.sa-mp.com/showthread.php?t=244664 On the below comment under this, you will see the many updates and bugs I have fixed.
- Okay, As you have seen, you saw PTPMv4 Released then removed the link. I had realized I needed to fix many bugs for 0.3c R2. Well I have fixed almost every single bug found in the Server. That includes the Prime Minister/Vice Minister bug where you can do 'f4' -> /kill and reselect the Prime Minister/Vice Minister Class. Also on Reconnection, that bug has been refixed like the 'f4' -> /kill and reselect bug.
- Now, when the Prime Minister dies the Prime Minister is forced to class selection because people disliked the idea of moving the Minister to Police Class. Well as that reason being put into the Police Class, it seemed to also bug the Vice Class. Same with the Vice Minister Class, it moves to Class Selection if the Minister is still alive and the Vice dies because, the Vice Minister needs to take turns, right?
- Anti-Cheat System was improved by having the following contents: Anti-Jet Pack, Anti-Armour, Anti-Cash Hack, Anti-Vehicle Cheat, Anti-Speed, Anti-Flying, and Anti-Air Break hacks. Well all of these are very good systems. On Anti-Jet Pack, Vehicle, Armour, and Cash hack, it gives a direct ban. As for Anti-Speed, Flying, and Air Break Hacks, it sends a message to the Administration Team with the message "-AdminReport-" of someone detected with hacks.
- When a Server doesn't receive MySQL queries anymore, the MySQL Database turns dead. To fix this problem, I added a Call-Back called: public CrashFixer() - What it basically does is send a query to the MySQL Database for the total amount of players every 10 minutes (The Timer is on InIt.) The Message would be sent to the IRC Channel: #PTPM.admin
- All Commands were replaced with the sscanf Plugin by: Y_Less which is here for Windows/Linux: http://forum.sa-mp.com/showthread.ph...ghlight=sscanf
- RangeBan Command was added for IRC.
- Kick/Ban Commands were changed up a little bit into a much better way.
- All Vehicles/Respawns were Replaced with new ones, which took around 4 days to complete the whole San Andreas Map, because I was busy.
- Anti-TeamKill System was improved - Now if you were shooting a car with the same teammates in the car and the car exploded and your teammate was killed, a Punish Menu would come up with Options like: Take away their weapons, kill them...etc.
- Anti-TeamKill System (Again) - Added to this System was now that when you shoot someone, you cannot die if you are on the same team while if you're shooting a car and explodes, you get punished which was told in the above comment ^.
- Death Messages were fixed, so when you die, it tells you who killed you and with what weapon. Old bug was that when you did /kill like suicide it would appear like this: 65535 killed you (something something).
- OnPlayerConnect and OnPlayerDisconnect Messages appear on the Kill Bar on the right of your SA-MP Game.
- New level was added (VIP System) - It contains a VIP Chat which you can use '#' to chat in the VIP Chat.
- Also related to the VIP System, the following text '!' (Team-Chat) '@' (Admin-Chat) '#' (VIP-Chat) was added. More efficient for people to use because some people are lazy to type /tpm or /a or /vpm. You can use either ways.
- Duel System was added, was good but then I later removed because of the problems it had with the Server.
- Army Class was deleted because it was a Class no one really cared about.
- A few new admin commands like the command /class (which I really like).
- Before I posted this topic /tag was added, but then I removed because using /kick is much faster, and the thing that /tag did was ban an IP, then unban an IP, the function basically just Times you out, then you relog back in without being IP Banned which is called 'Reconnect'. (I thank Nero_3D for that.)
- Default Cash when Connected/Spawned was set at: $89241 - I set it to that and not that $999999 Money Count because don't you want to catch a hacker? So yeah. The Cash needed to get banned at is: $1000000. Which is related to the Anti-Cheat Cash section of this Thread.
- /reclass or /rc bug was fixed, when you spawned as a new class, you would have the same health/armour as last time like this (example): I did /sethealth 0 50 (I set the health of ID: 0 to 50% health) and then when he/she did /rc (c)ivilian, he classed to civilian class but with 50% of health. So that bug was fixed.
- /jail and /unjail bug was fixed, you can't kill in jail and can't /rc out of jail. If I did take more time on this Script I would've added a jail timer and added when you disconnect and reconnect, you are rejailed. (I didn't really think about it.)
- All the unneeded timers and functions were removed as for v5.9.
- World Boundaries were fixed so that you don't get into new maps.
- In Chat you now talk with 'YourName[ID]: Chat', also the mute bug was fixed on chat so that you can't chat.
- TeamChat was fixed where all teams: Prime Minister, Vice Minister, Security, Police, and Swat were able to talk to each other (before they weren't able to.)
- I forgot to tell you that I fixed up this other bug in the /rc or /reclass command. You don't spawn to the wrong area now.
- Team Balance was fixed.
- /reportbug and /report was fixed.
- Vice Minister Colour was Yellow and was replaced with a White Colour.
- New Command for Admins that I also like: /car (id), I don't really like this, bug someone suggested it even though I said 'I liked it' (sorry for getting confused) Anyways, I added this when I had my server on Hosted Tab.
- MySQL Database file was fixed up. (No more bugs.) - Most Time outs for players were fixed.
- IRC Messages were cleaned up with better colours.
- English Spelling Errors were replaced with correct spelling.
- Round Changing was bugged up, like the round didn't change and the vehicles weren't added. (This was fixed, but I need you to send me a e-mail @ naughty-kid@live.com if you still see the bug, I think some people were telling me about it.)
- The Command /sm was added (Secret Message), it's for Admins Only and when you send /sm to a player (like /pm), You can't read it in your /notify level. Because It's a hidden Command.
- /dub was added (/dub is a command that does a Player Chat Bubble above someone's head, only the person in your distance can see your messages.) (It's in Pink <3).
- For VIP Commands, I didn't really do anything but they have special commands: /nitro (nitro), /saw (chainsaw), /kata (katana), /sniper (sniper rifle).
- /freeze and /unfreeze bug fixed. (Admin knows if the player is frozen and unfrozen now.)
- KillSpree System fixed.
- New TextDraws, this is about it, below will be talking about the Server now, sorry if you had to read this whole changelog. ):

Classes/Spawns/Objectives/What the Server is
The Server is a TDM with 7 Classes which is below
- The Original Protect the PM was actually not made by me, I don't even know who made it! O.o The Original PTP was made Tratulla though and is now official being run by Tenshi. [He don't liek me ]

- There are 7 classes.. If you don't obviously know: Prime Minister (yellow), Vice Minister (white), Security (green), Swat (blue), Police (blue), Terrorist (red), Civilians (orange).
- Only if you did read above, the 'Army' Class removed due to it's unrarity. (dislike)
- I didn't feel like containing the names Psycho's and Bodyguard's.. So if you think I really copied the names of PTP, don't tell me. (I don't care.)
- The Objective for the Prime Minister is to stay alive for 15 minutes and get away from all the hazards from Terrorists and Civilians (Civilians have really no objective.)
- The Objective for the Vice Minister is to play the game as the Prime Minister would but he/she would take the place of the Prime Minister if the Prime Minister dies. If the Prime Minister survived for 15 minutes, the Round Would Change.
- The Objective for Security/Swat/Police - They are supposed to help the Prime Minister and Vice Minister and work as a team to help the Prime Minister survive for 15 minutes.
- The Objective for Terrorists - Kill the Minister/Vice/Security/Swat/Police (Obviously )
- The Objective for Civilians (My favorite Class) - Do nothing really, just keep the server in Balance by helping out or trying to kill the Minister/Vice/Security/Swat/Police/Terrorists.

Maps/Boundaries
There are four special Maps! Las Venturas (LV) Los Santos (LS) San Fierro (SF) and West Venturas (WV). You cannot escape these maps when ONE SPECIAL MAP IS LOADED, which is called World Boundaries. For each map there is a boundary that you cannot cross, if you do, you can't (so sorry lol). You can see the Pawned boundaries here since it's such a small code:
pawn Code:

[b]Las Venturas SetPlayerWorldBounds(playerid, 2977.858, 595.5717, 3117.993, 513.8265);
San Fierro SetPlayerWorldBounds(playerid, -945.9079, -2966.18, 1728.326, -1226.177);
Los Santos SetPlayerWorldBounds(playerid, 3001.214, 0, -805.7734, -2966.18);
West Venturas SetPlayerWorldBounds(playerid, 875.8406, -2230.474, 2931.147, 443.7593);


Register/Login/VIP/Admin System
The GameMode comes with a Register/Login System that has the following levels:

0 = Unregistered Player
1 = Registered Player
2 = VIP Player
3 = Moderator
4 = Administrator
5 = Head Administrator (Upper Admin)
6 = Management/Owner

The System comes with an Auto-Login System by your IP Join in the Server. It also comes with Player,VIP,Mod,and Admin Commands! To view player commands: /cmds | VIP: /vcmds | Mods and Admins: /gm /gm2 and /gm3

Anti-Cheat System
Server detects many hacks that some people don't even realize! Some features: Anti-Jet Pack, Anti-Armour, Anti-Cash Hack, Anti-Vehicle Cheat, Anti-Speed, Anti-Flying, and Anti-Air Break hacks.

Installation:
1. IRC Plugins, MySQL Plugins, and sscanf Plugins for WINDOWS are included, the plugins for Linux are not included.
2. Go to the files 'databases' and import (the dump) all the '.sql' files into your MySQL Database with PHPMyAdmin.
3. Edit the following lines: (It's already pasted in the PTPM Source File

34-36 (Bot 1-5 Information)
5194-5206 (Bot 1-5 Information Again)
40-44 (IRC Server/Channels Information)
78-82 (MySQL Settings)
3345-3349 (Bot Passwords)
5219-5223 (Bot Passwords Again)

4. If you want to set your level, you have to go ingame and do the following ingame:
Code:

/rcon login (passhere)
/rcon setlevel (yourid) (levels 1-6)

- Need help installing PM me here or e-mail me @ naughty-kid@live.com
- To locate the Admin Commands: /gm /gm2 and /gm3 - It'll be listed for someone's defined level

----------------------------------------

If you get a message saying, "You are banned from the Server."
That means you did something wrong with your MySQL Settings.
As you will read below, people have posted the same thing all over.
Also, that means you didn't portforward.

----------------------------------------

Windows/Linux Plugin Download Locations:
Mysql Plugin by G-sTyLeZzZ: http://forum.sa-mp.com/showthread.php?t=56564
IRC Plugin by Incognito: http://forum.sa-mp.com/showthread.php?t=98803
sscanf Plugin by Y_Less: http://forum.sa-mp.com/showthread.ph...ghlight=sscanf

----------------------------------------

Installation for MySQL (XAMPP)
- This is for beginners (If someone would like to do WAMP, thanks.

1. First, you'll need to get XAMPP here: (It's a 5-20 minute download depending on your internet.)
http://sourceforge.net/projects/xamp...r.exe/download

3. Once XAMPP is done installing, open XAMPP and select the following:
Apache -> Start
Mysql -> Start

3.1 After you do that you need to click Admin on MySQL of that Control Panel.
3.2 Create a database name in the homepage of PHPMyAdmin

4. Now you'll want to go to the samp-server folder and find the directory /databases/, now go to your PHPMyAdmin and set your pass and everything.

4.1 Go to the section 'Import' of the PHPMyAdmin and Import those databases, remember you need to replace the old database for 'users' once again.

5. Go to your PTPM.pwn file and edit your MySQL Admin Settings. Save and Compile here!

6. You should be all set and your Server will be running great.

6.1 Keep in mind, someone make a WAMP tutorial please!

----------------------------------------

Download Links:
SolidFiles (Recommended): http://solidfiles.com/d/56367/

2 comments: