SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 18/02/2017, 08:53 PM   #1
faxxe
Big Clucker
 
faxxe's Avatar
 
Join Date: Nov 2009
Location: Brasilia
Posts: 116
Reputation: 18
Wink Last Bed Standing - Bedwars in SA-MP!


Changelog
Code:
# Change Log
All notable changes to this project will be documented in this file.

## [0.1a] - 2017-03-14
### Added
- Binarysearch instead of iterators for pickup system.
- /stealth command to make yourself invisible for 60 seconds on minimap.

## [0.1b] - 2017-03-20
### Added
- Possibility to get a Warpkit to teleport yourself back to your base by using /warp command. Can be purchased for $100k in the shop.
- New reference map files including new PlayerInfoPickups array. 
- New pickup type InfoPickups, to show certain important server information like rules, FAQ and more..
- SaveUser_data function to save userdata periodically into the user file.
- ResetPlayerData function to reset player vars and arrays after death/disconnect.
- TeleportPlayerToBase function to teleport the player back to his base using /warp command or /spawn command (Admin only).
-

### Removed
- The Seasparrow of team YELLOW on Chilliad map due to balancing.
- Usless/Unused player vars and arrays.


### Fix
- /stealth kit which didnt work before. The player was invisible on the map all the time. No reset.
- Map bugs on CHILLIAD and GREEN PALMS map.
- String length of several strings due to display problems.


## [0.1b] - 2017-03-21
### Added
- Added weather system for random weather.
- Weather can be set by admins, using /weather ID
- /dropmoney uses GenerateRandomPickup function now, to create money pickups.
- system to check if a team has won the game. (if other teams are empty)
- Improved several minor bugs.
- Major changes in score system.
- The winner of the team will now be determined if there is no player left in other teams
- Recursive function will be called in OnPlayerDeath instead of OnPlayerSpawn now.
- Dead player will be thrown into TEAM_SPECTATOR after death now if the bed is missing.
- GetPlayerCount() function added to count amount of players for use in TeamsAlive(bool:value) function.
- Recursive function TeamsAlive(bool:value) function (false/true) to count teams alive or check if there is only one team left.
- Fighting Style menu to purchase different fightstyles.

### Fix
- Increased weapon prices due to balancing reasons.
- Changed bomb activation radius to 150m instead of 100m.

## [0.1b] - 2017-03-28
### Added
- Function GivePlayerMoneyText to give or remove money from a player and display gametext.
- #define to change the value of Money Pickups.

## [0.1b] - 2017-03-28
### Added
- Function GivePlayerMoneyText to give or remove money from a player and display gametext.
- #define to change the value of Money Pickups.

## [0.1.3a] - 2018-03-02
### Fix
- Fixed major bugs.
- Fixed y_ini problems.
- Fixed a huge amount of bugs.
- Code optimization

##[1.0.0] - 2018-03-02
### Added
- Fixed major bugs.
- Removed y_ini
- Fixed a huge amount of bugs.
- Code optimization
- Added Login/Register system using MySQL
- Added Salt + AES-256 support for security matters
- MySQL table will be altered if rows do not exist
- Added round system, deathmatch like to get a real game running
- Added MySQL support using the newest plugin and include
- Added a scoreboard shown at the end of a game
- Gamemode will now restart automatically to change a map after a team has won
- First stable gamemode, has been tested for a while right now. Please report any bugs
- Added 60 seconds countdown when there is a sufficient amount of players.
- Players are invincible during the countdown phase.
- Started the use of arrays to declare various team states.
Unfortunately i dont know how to get this pics smaller..

Hereby i want to publish my latest work and project Last Bed Standing - Bedwars, based on SA-MP's Grand Larceny

Reasons why..

