[GameMode] Multi Modes [MySQL]
#1

Multi Modes


This is a gm with 3 modes in it: War, TDM (Swat vs Terrorist) and Minigun DM, the admin/account system is the same as in my previous gamemode, so it includes the ban list and so on. The mode selection lobby is made w/ TextDraws, it shows aswell some information, like top players and so on.

Configuration

  MySQL Information
  • #define mysql_host - Your MySQL host, you may change the address at line 15.
  • #define mysql_user - Your user name.
  • #define mysql_database - Your database name.
  • #define mysql_pass - Your DB password.
  Mode Settings
  • #define YOUR_WEB - Pretty obvious, your website.
  • #define WAR_VERSION - War mode's version, by default its 1.0
  • #define TDM_VERSION - TDM mode's version, by default its 1.0
  • #define MDM_VERSION - Minigun DM mode's version, by default its 1.0
Features
  • TextDraw based Lobby.
  • TDM (Swat vs Terrorists) mode.
  • War mode.
  • Minigun DM mode.
  • Account/Admin/Ban system w/ MySQL.
  • Each mode is in a different virtual world.
  • Players get tags depending of their mode.
  • Shop system - TDM & War only.
  • 22 Admin commands.
  • 10 Public commands.
  • TextDraw menus.
General Commands

CommandDescription
/report
Will report somebody.
/savestats
Will save your stats.
/changemode
Will take you back to the lobby.
/rules
Will show you the rules.
/admins
Will show you the admin list.
/credits
Will show you the credits.
/stats
Will show your statistics.
Admin System

LevelName
4
Owner
3
Manager
2
Administrator
1
Moderator
LevelCommandDescription
1
/warnWill give a warning to somebody.
1
/kickWill kick somebody.
1
/specWill spectate somebody.
1
/specoffWill stop spec'ing somebody.
1
/spawnWill spawn somebody.
1
/slapWill slap somebody.
2
/banlistWill show the banlist.
2
/banWill ban somebody.
2
/unbanWill unban somebody.
2
/weapsWill show somebody's weapons.
2
/disarmWill disarm somebody.
2
/giveallcashWill give everybody cash.
3
/offbanWill ban an offline player.
3
/setlevelWill set somebody's level.
3
/setkillsWill set somebody's kills.
3
/setdeathsWill set somebody's deaths.
3
/resetcashWill reset somebody's cash.
4
/setweatherWill set the weather.
4
/settimeWill set the server time.
4
/gmxWill restart the server.
4
/setcashWill set somebody's cash.
Ban System

CommandDescription
/ban
Will ban somebody.
/unban
Will unban somebody.
/offban
Will ban an offline player.
/banlist
Will show the banlist.
http://imgur.com/a/3v5uU
http://imgur.com/a/8WEWQ
http://imgur.com/a/ZPUDy
http://imgur.com/a/nahtk
http://imgur.com/a/uR2we

• Last bans will show the last 30 bans.
• Find bans will show 30 results according to what you are looking for.
• By clicking in a ban in the list, another dialog will pop up asking if you want to unban that person.
• You can edit bans, such as the admin's name, user and reason.
• Addban feature is the same as offban, the only difference is that it is in dialogs.

Lobby

http://imgur.com/a/pndRN

• The total amount of admins including their names will be shown.
• Player count in total & per mode will be shown.
• Each mode's map name.
• Each mode's version.
• Top 10 kills.
• Server Info: Website, total modes, player count & admin count.

War Mode
http://imgur.com/a/IkEiu

TDM Mode
http://imgur.com/a/W6qza

MDM Mode
http://imgur.com/a/MbkxT

Mode Tags


Includes/Plugins

Include/PluginTopic
sscanf2
https://sampforum.blast.hk/showthread.php?tid=602923
foreach 0.4.1
https://sampforum.blast.hk/showthread.php?tid=570868
TextDraw Menu
https://sampforum.blast.hk/showthread.php?tid=620516
MySQL - R39-6
https://sampforum.blast.hk/showthread.php?tid=56564
Whirlpool
https://sampforum.blast.hk/showthread.php?tid=570945
I-ZCMD
https://sampforum.blast.hk/showthread.php?tid=576114
Download

