SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 31/05/2016, 01:04 AM   #1
TwinkiDaBoss
Gangsta
 
Join Date: Jul 2014
Posts: 822
Reputation: 51
Default Simple Sumo (SQL, Y_Commands)

NOTE: THIS GAMEMODE IS MADE FOR ADVANCED SCRIPTERS
ALSO READ SQL Structure IF YOU WANT TO RUN THIS GAMEMODE! I havent set up an actual automatic table creation, I will add that tomorrow or in a day or two just to add more stuff in
I am strongly working on code optimization for the second patch. I wanted a working code for the first release I didn't worry too much about optimization



Sumo Server
About me

Hello. I am Twinki. I am a developer at Valhalla Gaming (www.valhallagaming.net) . Due to lack of interest in community we have focused on other things and kinda dropped SA:MP off from our list. Well community-wise we did, personally no. I have decided to create a gamemode that you can’t really find on SA:MP forums or anywhere. It has some sexy features that you wont see on too many servers.
Regarding myself, I am 23 years old Russian, studying Web Development. I might lack some skills as it comes to SA:MP scripting but Im not seeking for perfection, Im seeking for functional code that you will enjoy!


Gamemode Basic Informations
There are many features that you can find on our Sumo server. Lets list some basics so you understand what’s this sumo server about
  • Players will be spawned in a random vehicle on a player picked map (or random generated map, depends) and they will fight with other players to the victory!
  • Person that survives for 240 seconds with 1 vehicle (vehicle that they are currently in) will be rewarded with 20 Sumo Coins.
  • All players besides will get 5 Sumo Coins per game, not depending on what place they are or how many vehicles they have changed

There are serverals ways to die in this game. Lets list some of them
  • Falling off the map
  • Exploding
  • Exiting a vehicle
  • Knocked By Enviroment (unkown deaths aka deaths not detected by the script)

There are several features you can spend coins on
Spend coins to vote on map changes
Spend coins to purchase VIP features & VIP levels


Gamemode Notes
Many people will see as usage of OPU (OnPlayerUpdate) horrible and will criticize this. There are few reasons why I have used OPU. Yes I know there are work arounds to avoid OPU but this is extremly small usage of OPU and yes it is optimized (will be even more in the future).
  • OPU is perfect as it wont work if player is alt-tabbed players. The server wont update for the player, meaning their score wont go up
  • If the player is AFK (not moving + not chatting) the server wont update for them, OPU wont be called
  • Gamemode uses Y_Commands therefore you can type /cmd [command_name] to view some command informations.


Gamemode Documentation (for developers)

Some of the documentation can be found here. I havent updated it entirely. Lots of stuff missing.
https://docs.******.com/spreadsheets...it?usp=sharing


Gamemode Specials
These are some VIP features you can buy with VIP coins or NORMAL COINS
  • Purchase VIP levels. Each level will be time limited to certain time periods. They will be added to your account and automaticly removed after 24 hours. Those 24 hours are based on timestamps therefore you werent online? It will still go on
  • Purchase VIP commands. You can purchase commands invidualy and build your own permament pack for X coins. The price will be based on 24 months of VIP. Meaning lets say you want to buy permament VIP 1, it will cost VIP 1 x 24 months when purchasing with coins.
  • More information about the command prices will be posted soon
  • Ability to rate the server and the rating will be calculated. Players that have more than 2hours played will be able to write small server review in game. Later you can use that informations to print out on the server to see current server rating. For example 6x rating Star 1 and 1x Star 2 would give us 1.12 server rating (1.00 to 5.00 rating).


Gifts
There are many types of gifts that spawn every 1 minute only on SUMO maps. NOT on race maps. There are positive and negative gains from these gifts so be careful!



Gamemode Logging system

I am using my own advanced logging system (threaded SQL querries) I have created. It logs basically everything I want. I tend to avoid logging useless thing to avoid huge ass log and truncating tables because of it. Some features of this system
  • Ability to view certain logs directly from in game. For example /getchatlogs PLAYER_NAME amountOfLines will show you amount of messages you want to see from the player that he typed in the global chat. Example: /getlogs Twinki 10 will show you 10 last messages that Twinki sent in the global chat
  • Same system goes for admins, admin commands etc. etc.