Goal of this project is to port Minecraft's famous Bedwars gamemode into SA-MP. SA-MP is awesome, isnt it? So why not keeping it
Unfortunately the most SA-MP projects in progress, are roleplay or reallife servers so nothing special. So one of the reasons for the creation of this mode is to recreate Bedwars in SA-MP set in the GTA world, with money instead of bronze, explosions instead of break blocks in Minecraft.
Due to my university study i have to program a lot of stuff in C language, so why not practice a bit by using a C-Like language like PAWN? The result of alle these reasons is this project.. the time to creation of this mode took 2 weeks, so whats better than a selfmade mode instead of Godfather?
So why do you publish this work Knogle? Heh im addicted to free and open source software so i put this creation under GNU GPL Public License so anyone can redistribute, modify or improve it.
SA-MP is free, right? So this should be free as well, heh!


Finally this project has been created just for some fun and practice of my C skills for my uni course, but i will keep updating this gamemode in future!

Currently this Gamemode Last Bed Standing is in alpha state currently but will be updated frequently every week if possible.


The only left piece of Grand Larceny is the city, or in this case the team selection.
In my opinion its multiple times better than the simple skin selection, realised with menus on most servers, not this default crap.

Currently there are 3 Teams available, similar to real Bedwars.
Team RED is located inside of the Sherman Damn, so you have to travel westbound of El Castillo Del Diablo to get there. Team GREYs spot is Area 51 and Team BLUEs shed is Torenos Airport located in Verdant Meadows!

All the teams have got a shop inside the base, close to the spawn to purchase weapons, armour, skills or a bomb which is needed to destroy an enemies bed.
The teams also have vehicles available scattered around in area of their bases, like tanks or seasparrows to improve their defence against invadors.


The 3 teams are in posession of a "bronze" spawnpoint. But the way its made is GTA style so instead of "bronze" spawnpoints we have random money pickups scattered inside of a small 2D zone inside of any base.
You have to use the money to purchase weapons and miscellaneous stuff.

Goal of the game is to destroy the enemies bed, and wipe out all the other players ( except your own team obviously), like bedwars..
You can only respawn after death if your bed is still not broken, otherwise you are so dead bro.
This mode actually contains 2400 lines of code, its obviously a lot more than Grand Larceny has, with 500 lines only!


I tried this with 4 players only, and usually a game takes 10 up to 15 minutes.
Its simple but we had a lot of fun by playing this! Maybe just try it out..

The gamemode is written in ENGLISH completely, forgive me if there are any German or Portuguese comments left. (Im German and also Brazilian..)

This project is running @knogleinsi.de currently with 32 Slots and will keep running, so please keep developing and redistributing this mode and create some forks! Why not?

If you want to test this mode get some mates together and send me a pm.

I wont add a huge amount of features, it should be simple like the genuine Bedwars!


The source, check it out!


To the script itself..

You need sscanf2 Include and Plugin to run it.
You have to create 2 files:

vehiclebedwars.txt in /pawno/includes
customvehicles.txt in scriptfiles folder.

Commands available:

Code:
/dropmoney (To drop a specific amount of money close to the player)
/spec ID (you can spectate a player if your team has been wiped out)
/blowup (Type this if you are close to an enemies bed to blow it up!)
/pm (simple..)
/getplayerteam
/stealth
/warp
/acmds
/dropbomb
/detonate
/stats
/r (team radio)



since 0.1.3
... and more


A little overview of the teams and their spots:



A bomb is being placed!



Bed is detonating, run forrest!





One of the 3 teams you can choose..



Shop or dealer of team RED




"bronze" spawnoint and a little blackboard with game and team stats. (Every team has one)



The famous "center", known from Bedwars.
Its spawning money pickups twice as fast as in the bases.





Bed of Team GREY




Download:

Latest stable version 1.0.0

https://github.com/Knogle/LastBedStanding

The server is also available for testing here:

openknogle.eu:7777
__________________
Hardware & software knowledge base
PAWN & C Developing inquires below, using contact form



Last edited by faxxe; 22/01/2019 at 07:10 PM.
faxxe is offline   Reply With Quote
Old 18/02/2017, 09:00 PM   #2
Dangjai
Huge Clucker
 
