Snake
A Snake and Snake 2 minigame simulation.
What's the Source Engine without some retro games? Play Snake in a panel on the left while being dead or waiting for more players. Play with your movement keys and try to eat as much food before biting yourself or hitting the wall.

Just type !snake (sm_snake) in chat to open the main menu and choose the gamemode.
This plugin features 2 gamemodes.
Each gamemode has it's own top10 accessible from the !snake mainmenu.
Sometimes there's going to be a second piece of food laying around. Try to get it fast, as it's not there forever! You're going to lose some weight and get shorter.
Installation:
Some users' machines are unable to display UTF-8 chars ingame, so they won't be able to play this game as they will only see messy squares all over. It's clientside and i don't know how to fix that
Thanks to:
Did you see...:
Note: This plugin won't compile on the forum due to it's custom include. Use the provided .smx or compile yourself.
A Snake and Snake 2 minigame simulation.
What's the Source Engine without some retro games? Play Snake in a panel on the left while being dead or waiting for more players. Play with your movement keys and try to eat as much food before biting yourself or hitting the wall.

Just type !snake (sm_snake) in chat to open the main menu and choose the gamemode.
This plugin features 2 gamemodes.
- Snake 1 style: Solid walls. Game over, if you touch the border of the gamefield
- Snake 2: Sneaking through a wall brings you to the opposite side.
Each gamemode has it's own top10 accessible from the !snake mainmenu.
Sometimes there's going to be a second piece of food laying around. Try to get it fast, as it's not there forever! You're going to lose some weight and get shorter.
Installation:
- Upload the snake.smx into you sourcemod/plugins folder.
- Edit your databases.cfg and add a "snake" section to save the highscores in. If you don't add anything, highscores will be stored in sourcemod's default "storage-local" sqlite database.
- SQLite: Code:
"snake"
{
"driver" "sqlite"
"database" "snake"
} - MySQL: Code:
"snake"
{
"driver" "mysql"
"host" "localhost"
"database" "snake"
"user" "youruser"
"pass" "yourpass"
//"timeout" "0"
"port" "3306"
} - If you use mysql, execute this query to create the table: PHP Code:
CREATE TABLE `snake_players` (
`steamid` VARCHAR( 64 ) NOT NULL,
`name` VARCHAR( 64 ) NOT NULL,
`score1` INT NOT NULL DEFAULT '0',
`score2` INT NOT NULL DEFAULT '0',
PRIMARY KEY ( `steamid` )
) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;
- SQLite:
Some users' machines are unable to display UTF-8 chars ingame, so they won't be able to play this game as they will only see messy squares all over. It's clientside and i don't know how to fix that

Thanks to:
- berni/Chanz for their fabulous smlib
Did you see...:
Note: This plugin won't compile on the forum due to it's custom include. Use the provided .smx or compile yourself.
Wyświetl pełny artykuł