+ Reply to Thread
Results 1 to 1 of 1
  1. [WarGods Tutorials Nr.16] Plugin Show Round

    #1
    Manager Server:
    Zombie.WarGods.ro
    lAsuStarl's Avatar
    Member since
    May 2015
    Location
    0.0.0.0
    Posts
    588
    Mentioned
    3 Post(s)
    Achievements Total Posts 2 Total Posts 1 Days Registered 3 Days Registered 2 Days Registered 1 Threads 1 Confirmed Friends 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Post [WarGods Tutorials Nr.16] Plugin Show Round

    Salutare tuturor,acesta este al 16-lea WarGods Tutorial,iar astazi vom creea inca un plugin,cu toate cunostiintele acumulate in prezent,aceast plugin are rolul,de a instinta un jucator,ce numar de runda este,utilizand o simpla comanda,sa incepem.

    1)Codul va arata cam asa:
    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!


    2)Tot ce am facut este sa intregistrez o variabila goala,adica o variabila cu valoarea 0,deoarece daca eu nu folosesc,spre exemplu new Round = 3 ,variabilei Round,i se atribuie valoarea 3,iar daca eu nu-i dau o valoarea,ea automat este 0.

    3)Am intregistrat un eveniment,acela fiind inceputul undei runde,functia este default din biblioteca amxmodx
    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 are 2 parametri,primul este publicul vostru,numele care doriti sa-l puneti,iar al 2-lea parametru este ce tip de runda sa fie:
    1)Incepera unei runde
    2)Sfarsitul unei runde

    4)Pentru inregistrearea unui eveniment de sfarsit de runda codul este urmatorul:
    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!


    5)A-ti vazut in cod,ca la publicul round_start,nu exista niciun id = index,deoarece cand este id,adica jucator,se executa la fiecare jucator in parte,ei bine la functia de inceput de runda,trebuie executat o functie,spre exemplu modificarea vietii,la toti odata,nu doar la unul,o sa vedeti mai incolo,cum se face aceasta treaba.

    6)In acel public a-ti vazut Round++,acel ++ langa o variabila se numeste incrementare,incrementarea este ca,de fiecare data cand se executa o functie,in care exista o variabila la fel ca si aici,ea automat isi mareste valoarea.

    Traducere:
    - De fiecare data cand va incepe o runda noua,variabila Round va primi cu 1 in +,mai pe scurt,intram pe server,si a inceput runda,ok variabila are valoarea 1,resectiv rounda 1,apoi iar incepe dinou o runda noua,variabila iar primeste un 1,si va veni 1+1 = 2,respectiv runda 2,si tot asa pana cand se va schimba mapa,iar apoi variabila redevine 0.

    Acesta a fost al 16-lea WarGods Tutorial,in cazul in care am omis ceva,sau daca nu a-ti inteles,puteti da replay linistiti,pana data viitoare numai bine .
    Last edited by lAsuStarl; 29-06-2017 at 08:36 PM.
    Zombie Escape

    Thanks Boutique a dat Thanks acetui post
    Like LuXoKINGGaming, ~TraNda~, Boutique 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