Gamemode VIP Features
VIP 1 [1 Month] OR 24h with /buyvip
  • /heal (cooldown 300 seconds) it will heal your vehicle to full health using RepairVehicle
  • /flip (cooldown 300 seconds) it will flip your vehicle back on its wheels
  • /dc donator chat feature. Ability to chat with other VIP members
  • VIP tag in game. You will have your own tag in game

VIP 2 [1 Month] OR 24h with /buyvip
  • /heal - Reduced cooldown from 300 to 180 seconds
  • /flip - Reduced cooldown from 300 to 180 seconds
  • /dc donator chat feature. Ability to chat with other VIP members
  • VIP tag in game. You will have your own tag in game
  • /nos Adds 3x nitro to your vehicle
  • /setcolor sets player color to desired HexDecimal combination

VIP 3 [1 Month] OR 24h with /buyvip
  • /heal - reduced to 90 seconds
  • /flip - reduced to 90 seconds
  • /dc donator chat feature. Ability to chat with other VIP members
  • VIP tag in game. You will have your own tag in game
  • /nos Adds 10x nitro to your vehicle
  • /nickname - ability to customize your tag name entirely.
  • /setcolor sets player color to desired HexDecimal combination


Future additions (currently working on! NOT implemented!!!)
There will be done PHP scripts that will come with the gamemode that you can use with your website.
  • UCP
  • Log checker
  • Admin control panel



SQL Structure [You must add this to start your gamemode!]
You can find the entire SQL structure here
v.1.1 http://pastebin.com/pvns7qJB
v.1.0http://pastebin.com/nupfAgVg



Credits
There are number of people I owe thanks to.
  • Alcatrik for teaching me how to code in the first place
  • Kye and the rest of the people who worked on SA:MP
  • Y_Less for Y_Commands & Whirlpool & Sscanf
  • Incognito for streamer
  • BlueG for SQL
  • Wyu for nativechecker

And of course the team I wouldn't be able to this without that constantly helped me out code wise, ideas and much more!
  • OktoKT
  • Mattaffix
  • _oMa37
  • Onfroi
There might be someone I didn't bring up in this thread. Their name is credited in the script.


Minigames
There are 2 races in the game, you will sometimes get it. Its just to relax from the normal sumo!


Download
v.1.1 http://www.mediafire.com/download/7w.../FunServer.rar
v.1.0 Original Release: http://www.filedropper.com/funserver_1


Screenshots













Wanna host this?
If you want to host this gamemode, I am more than willing to set it up for you and add any custom feature to your likings. I am NOT asking for anything in return. I am also willing to repair any sort of bugs you find and such.


UPDATES

v.1.1
Resolved some bugs
  • VIP level calculation in time - it will be calculated correctly now
  • Private message logging
  • Playertime for not logged in players wont add up anymore
  • Some misc stuff I could find that were bugged
  • Optimized some of the code for better usage

New stuff
  • Added channel system for in game chat. You can now create new channels and let your friends join them too to chat with them. Channel start at 1 and end at 999. Commands; /c, /join, /leave
  • Added new cooldown system that will display cooldown on your consumables (look at screenshots)
  • Added new death system. It will no longer spam the main chat about deaths
  • Added setvip that supports time system. You can set someones VIP time to X days etc.
  • Added /tune to modify your vehicle. You can for example purchase vehicle color 255 and it will always paint any of your cars you spawn in to 255. RIMS COMING IN NEXT PATCH!


screenshots





Last edited by TwinkiDaBoss; 02/06/2016 at 04:10 PM.
TwinkiDaBoss is offline   Reply With Quote
Old 31/05/2016, 01:25 AM   #2
iShawn
Big Clucker
 
iShawn's Avatar
 
Join Date: Mar 2014
Posts: 54
Reputation: 1
Default Re: Simple Sumo (SQL, Y_Commands)

Nice GameMode, congrats.
iShawn is offline   Reply With Quote
Old 31/05/2016, 02:15 AM   #3
Naresh
Huge Clucker
 
Naresh's Avatar
 
Join Date: May 2014
Location: India,Tamil nadu, Chennai
Posts: 484
Reputation: 27
Default Re: Simple Sumo (SQL, Y_Commands)

Nice Gamemode maybe ill use it
+Rep for the nice work
__________________
Thanks to Frag.gs and ev0lution For Hosting my server!
Thanks to All Who have helped me!
Naresh is offline   Reply With Quote
Old 31/05/2016, 02:50 AM   #4
Amunra
Gangsta
 
Amunra's Avatar
 
Join Date: Nov 2015
Location: Indonesian
Posts: 526
Reputation: 12
Default Re: Simple Sumo (SQL, Y_Commands)

Nice One .. Very Unique
__________________
Legendary Criminals


Amunra is offline   Reply With Quote
Old 31/05/2016, 06:52 AM   #5
Ritzy
High-roller
 
Ritzy's Avatar
 
Join Date: Jun 2014
Posts: 1,532
Reputation: 135
Default Re: Simple Sumo (SQL, Y_Commands)

Nice
__________________
Los Santos Has Fallen
Ritzy is offline   Reply With Quote
Old 31/05/2016, 09:05 AM   #6
oktokt1
Big Clucker
 
oktokt1's Avatar
 
Join Date: Jan 2016
Location: Egypt, Cairo
Posts: 160
Reputation: 14
Default Re: Simple Sumo (SQL, Y_Commands)

We did great work. Nice
__________________

Mapping.
--------------------
Learning Scripting.
Helping Newbies Mappers.
oktokt1 is offline   Reply With Quote
Old 31/05/2016, 11:27 AM   #7
darkdevil
Little Clucker
 
darkdevil's Avatar
 
Join Date: Jan 2016
Location: India!
Posts: 43
Reputation: 0
Default Re: Simple Sumo (SQL, Y_Commands)

wooow awesome!!
__________________
cheapest Premium SAMP Server

https://www.elites-host.com -- click me if you have heart
darkdevil is offline   Reply With Quote
Old 31/05/2016, 11:33 AM   #8
oMa37
High-roller
 
oMa37's Avatar
 
Join Date: Feb 2016
Posts: 1,032
Reputation: 152
Default Re: Simple Sumo (SQL, Y_Commands)

Good job.
btw my name is _oMa37 lol
oMa37 is offline   Reply With Quote
Old 31/05/2016, 11:43 AM   #9
Infinity
High-roller
 
Infinity's Avatar
 
Join Date: Jul 2009
Posts: 1,545
Reputation: 972
Default Re: Simple Sumo (SQL, Y_Commands)

Quote:
Originally Posted by TwinkiDaBoss View Post
[B][COLOR="Red"]
Virus OMFG?
Some people are having problems that chrome is blocking this file as virus.
Please refer to this link to check if it is (and of course it is not). I am NOT sure why is this happening. Could be megaupload or something... Please let me know if I can change something so this dissapears. None of my anti malwares detected any problems with it...
https://www.virustotal.com/sr/file/a...is/1464653700/
This is because you added the server executables. As you're not allowed to do so anyway, please remove these from the download.
__________________

I apologize for the stupidity of my fellow members

Quote:
Originally Posted by !damo!spiderman View Post
Stand for something that's going to help the world rather than fill it with more hate. Give someone a hug, tell someone you care... Do something, do anything but do it with love not hate.
Infinity is offline   Reply With Quote
Old 31/05/2016, 12:45 PM   #10
Touati
Big Clucker
 
Touati's Avatar
 
Join Date: Dec 2015
Posts: 100
Reputation: 16
Default Re: Simple Sumo (SQL, Y_Commands)

Good work ..
__________________
*Scripting be like...
Touati is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumo []Allex[] Română/Romanian 6 24/11/2013 06:08 PM
Sumo? Squirrel Scripting Help 1 05/05/2013 04:03 PM
Sumo Louris Scripting Help 0 07/02/2013 09:26 AM
[Map] Sumo [BP]Tony Maps 26 05/03/2012 08:53 AM
Sumo - Possible ? AlExAlExAlEx Help Archive 10 17/07/2010 03:24 AM


All times are GMT. The time now is 02:44 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.