Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[forums.alliedmods.net] [ANY] Solitaire (Version 1.0)


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 490
  • Lokalizacja:AMXX.PL
Offline

Napisano 17.01.2012 00:41

Solitaire
A solitaire card game simulation.


While it may sound stupid to play a card game in a FPS game, it's still good enough to waste time while dead.

Dołączona grafika

Players may type !solitaire (sm_solitaire) in chat to open the main menu and start playing a new game, resuming their previous one or watch the top 10.

You move the cursors with your movement keys (w, s, a, d) and select cards with the +use key (e). Instead of always switching back to the stock to put a new card to the waste, you're able to press jump (spacebar) as a shortcut.

Press "0" to pause the game.

When you selected one card, you see a second pair of cursors appearing to choose the place where to put the selected card(s).

The goal is to move all cards to the foundation - ordered from ace to king. Read up on the rules, if you don't know the game :)

Installation:

  • Upload the solitaire.smx into you sourcemod/plugins folder.
  • Edit your databases.cfg and add a "solitaire" 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: "solitaire"
    {
    "driver" "sqlite"
    "database" "solitaire"
    }
  • MySQL:

    Code: "solitaire"
    {
    "driver" "mysql"
    "host" "localhost"
    "database" "solitaire"
    "user" "youruser"
    "pass" "yourpass"
    //"timeout" "0"
    "port" "3306"
    }
  • If you use mysql, execute this query to create the table:

    PHP Code:

    CREATE TABLE `solitaire_players` (
    `
    steamid` VARCHAR( 64 ) NOT NULL,
    `
    name` VARCHAR( 64 ) NOT NULL,
    `
    score` INT NOT NULL DEFAULT '0',
    `
    time` INT NOT NULL DEFAULT '0',
    PRIMARY KEY ( `steamid` )
    )
    ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;

Known issues:
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 instead of the card colors. 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.



Attached Files Dołączona grafika Get Plugin or Get Source (sneakjoin.sp - 11.3 KB) Dołączona grafika solitaire.smx (24.8 KB)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych