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
High-roller
 
RedFusion's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 1,079
Reputation: 300
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; 25/02/2018 at 06:07 PM.
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: 328
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,275
Reputation: 255
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: 618
Reputation: 287
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
Huge Clucker
 
R4nd4ll's Avatar
 
Join Date: Jul 2017
Location: Los Santos
Posts: 198
Reputation: 104
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: 361
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: 84
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
Gangsta
 
niCe's Avatar
 
Join Date: Mar 2008
Location: CZ
Posts: 633
Reputation: 323
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)

- Many features from singleplayer
- Pool, basketball and Poker Texas Holdem minigames, singleplayer race and other challenges
- Video game QUB3D from GTA 4
- Roulettes, blackjack, slot machines, video poker and horse-betting
- Stock market BAWSAQ from GTA 5
- Phone with a lot of features from GTA Online
- Missions from Big Smoke, Sweet, Zero, Cesar or Woozie!
- Gang wars over 100 gang hoods
- 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
VIDEO

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: Republic Of Croatia
Posts: 591
Reputation: 116
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: 249
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 33 06/10/2018 06:18 AM
[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 10:08 PM.


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