multijump

Šiame forume vartotojai gali prašyti jiems reikiamo plugino.
Forum rules
Šiame forume galite siūlyti idėjas ar prašyti jums reikalingų pluginų. Jei kas nors pradės jį kurti, tai pasirašys Jūsų sukurtoje temoje. Niekada nepykite, jei niekas neatsako į Jūsų prašymą. Gal tai tiesiog per sudėtinga, arba reikalauja per daug darbo.
Post Reply
erniukakas
Jau po truputį tampa savu
Posts: 108
Joined: 2016 Feb 07 20:39
Skype: taketokx13

multijump

Post by erniukakas »

Gal turit plugina toki,kad tik adminai galetu sokinet 2x auksciau? O ne vipai
Image

User avatar
popilas
Gana aktyvus vartotojas
Posts: 387
Joined: 2017 Apr 04 11:44
Location: Alytus

Re: multijump

Post by popilas »

Kodas: Select all

#include <amxmodx>#include <amxmisc>#include <engine> #define ADMINACCESS ADMIN_IMMUNITY new jumpnum[33] = 0new bool:dojump[33] = false public plugin_init(){    register_plugin("MultiJump","1.1","twistedeuphoria")    register_cvar("amx_maxjumps","1")    register_cvar("amx_mjadminonly","0")} 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(get_cvar_num("amx_mjadminonly") && (!access(id,ADMINACCESS))) 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(get_cvar_num("amx_mjadminonly") && (!access(id,ADMINACCESS))) 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}   
Attachments
multijump.sma
(1.48 KiB) Downloaded 567 times
PATYLĖK!!! Bent protingesnis atrodysi :))

erniukakas
Jau po truputį tampa savu
Posts: 108
Joined: 2016 Feb 07 20:39
Skype: taketokx13

Re: multijump

Post by erniukakas »

ikeliu vistiek visi gali sokinet..
Image

User avatar
popilas
Gana aktyvus vartotojas
Posts: 387
Joined: 2017 Apr 04 11:44
Location: Alytus

Re: multijump

Post by popilas »

erniukakas wrote:ikeliu vistiek visi gali sokinet..

o is sma i amxx padarai? :D

#define ADMINACCESS ADMIN_IMMUNITY
PATYLĖK!!! Bent protingesnis atrodysi :))

erniukakas
Jau po truputį tampa savu
Posts: 108
Joined: 2016 Feb 07 20:39
Skype: taketokx13

Re: multijump

Post by erniukakas »

zinoma. :)
Image

horde
Ar jis surinks 50 žinučių?
Posts: 37
Joined: 2017 Feb 28 11:49

Re: multijump

Post by horde »

Kodas: Select all

#include <amxmodx>#include <amxmisc>#include <engine> #define ADMINACCESS ADMIN_IMMUNITY new jumpnum[33];new bool:dojump[33]; public plugin_init(){    register_plugin("MultiJump","1.1","twistedeuphoria")    register_cvar("amx_maxjumps","1")    register_cvar("amx_mjadminonly","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_HANDLED;    if(get_cvar_num("amx_mjadminonly") && get_user_flags(id) & ADMINACCESS) {         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_HANDLED;    if(get_cvar_num("amx_mjadminonly") && get_user_flags(id) & ADMINACCESS) {        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}
Ark'xes // firefly.lt

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest