SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 07/11/2012, 05:39 AM   #1
SuperViper
High-roller
 
SuperViper's Avatar
 
Join Date: Sep 2011
Posts: 1,178
Reputation: 315
Default Slope

Introduction

This is a unique gamemode that has (from my knowledge) never been introduced to SA-MP before. This gamemode is called Slope. In this gamemode, players are supposed to climb up a very steep platform with a limited amount of health and armor while vehicles are falling down the platform every once in a while.


Features and Documentation
You can view a full, live documentation of this script at https://docs.******.com/spreadsheet/...5YVVMZ0E#gid=0. All development information will be stored there.


Commands
You can view help information about a command by typing /help [command] for player commands and /(sh)elp [command] for staff commands.

Required PositionCommandEffect
Regular Player/cageUse one of your cage items to place a cage around yourself to prevent yourself from getting hit by cars
Regular Player/songChange the song
Game Moderator/(st)affTalk in the staff-only chat
Game Moderator/kickKick a player from the server
Game Moderator/banBan a player for a specified amount of days
Game Moderator/obanOffline ban a player for a specified amount of days
Game Moderator/unbanUnban a player
Game Moderator/staffonlineView the online staff members
Game Moderator/(warn)ingDisplay a warning box to a player
Game Moderator/ipcheckDisplay the IP of a player
Game Moderator/(afkp)layersView a list of AFK/tabbed players
Senior Game Moderator/(i)ndef(ban)Ban a player indefinately
Senior Game Moderator/o(i)ndef(ban)Offline ban a player indefinately
Senior Game Moderator/(s)taff(list)View a list of both offline and online staff members
Senior Game Moderator/(swarn)ingDisplay a warning box for a player without displaying your name
Senior Game Moderator/gotoTeleport to a player
Senior Game Moderator/gethereTeleport a player to you
Senior Game Moderator/oipcheckGet the IP of an offline player
Senior Game Moderator/listaccounts(ip/name)List the accounts with a relation to the IP or account name
Senior Game Moderator/setnameChange the name of a player
Senior Game Moderator/changemapChange the map
Senior Game Moderator/(f)orce(r)oundForce a new round to begin
Server Administrator/suspendSuspend a staff member for a specified amount of days
Server Administrator/osuspendOffline suspend a staff member for a specified amount of days
Server Administrator/setstaffSet the staff level of a player and remove their staff suspension (if any)
Server Administrator/osetstaffOffline set the staff level of a player and remove their staff suspension (if any)
Server Administrator/(m)ap(edit)Modify the current map settings
Server Administrator/(a)dd(v)ehicle(p)ointAdd a new point for vehicles to spawn on the map
Server Administrator/(a)dd(i)temAdd a new item on the map


Adding Maps
To add a map, you need to add the CreateObject code under OnGameModeInit and then add a new row in the maps table in the database. You can load the map by creating a new file under scriptfiles called nextmap.txt and putting in the new created map ID inside the file and saving it. Once the map is loaded, you can use /(a)dd(v)ehicle(p)oint and /(a)dd(i)tem to create vehicle spawn points and map items. If you want to create teleport map items, you will need to do it manually through the database.

Item effects 0-46 give the player a weapon.
Item effect 100 restores the player's health.
Item effect 101 restores the player's armor.
Item effect 102 teleports the player.


Bugs and Suggestions

Please reply to this thread with your bug report or suggestion for the gamemode. All of these posts will be reviewed carefully and dealt with accordingly. If you report a bug and it's confirmed by the testing team, it will be placed on the issue tracker on the official documentation page.

Screenshots














Downloads

The download links and the gamemode itself will be updated occasionally.

Version 1.0 (Windows) - Mediafire
Version 1.0 (Linux) - Mediafire
XAMPP Download (required) - Official Website



Changelog

VersionChange
Version 1Created the script


Installation

Self Hosting Installation
1) Download the server folder and place it on your desktop.
2) Install XAMPP with the file you downloaded from the XAMPP Download link.
3) Open up XAMPP (or the control panel).
4) Click on start for Apache and MySQL.
5) Click on 'Admin' for MySQL and wait for the page to load.
6) Click on the 'Databases' tab.
7) In the box under 'Create new database', put in 'slope' and click create.
8) Select 'slope' from the database list below.
9) Click on the 'Import' tab.
10) Click on the 'Choose File' button and select the .sql file in the 'server folder > SQL File' folder and then click go.
11) Open up the config.php file in the User Control Panel folder and modify it to your liking.
12) Drag all of the user control panel files from 'server folder > User Control Panel' to C:/xampp/htdocs.
13) Go to 'server folder > scriptfiles > configuration' and open up mysql.cfg.
14) Modify the settings if necessary:
MySQL IP|MySQL Username|MySQL Database|MySQL Password (@ for no password)|MySQL Port|Enable MySQL Debugging

By default, all of the settings are configured for a home-hosted MySQL server.
15) Open up the main.cfg file in the same folder.
16) Modify the settings if necessary:
Server Name|Server Gamemode
17) You're finished, you can now run the server. You can view the control panel by typing localhost in your browser.

