+ Reply to Thread
Results 1 to 1 of 1
  1. [WarGods Tutorials Nr.21] Cvarul

    #1
    Moderator:
    Programare
    ~Wolf~'s Avatar
    Member since
    Jan 2017
    Location
    Dark abyss
    Posts
    3,078
    Last username
    GaBiTzU M@riju@n@ |Wolf| WarGods | Wolf
    Mentioned
    39 Post(s)
    Achievements Visitor Messages Given 1 Days Registered 3 Mentions Received 1 Mentions Given 2 Mentions Given 1 Visitor Messages Received 2 Visitor Messages Received 1 Total Posts 3
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    [WarGods Tutorials Nr.21] Cvarul

    Salut.Voi continua tutorialele lui AsuStar.In acest tutorial va voi invata cum sa inregistrati un cvar si cum sa-l folositi.Intai voi face pluginul urmand sa va explic:
    AMXX Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!


    Explicatie:

    1) In prima etapa am inclus toate librariile necesare.

    2)Am inregistrat o noua variabila.

    3)In public plugin_init() am inregistrat un Ham , presupun ca stiti din tutorialele anterioare.

    4)Am ajuns la cvar.
    AMXX Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    .Functia register_cvar are 2 parametrii mai precis Numele cvar-ului pe care il inregistrezi si Valoarea cvar-ului.Cvar-ul , pentru inceput se inregistreaza prin cazul unei variabile.In cazul nostru variabila este
    AMXX Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    .

    AMXX Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    are un singur parametru , variabila in care este inregistrat cvarul.get_pcvar_num extrage valoarea unui cvar.In cazul nostru
    AMXX Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    extrage valoarea cvar-ului "wg_money" , valoarea fiind "1000".

    5)In public bonus_money(id) am setat banii jucatorului.

    Cam atat pentru acest tutorial , sper ca v-a fost de ajutor.Daca am omis ceva va rog sa-mi lasati un reply.
    Last edited by ~TraNda~; 23-08-2017 at 03:13 AM.
    Tutoriale C++: CLICK AICI
    Like Filip # 24.08, ~Life~, AdreN a dat Like acetui post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Partners
Humble Monthly Bundle
Voucher PC-Garage