[GameMode] Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro
#1

Disclaimer:

I am releasing this GameMode today because I no longer have a SA-MP host and I have nothing to do with the server. Do not remove any of the credits as I worked hard on this, and it'd be a disaster if some noob comes along and removes my credits. This is my first release too. You can edit it / redistribute it / use it for your own server, but keep the credits.

What you will need:

The YSI library: https://sampforum.blast.hk/showthread.php?tid=321092.
sscanf2: https://sampforum.blast.hk/showthread.php?tid=120356.
MySQL: Provided in the .rar
Streamer: Provided in the .rar

Credits:

DanishHaq (GameMode).
BlueG (MySQL).
****** (sscanf).
****** (YSI).
Incognito (Streamer).

Download:

V1.0 (19/09/2013): http://www.solidfiles.com/d/ab6a558afb/

Player Commands:

Quote:

/help - View a list of all the commands
/login - Log in to get back your stats
/register - Register an account on the server
/changepass - Change your password
/pm - Send a private message to another player
/mystats - View your stats
/tc - Team chat with all the members of your class
/car - Spawn a car for yourself (will delete when you log out or spawn another with /car)
/airsf - Teleport to the San Fierro Airport
/chilliad - Teleport to Mount Chilliad
/bf - Teleport to the battlefield
/8track - Teleport to the 8track arena
/sf - Teleport to San Fierro
/dd - Teleport to the destruction derby
/dt - Teleport to the dirt track
/ks - Teleport to the kick start track
/vs - Teleport to the Vice Stadium
/home - Respawn back to your class' spawn position
/report - Request assistance from an admin or report someone for rule-breaking
/pay - Send your money off to someone else
/admins - View a list of all the online admins
/heal - Heal yourself
/kill - Kill yourself
/shop - Load up the shop to buy weapons, or upgrade your vehicle with NOS / hydraulics

Admin Commands:

Quote:

/alogin - Login to the administration panel, you can set the passwords on phpmyadmin under the passwords table, you can't use any admin commands unless you have done /alogin
/alogout - Same as above but logout from the panel
/asay - Make an announcement to the server in turquoise text on the chat
/a - Talk on the admin chat
/kick - Kick another player
/setadminlevel - Set someone else's admin level
/getstats - Show the stats of another player
/tempban - Temp ban someone who is online
/offtempban - Temp ban someone who is offline
/offpermban - Perm ban someone who is offline
/permban - Perm ban someone who is online
/unban - Unban a player who's banned
/veh - Spawn a vehicle, not like /car because you can spawn an unlimited amount here
/go - Teleport to another player
/get - Teleport another player to yourself
/akill - Admin kill a player
* DanishHaq slaps - Slap a player around a bit with a large trout.
/time - Change the time on the game
/weather - Change the weather on the game
/setname - Change somebody's name on the server
/aduty - Begin on your admin duties, you will get an unlimited amount of health and armour
/warn - Warn another player, at 3 warns they'll receive a kick
/givegun - Speaks for itself
/mute - Mute a player for an amount of minutes
/unmute - Unmute a player who is muted
/setskin - Set your skin
/myskin - Use your /setskin'd skin
/rveh - Respawn a specific vehicle
/rac - Respawn all the vehicles
/givemoney - Give someone an amount of money
/setmoney - Set someone's money ot a specific value
/spec - Begin watching another player
/specoff - Stop watching another player

Features:
  • Anti-spawn kill system, you can't get attacked / killed for 3 seconds and you can't use weapons in that time.
  • Kill-cam, a bit like Call of Duty, once you die, you get a camera on the player who killed you for 5 seconds and then you'll spawn.
  • Shop system, a cool shop system where you can buy nearly every sort of weapon with the money that you've earned in the game.
  • A PayDay system to make sure that everyone has a bit of money most of the time.
  • A system where you can play without being registered but you can't play without being logged in WHILST registered.
  • Auto-announcements system.
  • 69 cars ready-added to the server.
  • A bunch of nice teleport commands.
  • Easy to edit commands.
  • A class section dedicated to admins.
  • Team vehicles.
  • A killstreak system - not tested.
  • On-screen speedometer.
  • OnPlayerTakeDamage GameText's.
  • When you click on a player on TAB and you're an admin, you can see their stats.
Setting up the server:

Once you have downloaded the GameMode, you're going to want to upload the dump.sql file onto the phpmyadmin, you can call your database any name that you want. Once you've imported the .sql file, then you will need to go into the GameMode, CTRL + F and try and find "root". This will get you nearer enough to the MySQL database information that is used to connect to the database. You're going to want to set it up to something like this:

pawn Code:
#define mysql_host "YOUR HOST HERE"
#define mysql_user "YOUR MYSQL USERNAME HERE, USUALLY IS ROOT"
#define mysql_password "YOUR MYSQL PASSWORD HERE IF YOU HAVE ONE, IF NOT LEAVE BLANK"
#define mysql_database "YOUR DATABASE NAME HERE"
An example of what it'll look like is like this:

pawn Code:
#define mysql_host "localhost"
#define mysql_user "root"
#define mysql_password ""
#define mysql_database "ultimatewargrounds"
Making yourself an admin:

Once you've registered on the server, quit the game, go to phpmyadmin and then open up the "accounts" table. Where you find your name, you can easily edit the Admin level and then save it. (change it to 7 for the Community Owner admin level). The next time you log into the game, you'll be the "Community Owner" admin level.

Changing the admin passwords:

To change the /alogin passwords, you will need to go into phpmyadmin and then open the "passwords" table. From here, it's pretty simple, just change where it says "ChangeMeX" to your own admin password for that admin level.
Reply


Messages In This Thread
Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 19.09.2013, 18:29
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by streetpeace - 19.09.2013, 18:31
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Caio_Freeze - 19.09.2013, 19:11
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 19.09.2013, 19:36
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Nofear192 - 19.09.2013, 19:46
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Ninad - 20.09.2013, 00:37
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 20.09.2013, 07:05
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by iZN - 23.09.2013, 17:32
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by WopsS - 23.09.2013, 18:30
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by JeeanK2 - 24.09.2013, 05:08
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 24.09.2013, 15:50
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Surgeon - 24.09.2013, 16:34
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 25.09.2013, 07:13
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by qazwsx - 25.09.2013, 08:05
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 25.09.2013, 12:38
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by HyperZ - 27.09.2013, 16:29
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 28.09.2013, 12:07
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by McWillson - 28.09.2013, 13:20
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by WuMing - 29.09.2013, 19:23
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Team_PRO - 01.10.2013, 14:29
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by n0minal - 01.10.2013, 15:10
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by iHaze. - 01.10.2013, 15:27
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 01.10.2013, 17:37
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Xtream - 01.10.2013, 18:54
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 01.10.2013, 23:02
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by sam1929 - 16.10.2013, 21:14
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Jardell - 16.10.2013, 21:18
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 16.10.2013, 23:07
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Plix - 16.10.2013, 23:44
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Alphlax - 16.10.2013, 23:51
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 30.10.2013, 18:18
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Jardell - 30.10.2013, 23:36
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by xF4Life - 31.10.2013, 01:24
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 04.11.2013, 18:42
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DaDenz - 04.11.2013, 22:36
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by sam1929 - 25.09.2014, 22:37
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 14.10.2014, 19:32
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by sam1929 - 14.10.2014, 23:07
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by DanishHaq - 01.03.2015, 00:14
Re: Ultimate Wargrounds | Team Deathmatch | MySQL | San Fierro - by Kapersky™ - 01.03.2015, 06:26

Forum Jump:


Users browsing this thread: 2 Guest(s)