Hosting Company Installation
1) Download the server folder and place it in the server directory via FTP.
2) Go to your MySQL host's phpMyAdmin page.
3) Click on the 'Databases' tab.
4) In the box under 'Create new database', put in 'slope' and click create.
5) Select 'slope' from the database list below.
6) Click on the 'Import' tab.
7) Click on the 'Choose File' button and select the .sql file in the 'server folder > SQL File' folder and then click go.
8) Drag all of the user control panel files from 'server folder > User Control Panel' to C:/xampp/htdocs.
9) Go to 'server folder > scriptfiles > configuration' and open up mysql.cfg.
10) Modify the settings if necessary:
MySQL IP|MySQL Username|MySQL Database|MySQL Password (@ for no password)|MySQL Port|Enable MySQL Debugging
By default, all of the settings are configured for a home-hosted MySQL server.
11) Open up the main.cfg file in the same folder.
12) Modify the settings if necessary:
Server Name|Server Gamemode
13) Open up the config.php file in the User Control Panel folder and modify it to your liking.
14) Drag all of the files from the User Control Panel folder to your website folder.
15) You're finished, you can now run the server.

Creating an administrator account
Once you join the server, you will automatically be able to create an administrator account one time only.


Credits

SuperViper/Ricky Phelps - Creating the script
Bruce Stracci - Coordinating development and revising features
Andre Martini - Testing the functionality of the features
__________________
Release NameUse
FairPlayKeep the cheaters out of your server
Object Model ArrayArray of every single object model in the game
RCON PanelControl any server as you like with RCON controls
SlopeClimb up a steep hill against other players with cars falling down

I do not play on any SAMP server. Anyone with the name Ricky Phelps in-game is an imposter.

Last edited by SuperViper; 08/11/2012 at 03:01 AM.
SuperViper is offline   Reply With Quote
Old 07/11/2012, 05:44 AM   #2
Deaglez
Big Clucker
 
Deaglez's Avatar
 
Join Date: Jul 2012
Posts: 64
Reputation: 1
Default Re: Slope

Oh my gawd. FUCK NICE!

1 rep
__________________
Deaglez is offline   Reply With Quote
Old 07/11/2012, 06:11 AM   #3
Toni
High-roller
 
Toni's Avatar
 
Join Date: Aug 2009
Location: United States
Posts: 1,464
Reputation: 156
Default Re: Slope

This is an absolutely great gamemode. Doesn't this also exist on Garry's Mod? I'm not sure if I'm thinking it's the right slope.
__________________
Toni is offline   Reply With Quote
Old 07/11/2012, 03:15 PM   #4
SuperViper
High-roller
 
SuperViper's Avatar
 
Join Date: Sep 2011
Posts: 1,178
Reputation: 315
Default Re: Slope

Quote:
Originally Posted by Toni View Post
This is an absolutely great gamemode. Doesn't this also exist on Garry's Mod? I'm not sure if I'm thinking it's the right slope.
Yes, that's actually where I got the idea.
__________________
Release NameUse
FairPlayKeep the cheaters out of your server
Object Model ArrayArray of every single object model in the game
RCON PanelControl any server as you like with RCON controls
SlopeClimb up a steep hill against other players with cars falling down

I do not play on any SAMP server. Anyone with the name Ricky Phelps in-game is an imposter.
SuperViper is offline   Reply With Quote
Old 07/11/2012, 03:19 PM   #5
Hiddos
High-roller
 
Hiddos's Avatar
 
Join Date: Sep 2008
Posts: 3,306
Reputation: 2184
Default Re: Slope

This looks pretty cool to be honest, I might even run this !
__________________
Quote:
Originally Posted by DeWolf View Post
For fuck's sake people, this whole thread is fucked up now.
Hiddos is offline   Reply With Quote
Old 07/11/2012, 03:32 PM   #6
Don_Speed
High-roller
 
Don_Speed's Avatar
 
Join Date: Sep 2011
Location: Curitiba / PR
Posts: 3,256
Reputation: 256
Default Re: Slope

Good job!
__________________
Don_Speed is offline   Reply With Quote
Old 07/11/2012, 03:58 PM   #7
ViruZz
Banned
 
Join Date: Feb 2012
Location: Montreal
Posts: 320
Reputation: 56
Default Re: Slope

Another well done job by SuperViper.
ViruZz is offline   Reply With Quote
Old 07/11/2012, 05:04 PM   #8
Roddan
Big Clucker
 
Join Date: Mar 2012
Location: Sweden
Posts: 169
Reputation: 37
Default Re: Slope

Awesome WORK!
Roddan is offline   Reply With Quote
Old 07/11/2012, 05:27 PM   #9
nGen.SoNNy
Gangsta
 
nGen.SoNNy's Avatar
 
Join Date: Sep 2009
Location: Romania
Posts: 928
Reputation: 69
Default Re: Slope

Nice...
__________________
If i've helped you, please click
nGen.SoNNy is offline   Reply With Quote
Old 07/11/2012, 05:39 PM   #10
Niko_boy
High-roller
 
Niko_boy's Avatar
 
Join Date: Aug 2010
Location: Somewhere i belong
Posts: 1,338
Reputation: 138
Default Re: Slope

amazing, it remind me of some tv show Takeshi castle wher erocks are falling o.O from slope XD
__________________
nope[IMG]http://*******/1r0SOkH_[/IMG]
•••[CLOSED]LCS•Freeroam•DM•Stunts•••AutoArena [0.3z][No SkinShot][sixtytiger.com]Want a decent Attack Defend Gamemode?
N/A176.31.229.148:7830Get This! Attack-Defend(v2.3.1)
Niko_boy 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



All times are GMT. The time now is 10:09 AM.


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