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

[ANY] XF:DragonByte Credits API


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
API features:
  • Add credits to the user.
  • Take credits from user.
  • Find out the quantity of credits from user.
  • Find out if user is registered on the forum.

Requirements:User credits should be in the xf_user table.

Installation:
In the plugin core there is #define CURRENCY_ID 2 - you need to insert the ID of your credits there.

databases.cfg:
Code:

    "xf_credits"
    {
        "driver"    "mysql"
        "host"      " "
        "database"  " "
        "user"      " "
        "pass"      " "
    }

Usage example:
Code:

public Action Command_Test_Take(int client, int args)
{
    Xf_TakeCredits(client, 100, true, "test_event", "%N", client);
    return Plugin_Handled;

}

bVisibility - whether to display information in the transaction log*

In this example, 100 credits will be taken from the player, this will be shown in the transaction log.
The transaction name will be: test_event.
And in the additional message will be the name of the player.

Attached Files
File Type: zip xf_credits-2v (2).zip (5.2 KB)

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

×
×
  • Dodaj nową pozycję...