SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 10/11/2017, 03:56 PM   #1
RedFusion
Gangsta
 
RedFusion's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 921
Reputation: 330
Exclamation Multiplayer & Singleplayer Snake in SAMP


TLDR? How to get started can be found at the bottom of the post.

Brief Presentation
With this piece of code you can play snake both solo and against 1-3 other players.

To get started simply use the command /snake ingame.

From there you will be able to navigate yourself into a game in no time with ease with the minimalistic and stylish looking textdraw menus.

Your results will be saved into a local database file that you can browse ingame, and sort by playername in alphabetical order / size / kills / date & time in ascending and descending order.

See it for yourself! Check the video and image album below.

Disclaimer
This code has not been tested enough yet.
Bugs might occur and they will be fixed as soon as they're discovered.

Images
https://imgur.com/a/hTx73

Video


Code
Github Page: https://github.com/fusez/Snake
Download ZIP: https://github.com/fusez/Snake/archive/master.zip

Changelog
10th of November 2017:
* Released

18th of November 2017:
* Replaced Player Textdraws with Textdraws
* 2 Players colliding will now both die, instead of the lowest player ID dying only

How to Get Started
1. Download snake.pwn and put it in your filterscripts folder. Click here to download ZIP.
2. Compile snake.pwn with a compiler of your choice (pawno for example).
3. Load snake by adding it to the filterscripts in server.cfg or load it using the rcon command loadfs snake in the console.
4. Use the command /snake ingame.
5. Enjoy!
__________________
Also known as fusez

Last edited by RedFusion; 28/02/2019 at 08:35 AM.
RedFusion is offline   Reply With Quote
Old 10/11/2017, 04:10 PM   #2
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 315
Reputation: 37
Default Re: Multiplayer & Singleplayer Snake in SAMP

Incredible
Max_Andolini is offline   Reply With Quote
Old 10/11/2017, 04:12 PM   #3
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,071
Reputation: 283
Default Re: Multiplayer & Singleplayer Snake in SAMP

Amazing UI.
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Old 10/11/2017, 04:50 PM   #4
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 502
Reputation: 367
Default Re: Multiplayer & Singleplayer Snake in SAMP

Quote:
Originally Posted by Eoussama View Post
Amazing UI.
Indeed!
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 10/11/2017, 05:00 PM   #5
R4nd4ll
Big Clucker
 
R4nd4ll's Avatar
 
Join Date: Jul 2017
Location: Los Santos
Posts: 191
Reputation: 105
Default Re: Multiplayer & Singleplayer Snake in SAMP

Cool, +Rep dude
__________________
Randall - General administrator
Lawlessrp.com
R4nd4ll is offline   Reply With Quote
Old 11/11/2017, 03:43 AM   #6
DonaldDuck
Banned
 
Join Date: Jun 2017
Location: Phillipines
Posts: 258
Reputation: 91
Default Re: Multiplayer & Singleplayer Snake in SAMP

Looks like fun
DonaldDuck is offline   Reply With Quote
Old 11/11/2017, 03:43 AM   #7
Ponga
Big Clucker
 
Ponga's Avatar
 
Join Date: Oct 2017
Posts: 77
Reputation: 9
Default Re: Multiplayer & Singleplayer Snake in SAMP

Nice
__________________
Ponga is offline   Reply With Quote
Old 11/11/2017, 03:55 AM   #8
niCe
Huge Clucker
 
niCe's Avatar
 
Join Date: Mar 2008
Location: CZ
Posts: 392
Reputation: 424
Default Re: Multiplayer & Singleplayer Snake in SAMP

Good job! I have once created snake game too, but since it was mostly unplayble for players with high ping because of the connection lagging, I replaced it with QUB3D (inspired from GTA 4), which is not affected that much by reaction time.
__________________
[ENG] s2.gta-multiplayer.cz:7777 WTLS 2 (Singleplayer Features)
[ENG] s3.gta-multiplayer.cz:7777 WTLS 3 (Singleplayer Features)

- Pool, basketball, golf, Poker Texas Holdem, races and other minigames
- Video game QUB3D
- Roulette, blackjack, slots, video poker and horse-betting
- Stock market BAWSAQ
- Organizations and offices
- Missions from Big Smoke, Sweet, Zero, Cesar or Woozie!
- Gang wars
- More than 30 jobs (police, paramedic, firefighter, burglar, pimp, valet, pizza-boy and more)
- Gyms, strip clubs, clothes shops, hidden packages, oysters, spray tags, horseshoes and more
Watch the TRAILER
Servers are hosted at Evolution Host

Last edited by niCe; 30/11/2017 at 09:40 AM.
niCe is offline   Reply With Quote
Old 11/11/2017, 08:55 AM   #9
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia.
Posts: 591
Reputation: 117
Default Re: Multiplayer & Singleplayer Snake in SAMP

Good job. Reputation added
Bolex_ is offline   Reply With Quote
Old 11/11/2017, 10:04 AM   #10
Puff
Huge Clucker
 
Puff's Avatar
 
Join Date: Oct 2013
Posts: 230
Reputation: 17
Default Re: Multiplayer & Singleplayer Snake in SAMP

Amazing, loved it
__________________
Puff 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
[FilterScript] Singleplayer intro to Multiplayer lukica Filterscripts 42 29/09/2019 11:42 PM
[FilterScript] Snake Multiplayer v1.0 iMonk3y Filterscripts 18 05/08/2011 06:11 PM
[FilterScript] Snake Multiplayer (Beta) iMonk3y Filterscripts 34 04/08/2011 08:01 AM
SAMP goes to Singleplayer homo69 Client Support 7 01/11/2009 11:29 AM
sa-mp goes to singleplayer not multiplayer... GangBang Client Support 3 12/08/2009 03:36 AM


All times are GMT. The time now is 05:14 PM.


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