Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[ANY] _Super_ Paypal Donation


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Super Paypal Donation

Before anything, read this :
You will need a business paypal account to receive the payments.

68747470733a2f2f7075752e73682f726f6f4343

A very simple idea. Player pay you through paypal to unlock perks or what not and you become rich and greedier. Also, I absolutly dislike this system of giving perks in exchange of money instead of skill, but yeah, whatever. You asked for it, here it is.

DEMO WEBSITE: http://arkarrsourceservers.ddns.net/website/public/pp/

68747470733a2f2f7075752e73682f726f6f4347
  • Everything is fully automatic
  • Easy configuration
  • Translations
  • Payments are saved in database to allow some kind of logs

68747470733a2f2f7075752e73682f726f6f434b

Download the whole package here : https://github.com/Arkarr/SM-Super-Paypal-Donation

68747470733a2f2f692e696d6775722e636f6d2f

1) Extract the content of the 'sourcemod' folder into your server's sourcemod folder
2) Edit sourcemod/configs/database.cfg
Code:

 
        "super-paypal-donation"
        {
                "driver"                        "mysql"
                "host"                                "IP ADDRESS OF DB SERVER"
                "database"                        "webstore_vip"
                "user"                                "USERNAME"
                "pass"                                "PASSWORD"
                //"timeout"                        "0"
                //"port"                        "0"
        }

3) Edit sourcemod/configs/admin_groups.cfg in order to add the vip groups. Here is a (bad) example :
Code:

Groups
{
        /**
        * Allowed properties for a group:
        *
        *  "flags"          - Flag string.
        *  "immunity"        - Immunity level number, or a group name.
        *                                                If the group name is a number, prepend it with an
        *                                                '@' symbol similar to admins_simple.ini.  Users
        *                                                will only inherit the level number if it's higher
        *                                                than their current value.
        */
        "Default"
        {
                "immunity"                "1"
        }
       
        "Full Admins"
        {
                /**
                * You can override commands and command groups here.
                * Specify a command name or group and either "allow" or "deny"
                * Examples:
                *                ":CSDM"                        "allow"
                *                "csdm_enable"        "deny"
                */
                Overrides
                {
                }
                "flags"                        "abcdefghiz"

                /* Largish number for lots of in-between values. */
                "immunity"                "99"
        }
       
        "vip1"
        {
                "flags"                        "a"
                "immunity"                "10"
        }
       
        "vip2"
        {
                "flags"                        "b"
                "immunity"                "15"
        }
       
        "vip3"
        {
                "flags"                        "c"
                "immunity"                "20"
        }
}

4) Reload map or restart server. Make sure the database connection is successful.

Deploy the website:
For the purpose of the demonstration, we will use http://sht-domain.com/ for example.

1) Inside the previously downloaded .ZIP, there is a 'website' folder. Extract it anywhere on your website.
2) Now, navigate to http://sht-domain.com/website/configs.
3) Make sure that YOU CAN NOT access to that folder. It will contain all the login details, secret and api key.
4) Now, edit the file in website/configs folder (config.ini) and provide all the parameter with a value.
5) You are good to go.

68747470733a2f2f7075752e73682f726f6f4374

none

68747470733a2f2f7075752e73682f726f6f4164

none

68747470733a2f2f7075752e73682f726f6f4355

Feel free to ask

68747470733a2f2f7075752e73682f726f6f436b

None found yet

68747470733a2f2f7075752e73682f726f6f434e

Demo website : http://arkarrsourceservers.ddns.net/website/public/pp/

In order to make a donation, you can use this paypal account :

Username : [email protected]
Password : V56u>Yzn

687474703a2f2f7075752e73682f724e6974582f

All files are on Github : https://github.com/Arkarr/SM-Super-Paypal-Donation

Enjoy !

Logs :
Spoiler

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...