-- Closed Thread
Results 1 to 5 of 5
  1. Problama MultiJump !

    #1
    Membru - Silver Elite Power.'s Avatar
    Member since
    Jun 2011
    Location
    localhost
    Posts
    234
    Mentioned
    0 Post(s)
    Achievements Total Posts 2 Total Posts 1 Days Registered 4 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

    Problama MultiJump !

    Am intrat pe server sa joc si se pare c-am dat de o problema, dupa schimbarile facute. Am observat ca in acele 10-15 secunde pana la infectie, cei din echipa T nu pot folosi multijump adica au un singur jump ... Propun sa schimbati codul adica ...

    * Cred ca aveti unul din urmatoarele coduri bagate (presupun):

    PHP Code:
    if(get_user_team(id) ==1)
            return 
    0
    sau
    PHP Code:
    if(cs_get_user_team(id) == CS_TEAM_T)
            return 
    0
    Propun sa folositi acest if din biblioteca <biohazard>

    PHP Code:
    if(!is_user_zombie(id))
            return 
    PLUGIN_HANDLEDsau return 0
    Eu am modificat pluginul classic de multijump:

    PHP Code:
    #include <amxmodx>
    #include <engine>
    #include <biohazard>

    new jumpnum[33] = 0
    new bool:dojump[33] = false

    public plugin_init()
    {
        
    register_plugin("MultiJump","1.1","twistedeuphoria")
        
        
    register_cvar("amx_maxjumps","1")
        
    }

    public 
    client_putinserver(id)
    {
        
    jumpnum[id] = 0
        dojump
    [id] = false
    }

    public 
    client_disconnect(id)
    {
        
    jumpnum[id] = 0
        dojump
    [id] = false
    }

    public 
    client_PreThink(id)
    {
        if(!
    is_user_alive(id)) 
            return 
    PLUGIN_CONTINUE;
            
        if(!
    is_user_zombie(id))
            return 
    PLUGIN_CONTINUE;
        
        new 
    nbut get_user_button(id)
        new 
    obut get_user_oldbutton(id)
        
        if((
    nbut IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut IN_JUMP))
        {
            if(
    jumpnum[id] < get_cvar_num("amx_maxjumps"))
            {
                
    dojump[id] = true
                jumpnum
    [id]++
                
                return 
    PLUGIN_CONTINUE;
            }
        }
        if((
    nbut IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
        {
            
    jumpnum[id] = 0
            
    return PLUGIN_CONTINUE;
        }
        return 
    PLUGIN_CONTINUE;
    }

    public 
    client_PostThink(id)
    {
        if(!
    is_user_alive(id)) 
            return 
    PLUGIN_CONTINUE;
        
        if(!
    is_user_zombie(id))
            return 
    PLUGIN_CONTINUE;
        
        if(
    dojump[id] == true)
        {
            new 
    Float:velocity[3]    
            
            
    entity_get_vector(id,EV_VEC_velocity,velocity)
            
    velocity[2] = random_float(265.0,285.0)
            
    entity_set_vector(id,EV_VEC_velocity,velocity)
            
    dojump[id] = false
            
            
    return PLUGIN_CONTINUE;
        }
        return 
    PLUGIN_CONTINUE
    Last edited by Power.; 29-12-2012 at 02:17 PM.
    Be or not to be. That's the question!

  2. Problama MultiJump !

    #2
    Membru - Gold Nova III WarGods | AbySs's Avatar
    Member since
    Sep 2010
    Location
    Constanta
    Posts
    1,388
    Mentioned
    1 Post(s)
    Achievements Visitor Messages Received 2 Visitor Messages Received 1 Visitor Messages Given 1 Total Posts 3 Total Posts 2 Total Posts 1 Days Since Last Visited 2 Days Since Last Visited 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Asta este pe parea lu' Max de datorii, si el va trebui sa actioneze cum crede de cuviinta cu privire la acest plugin. Eu totusi cred ca nu este o problema atat de grava ca tero nu poate folosi multijump pana apare primu zombie. Sincer sa fiu, nici macar nu am vazut pe cineva sa se planga de asta pana la topicul tau.


    If i would have this place and hell, i would rent this place and live in hell.

  3. Problama MultiJump !

    #3
    Membru - Silver Elite Master daniel_San's Avatar
    Member since
    Sep 2010
    Location
    Bucharest
    Posts
    431
    Mentioned
    0 Post(s)
    Achievements Visitor Messages Received 1 Total Posts 2 Total Posts 1 Days Since Last Visited 1 Days Registered 4 Days Registered 3 Days Registered 2 Days Registered 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    E buna ideea, dar acel if nu o sa returneze niciun adevarat, din cauza ca pana la infectie practic nu exista zombie. Ce ai propus tu e inversul defapt. Daca avem primul plugin, normal doar teroristii ar avea multijump pana la prima infectie(Oamenii sunt transferati la CT dupa infectie, pana atunci T sunt T, iar CT sunt CT). Daca luam in considerare is_user_zombie, pana la prima infectie nu o sa aiba nimeni multijump, deoarece nu o sa existe zombie. Oricum, pana la prima infectie, e mai bine ca teroristii sa nu aiba multijump, deoarece pot ajunge in locuri inaccesibile CT-ilor, de unde se va produce un dezechilibru.
    Imaginatia este singura noastra limita!

  4. Problama MultiJump !

    #4
    Administrator -=MaX=-'s Avatar
    Member since
    Sep 2010
    Location
    Alba Iulia
    Posts
    1,522
    Blog Entries
    1
    Mentioned
    2 Post(s)
    Achievements Visitor Messages Received 1 Visitor Messages Given 1 Total Posts 3 Total Posts 2 Total Posts 1 Days Registered 4 Days Registered 3 Days Registered 2
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Stiam de acest "bug" dar nu l-am luat in seama din cauza ca ar dezechilibra jocul. Acele secunde fara multijump sunt esentiale si e foarte bine ca se poate sa fie asa
    Iti multumesc pentru propunere

    PS: o sa te caut sa vb ceva cu tine Power.

  5. Problama MultiJump !

    #5
    Banned Tim3^sh0T's Avatar
    Member since
    Jan 2013
    Location
    Pitesti
    Posts
    732
    Last username
    Crazy Doctor WarGods | EcstasyX
    Mentioned
    0 Post(s)
    Achievements Total Posts 2 Total Posts 1 Days Since Last Visited 3 Days Since Last Visited 2 Days Since Last Visited 1 Days Registered 3 Days Registered 2 Days Registered 1
    am si eu probleme cu multijump , nu e asa grav de ex cand intru pe sv prima runda nu am si am a 2 a sau am a 2 a si nu am a 3 a si a 4 a ...

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