GameModeTables
Reply
#2

Quote:
Originally Posted by TopShooter
Посмотреть сообщение
Awesome, keep it up.
Thanks.
Reply
#3

Cool - add me skype nournasser1234
Reply
#4

Nice gamemode
Reply
#5

Quote:
Originally Posted by hydewhyd
Посмотреть сообщение
Nice gamemode
Thanks, mate.

Quote:
Originally Posted by Loinal
Посмотреть сообщение
Cool - add me skype nournasser1234
No, though i appreciate your opinion.
Reply
#6

Nice Work
Reply
#7

Quote:
Originally Posted by Yaa
Посмотреть сообщение
Nice Work
Thanks.
Reply
#8

Great work.
I will use this for future scripting.
Reply
#9

Quote:
Originally Posted by SwankyPants
Посмотреть сообщение
Great work.
I will use this for future scripting.
Glad to hear that, thanks tho.
Reply
#10

Nice job man
Reply
#11

Quote:
Originally Posted by DanyTovar
Посмотреть сообщение
Nice job man
Thanks.
Reply
#12

Cool Bro nice work keep it up
Reply
#13

Looks good jelly, keep it up!
Reply
#14

Cool work, Jelly.
Reply
#15

Quote:
Originally Posted by ALiScripter
Посмотреть сообщение
Cool work, Jelly.
Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
Looks good jelly, keep it up!
Quote:
Originally Posted by RyderX
Посмотреть сообщение
Cool Bro nice work keep it up
Thanks guys.
Reply
#16

+1Star, because I can
Reply
#17

Its awesome Bro , but its giving me errors for mysql

Код:
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(155) : error 017: undefined symbol "mysql_log"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(639) : error 017: undefined symbol "mysql_format"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(639) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(639) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(640) : error 017: undefined symbol "mysql_tquery"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(643) : error 017: undefined symbol "mysql_format"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(643) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(643) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(644) : error 017: undefined symbol "mysql_tquery"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(647) : error 017: undefined symbol "mysql_format"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(647) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(647) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(648) : error 017: undefined symbol "mysql_tquery"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(659) : error 017: undefined symbol "cache_num_rows"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(661) : error 017: undefined symbol "cache_get_field_content"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(662) : error 017: undefined symbol "cache_get_field_content_int"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(682) : error 017: undefined symbol "mysql_format"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(682) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(682) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(683) : error 017: undefined symbol "mysql_tquery"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(697) : error 017: undefined symbol "mysql_format"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(697) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(697) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(698) : error 017: undefined symbol "mysql_tquery"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(723) : error 017: undefined symbol "mysql_format"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(723) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(723) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(723) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(723) : warning 202: number of arguments does not match definition
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(724) : error 017: undefined symbol "mysql_tquery"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(790) : error 017: undefined symbol "cache_get_row_count"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(792) : error 017: undefined symbol "cache_get_field_content"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(793) : error 017: undefined symbol "cache_get_field_content_int"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(795) : error 017: undefined symbol "cache_get_field_content_float"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(796) : error 017: undefined symbol "cache_get_field_content_float"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(797) : error 017: undefined symbol "cache_get_field_content_float"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(799) : error 017: undefined symbol "cache_get_field_content_float"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(800) : error 017: undefined symbol "cache_get_field_content_float"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(801) : error 017: undefined symbol "cache_get_field_content_float"
F:\amir\scripts\MultiModes\gamemodes\multimodes.pwn(828) : error 017: undefined symbol "cache_get_row_count"
Reply
#18

You must have MySQL R39-6, not MySQL R41 or versions before R39-6.
Reply
#19

Thanks bro I'll wait if there's another update
Reply
#20

nice gamemode, you can add zombie mode
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)