Join Date: May 2014
Posts: 389
Reputation: 23
Default Re: Last Bed Standing - Bedwars in SA-MP!

Wow amazing GM ! good job
Dangjai is offline   Reply With Quote
Old 18/02/2017, 09:06 PM   #3
TopShooter
Big Clucker
 
TopShooter's Avatar
 
Join Date: Jan 2016
Location: Unknown
Posts: 75
Reputation: 90
Default Re: Last Bed Standing - Bedwars in SA-MP!

Funny and nice.
TopShooter is offline   Reply With Quote
Old 19/02/2017, 04:02 AM   #4
Sumit4
Big Clucker
 
Join Date: Sep 2016
Posts: 95
Reputation: 18
Default Re: Last Bed Standing - Bedwars in SA-MP!

Lol last bed standing Nice And Funny +REP
Sumit4 is offline   Reply With Quote
Old 19/02/2017, 10:00 AM   #5
Roozevelt
Gangsta
 
Roozevelt's Avatar
 
Join Date: Jan 2016
Location: Tunsia
Posts: 528
Reputation: 154
Default Re: Last Bed Standing - Bedwars in SA-MP!

Well done.
__________________
Left SA-MP.
Roosevelt's stunt map pack : Click here
SEF community
Join now

Roozevelt is offline   Reply With Quote
Old 19/02/2017, 08:54 PM   #6
faxxe
Big Clucker
 
faxxe's Avatar
 
Join Date: Nov 2009
Location: Brasilia
Posts: 116
Reputation: 18
Default Re: Last Bed Standing - Bedwars in SA-MP!

Thanks, next update on friday!
__________________
Hardware & software knowledge base
PAWN & C Developing inquires below, using contact form


faxxe is offline   Reply With Quote
Old 19/02/2017, 09:13 PM   #7
Infinity
High-roller
 
Infinity's Avatar
 
Join Date: Jul 2009
Posts: 1,228
Reputation: 975
Default Re: Last Bed Standing - Bedwars in SA-MP!

Why did you use that pragma..?
__________________

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 19/02/2017, 10:35 PM   #8
faxxe
Big Clucker
 
faxxe's Avatar
 
Join Date: Nov 2009
Location: Brasilia
Posts: 116
Reputation: 18
Default Re: Last Bed Standing - Bedwars in SA-MP!

Can you tell me which line? Do you mean #pragma tabsize 0? It was part of Grand Larceny so I didn't change it cuz I don't know what #pragma is used for.. never encountered it in C


Edit:

I use it to suppress the "lost identitation" warnings because I use Text FX to reindent the source code
__________________
Hardware & software knowledge base
PAWN & C Developing inquires below, using contact form


faxxe is offline   Reply With Quote
Old 22/02/2017, 06:19 PM   #9
ZachKnoxx
Huge Clucker
 
Join Date: Oct 2013
Location: Canada
Posts: 200
Reputation: 70
Default Re: Last Bed Standing - Bedwars in SA-MP!

Great work. I love playing bed wars in minecraft, aha!
ZachKnoxx is offline   Reply With Quote
Old 22/02/2017, 07:05 PM   #10
DavidGravelli
Huge Clucker
 
DavidGravelli's Avatar
 
Join Date: May 2014
Location: Belgium
Posts: 237
Reputation: 36
Default Re: Last Bed Standing - Bedwars in SA-MP!

Good job
DavidGravelli is online now   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
[FilterScript] Last Man Standing SyntaxQ Filterscripts 31 27/07/2014 03:06 PM
standing npc Slicebook Scripting Help 2 12/05/2014 10:50 PM
[FilterScript] Last Man Standing AldoT Filterscripts 6 22/06/2013 03:12 PM
Standing NPC .v Scripting Help 3 08/10/2012 07:52 PM
Standing NPC Ihsan-Cingisiz Help Archive 0 28/01/2011 09:09 PM


All times are GMT. The time now is 10:23 PM.


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