VIP Menu for Knife Server Request Items
#1
Hola, ¿alguien podría crearme un VIPMENU para mi Servidor de cuchillos?

Deberia tener:

Nombre de menú VIP LPC Knife VIP

1: 500 gravedad
2: pasos silenciosos
3: granada de humo
4: Multijump doble (2xjump)

So when you use it from /vm or /vipmenu and u chose one then it should be activated. And it should work auto when you are dead that u have automatic it again.

Like Example: Use Gravity. -- Activated -- I am dead -- Respawn or Next Round --- Auto Gravity active.

It would be really cool. Thanks for first.

[english version]

Hello, could anyone create an VIPMENU for me for my Knife Server ?

IT should have:

Vip Menu Name LPC Knife VIP

1: 500 Gravity
2: silent footsteps
3: Smoke Grenade
4: Double Multijump (2xjump)

So when you use it from /vm or /vipmenu and u chose one then it should be activated. And it should work auto when you are dead that u have automatic it again.

Like Example: Use Gravity. -- Activated -- I am dead -- Respawn or Next Round --- Auto Gravity active.

It would be really cool. Thanks for first.
Responder
#2
https://amxmodx-es.com/Thread-ZP-info-pl...#pid179504
Steam
Responder
#3
i allready asked there but there is no one who can help. I would use it in Espanyol Language, no problem.
Responder
#4
I made you the part of the store, see if it's what you're looking for.
I'm sorry but my English is very bad, I had to use a translator.

Código PHP:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>

enum tienda_caracteristicas
{
    
NOMBRE[75],
    
ITEM_LIMIT,
    
ITEM_COST
}
enum _:ITEMS
{
    
GRAVITY,
    
FOOTSTEPS,
    
SMOKEGRENADE,
    
DOUBLEJUMP
};
new const 
SHOP_ITEMS[][tienda_caracteristicas] = 

    { 
"Gravity"18500},
    { 
"Footsteps"19500},
    { 
"SmokeGrenade"12000},
    { 
"Double Jump"110000}
}
/* LIMIT ITEMS */
new Limite[33][ITEMS]

/* MAX PLAYERS */
new g_maxplayers;

/* DOUBLE JUMP */
new g_maxJumps 2
new jumpnum[33] = 0
new bool:dojump[33] = false
new g_multijumps[33] = 0

new const szPrefijo[] = "^4[AMXX-ES]^1"

public plugin_init()
{
    
register_plugin("Shop + Doble Salto""1.0""Cristian");
    
register_clcmd("say /vm""cmdShop");
    
register_clcmd("say /vipmenu""cmdShop");
    
    
register_forward(FM_PlayerPreThink"FW_PlayerPreThink")
    
register_forward(FM_PlayerPostThink"FW_PlayerPostThink")

    
register_event("HLTV""event_round_start""a""1=0""2=0");
    
    
RegisterHam(Ham_Spawn,"player","RoundStart",1)
    
    
g_maxplayers get_maxplayers();
}
public 
RoundStart(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id))
    {
        for(new 
ite 0ite ITEMSite++)
        {
            
Limite[id][ite] = 0
            dojump
[id] = false
            jumpnum
[id] = false
            g_multijumps
[id] = false
        
}
    }      
}
public 
event_round_start()
{    
        for (new 
1g_maxplayersi++)
    {
        if (
is_user_alive(i))
        {
            for (new 
ite 0ite ITEMSite++)
            
Limite[i][ite] = 0
            dojump
[i] = false
            jumpnum
[i] = false
            g_multijumps
[i] = false
        
}
       }
}
public 
cmdShop(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H// FLAGS "T" IN USER.INI
    
{
        if(
is_user_alive(id))
        {
        
OpenShop(id)
        }
        else
        {
        
ChatColor(id"%s You must be alive to be able to open the store."szPrefijo)
        }
    }
    else
    {
    
ChatColor(id"%s To open the store you must be ^4VIP^1."szPrefijo)
    }
}    
public 
OpenShop(id)
{
    static 
Menusztext[60], i;
    
Menu menu_create("\r[AMXX-ES] \ySTORE FOR \dV.I.P.""OpenShop_Handler");
    
    for(
0sizeof(SHOP_ITEMS); i++)
    {
        if(
Limite[id][i] == 1)
        
format(sztextcharsmax(sztext), "\d%s \r[BOUGHT]"SHOP_ITEMS[i][NOMBRE]);
        
        else
        
format(sztextcharsmax(sztext), "\w%s \y$%d"SHOP_ITEMS[i][NOMBRE], SHOP_ITEMS[i][ITEM_COST]);
        
menu_additem(Menusztext);
    }
    
menu_setprop(MenuMPROP_EXITNAME"Exit Store");
    
menu_display(idMenu);
    
    return 
PLUGIN_HANDLED;
}
public 
OpenShop_Handler(idMenuItem)
{
    if(
Item == MENU_EXIT || !is_user_alive(id))
    {
        
menu_destroy(Menu);
        return;
    }
    static 
cost;
    
cost SHOP_ITEMS[Item][ITEM_COST];
    
    if(
Limite[id][Item] == SHOP_ITEMS[Item][ITEM_LIMIT])
    {
        
ChatColor(id"%s Only this item can be purchased once per round."szPrefijo)
        
OpenShop(id)
        return;
    }
    if(
cs_get_user_money(id) < cost)
    {
        
ChatColor(id"%s You do not have enough money to buy this item."szPrefijo)
        return;
    }    
    
Buy_Items(idItemcost);
    
menu_destroy(Menu)
    return;
}
Buy_Items(idItemcost)
{
    switch(
Item)
    {
        case 
GRAVITY :
        {
                
set_user_gravity(idFloat0.4)
                
set_task(40.0"Remove_Gravity"id)

                
ChatColor(id"%s You have purchased the item ^4GRAVITY^1.",szPrefijo)
        }
        case 
FOOTSTEPS :
        {
                
set_user_footsteps(id0)
                
set_task(40.0"Remove_Footspteps"id)
                
                
ChatColor(id"%s You have purchased the item ^4FOOTSTEPS^1."szPrefijo)
        }
        case 
SMOKEGRENADE :
        {
                
give_item(id"weapon_smokegrenade");
                
                
ChatColor(id"%s You have purchased the item  ^4SMOKEGRENADE^1."szPrefijo)
        }
        case 
DOUBLEJUMP :
        {
                
Double_Jump(id)
                
set_task(40.0"Remove_DoubleJump"id)
                
                
ChatColor(id"%s You have purchased the item  ^4DOUBLEJUMP^1."szPrefijo)
        }
    }
    
Limite[id][Item]++
    
cs_set_user_money(idcs_get_user_money(id) - cost);
}
public 
FW_PlayerPreThink(id)
{
    if(!
is_user_alive(id) && g_multijumps[id]) 
    return 
PLUGIN_CONTINUE
    
    
new nbut pev(id,pev_button);
    new 
obut pev(id,pev_oldbuttons);
    if((
nbut IN_JUMP) && !(pev(id,pev_flags) & FL_ONGROUND) && !(obut IN_JUMP))
    {
        if(
jumpnum[id] < g_multijumps[id])
        {
            
dojump[id] = true;
            
jumpnum[id]++;
            return 
PLUGIN_CONTINUE
        
}
    }
    if((
nbut IN_JUMP) && (pev(id,pev_flags) & FL_ONGROUND))
    {
        
jumpnum[id] = 0;
        return 
PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}
public 
FW_PlayerPostThink(id)
{
    if(!
is_user_alive(id) || !g_multijumps[id]) 
    return 
PLUGIN_CONTINUE
    
    
if(dojump[id] == true)
    {
        new 
Float:velocity[3];
        
pev(id,pev_velocity,velocity);
        
velocity[2] = random_float(265.0,285.0);
        
set_pev(id,pev_velocity,velocity)
        
dojump[id] = false
        
return PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}    
public 
Double_Jump(id)
{
    if (
g_multijumps[id] < g_maxJumps || !g_maxJumps)
    {
        
g_multijumps[id]++;    
    
        
set_hudmessage(0255255, -1.00.310.15.00.1)
        
show_hudmessage(id"The maximum number of consecutive jumps is 2 times.")
    }
}
public 
Remove_DoubleJump(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id)) 
    return;
    
    
g_multijumps[id] = false;
    
ChatColor(id"%s You ran out of the item ^4DOUBLEJUMP^1."szPrefijo)
}
public 
Remove_Footspteps(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id)) 
    return;
    
    
set_user_footsteps(id1)
    
ChatColor(id"%s You ran out of the item ^4FOOTSPTEPS^1."szPrefijo)
}    
public 
Remove_Gravity(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id))
    return;
    
    
set_user_gravity(idFloat1.0)
    
ChatColor(id"%s You ran out of the item ^4GRAVITY^1."szPrefijo)
}
stock ChatColorid, const input[ ], any:... ) 
{
    static 
szMsg191 ], msgSayText;
    
    if( !
msgSayText msgSayText get_user_msgid"SayText" );
    
    
vformatszMsg190input);
    
    
replace_allszMsg190"!g""^4" );
    
replace_allszMsg190"!y""^1" );
    
replace_allszMsg190"!team""^3" );
    
    
message_beginid MSG_ONE_UNRELIABLE MSG_BROADCASTmsgSayText, .player id );
    
write_byteid id 33 );
    
write_stringszMsg );
    
message_end( );

Steam
Responder
#5
(05/05/2018, 06:07 PM)Pablo_1998 escribió: I made you the part of the store, see if it's what you're looking for.
I'm sorry but my English is very bad, I had to use a translator.

Código PHP:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>

enum tienda_caracteristicas
{
    
NOMBRE[75],
    
ITEM_LIMIT,
    
ITEM_COST
}
enum _:ITEMS
{
    
GRAVITY,
    
FOOTSTEPS,
    
SMOKEGRENADE,
    
DOUBLEJUMP
};
new const 
SHOP_ITEMS[][tienda_caracteristicas] = 

    { 
"Gravity"18500},
    { 
"Footsteps"19500},
    { 
"SmokeGrenade"12000},
    { 
"Double Jump"110000}
}
/* LIMIT ITEMS */
new Limite[33][ITEMS]

/* MAX PLAYERS */
new g_maxplayers;

/* DOUBLE JUMP */
new g_maxJumps 2
new jumpnum[33] = 0
new bool:dojump[33] = false
new g_multijumps[33] = 0

new const szPrefijo[] = "^4[AMXX-ES]^1"

public plugin_init()
{
    
register_plugin("Shop + Doble Salto""1.0""Cristian");
    
register_clcmd("say /vm""cmdShop");
    
register_clcmd("say /vipmenu""cmdShop");
    
    
register_forward(FM_PlayerPreThink"FW_PlayerPreThink")
    
register_forward(FM_PlayerPostThink"FW_PlayerPostThink")

    
register_event("HLTV""event_round_start""a""1=0""2=0");
    
    
RegisterHam(Ham_Spawn,"player","RoundStart",1)
    
    
g_maxplayers get_maxplayers();
}
public 
RoundStart(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id))
    {
        for(new 
ite 0ite ITEMSite++)
        {
            
Limite[id][ite] = 0
            dojump
[id] = false
            jumpnum
[id] = false
            g_multijumps
[id] = false
        
}
    }      
}
public 
event_round_start()
{    
        for (new 
1g_maxplayersi++)
    {
        if (
is_user_alive(i))
        {
            for (new 
ite 0ite ITEMSite++)
            
Limite[i][ite] = 0
            dojump
[i] = false
            jumpnum
[i] = false
            g_multijumps
[i] = false
        
}
       }
}
public 
cmdShop(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H// FLAGS "T" IN USER.INI
    
{
        if(
is_user_alive(id))
        {
        
OpenShop(id)
        }
        else
        {
        
ChatColor(id"%s You must be alive to be able to open the store."szPrefijo)
        }
    }
    else
    {
    
ChatColor(id"%s To open the store you must be ^4VIP^1."szPrefijo)
    }
}    
public 
OpenShop(id)
{
    static 
Menusztext[60], i;
    
Menu menu_create("\r[AMXX-ES] \ySTORE FOR \dV.I.P.""OpenShop_Handler");
    
    for(
0sizeof(SHOP_ITEMS); i++)
    {
        if(
Limite[id][i] == 1)
        
format(sztextcharsmax(sztext), "\d%s \r[BOUGHT]"SHOP_ITEMS[i][NOMBRE]);
        
        else
        
format(sztextcharsmax(sztext), "\w%s \y$%d"SHOP_ITEMS[i][NOMBRE], SHOP_ITEMS[i][ITEM_COST]);
        
menu_additem(Menusztext);
    }
    
menu_setprop(MenuMPROP_EXITNAME"Exit Store");
    
menu_display(idMenu);
    
    return 
PLUGIN_HANDLED;
}
public 
OpenShop_Handler(idMenuItem)
{
    if(
Item == MENU_EXIT || !is_user_alive(id))
    {
        
menu_destroy(Menu);
        return;
    }
    static 
cost;
    
cost SHOP_ITEMS[Item][ITEM_COST];
    
    if(
Limite[id][Item] == SHOP_ITEMS[Item][ITEM_LIMIT])
    {
        
ChatColor(id"%s Only this item can be purchased once per round."szPrefijo)
        
OpenShop(id)
        return;
    }
    if(
cs_get_user_money(id) < cost)
    {
        
ChatColor(id"%s You do not have enough money to buy this item."szPrefijo)
        return;
    }    
    
Buy_Items(idItemcost);
    
menu_destroy(Menu)
    return;
}
Buy_Items(idItemcost)
{
    switch(
Item)
    {
        case 
GRAVITY :
        {
                
set_user_gravity(idFloat0.4)
                
set_task(40.0"Remove_Gravity"id)

                
ChatColor(id"%s You have purchased the item ^4GRAVITY^1.",szPrefijo)
        }
        case 
FOOTSTEPS :
        {
                
set_user_footsteps(id0)
                
set_task(40.0"Remove_Footspteps"id)
                
                
ChatColor(id"%s You have purchased the item ^4FOOTSTEPS^1."szPrefijo)
        }
        case 
SMOKEGRENADE :
        {
                
give_item(id"weapon_smokegrenade");
                
                
ChatColor(id"%s You have purchased the item  ^4SMOKEGRENADE^1."szPrefijo)
        }
        case 
DOUBLEJUMP :
        {
                
Double_Jump(id)
                
set_task(40.0"Remove_DoubleJump"id)
                
                
ChatColor(id"%s You have purchased the item  ^4DOUBLEJUMP^1."szPrefijo)
        }
    }
    
Limite[id][Item]++
    
cs_set_user_money(idcs_get_user_money(id) - cost);
}
public 
FW_PlayerPreThink(id)
{
    if(!
is_user_alive(id) && g_multijumps[id]) 
    return 
PLUGIN_CONTINUE
    
    
new nbut pev(id,pev_button);
    new 
obut pev(id,pev_oldbuttons);
    if((
nbut IN_JUMP) && !(pev(id,pev_flags) & FL_ONGROUND) && !(obut IN_JUMP))
    {
        if(
jumpnum[id] < g_multijumps[id])
        {
            
dojump[id] = true;
            
jumpnum[id]++;
            return 
PLUGIN_CONTINUE
        
}
    }
    if((
nbut IN_JUMP) && (pev(id,pev_flags) & FL_ONGROUND))
    {
        
jumpnum[id] = 0;
        return 
PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}
public 
FW_PlayerPostThink(id)
{
    if(!
is_user_alive(id) || !g_multijumps[id]) 
    return 
PLUGIN_CONTINUE
    
    
if(dojump[id] == true)
    {
        new 
Float:velocity[3];
        
pev(id,pev_velocity,velocity);
        
velocity[2] = random_float(265.0,285.0);
        
set_pev(id,pev_velocity,velocity)
        
dojump[id] = false
        
return PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}    
public 
Double_Jump(id)
{
    if (
g_multijumps[id] < g_maxJumps || !g_maxJumps)
    {
        
g_multijumps[id]++;    
    
        
set_hudmessage(0255255, -1.00.310.15.00.1)
        
show_hudmessage(id"The maximum number of consecutive jumps is 2 times.")
    }
}
public 
Remove_DoubleJump(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id)) 
    return;
    
    
g_multijumps[id] = false;
    
ChatColor(id"%s You ran out of the item ^4DOUBLEJUMP^1."szPrefijo)
}
public 
Remove_Footspteps(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id)) 
    return;
    
    
set_user_footsteps(id1)
    
ChatColor(id"%s You ran out of the item ^4FOOTSPTEPS^1."szPrefijo)
}    
public 
Remove_Gravity(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id))
    return;
    
    
set_user_gravity(idFloat1.0)
    
ChatColor(id"%s You ran out of the item ^4GRAVITY^1."szPrefijo)
}
stock ChatColorid, const input[ ], any:... ) 
{
    static 
szMsg191 ], msgSayText;
    
    if( !
msgSayText msgSayText get_user_msgid"SayText" );
    
    
vformatszMsg190input);
    
    
replace_allszMsg190"!g""^4" );
    
replace_allszMsg190"!y""^1" );
    
replace_allszMsg190"!team""^3" );
    
    
message_beginid MSG_ONE_UNRELIABLE MSG_BROADCASTmsgSayText, .player id );
    
write_byteid id 33 );
    
write_stringszMsg );
    
message_end( );


Podrías probar usando arrayset para no crear tantos loops con la variable Limite

Responder
#6
Google Translator:

Hay dos problemas
1: Paso a Paso no funciona.
2: solo debería poder seleccionar un artículo por ronda. Si quieres usar algo nuevo, lo viejo debe ser eliminado.

Es eso posible?
____________________________________________________________________

English:

There are two problems.
1: Footsteps dont work.
2: You should only be able to select one item per round. If you want to use something new, the old should be removed.

Is that possible?
Responder
#7
Código PHP:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>

enum tienda_caracteristicas
{
    
NOMBRE[75],
    
ITEM_LIMIT,
    
ITEM_COST
}
enum _:ITEMS
{
    
GRAVITY,
    
FOOTSTEPS,
    
SMOKEGRENADE,
    
DOUBLEJUMP
};
new const 
SHOP_ITEMS[][tienda_caracteristicas] = 

    { 
"Gravity"18500},
    { 
"Footsteps"19500},
    { 
"SmokeGrenade"12000},
    { 
"Double Jump"110000}
}
/* LIMIT ITEMS */
new Limite[33][ITEMS]

/* MAX PLAYERS */
new g_maxplayers;

/* DOUBLE JUMP */
new g_maxJumps 2
new jumpnum[33] = 0
new bool:dojump[33] = false
new g_multijumps[33] = 0

new const szPrefijo[] = "^4[AMXX-ES]^1"

public plugin_init()
{
    
register_plugin("Shop + Doble Salto""1.0""Cristian");
    
register_clcmd("say /vm""cmdShop");
    
register_clcmd("say /vipmenu""cmdShop");
    
    
register_forward(FM_PlayerPreThink"FW_PlayerPreThink")
    
register_forward(FM_PlayerPostThink"FW_PlayerPostThink")

    
register_event("HLTV""event_round_start""a""1=0""2=0");
    
    
RegisterHam(Ham_Spawn,"player","RoundStart",1)
    
    
g_maxplayers get_maxplayers();
}
public 
RoundStart(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id))
    {
        for(new 
ite 0ite ITEMSite++)
        {
            
Limite[id][ite] = 0
            dojump
[id] = false
            jumpnum
[id] = false
            g_multijumps
[id] = false
        
}
    }      
}
public 
event_round_start()
{    
        for (new 
1g_maxplayersi++)
    {
        if (
is_user_alive(i))
        {
            for (new 
ite 0ite ITEMSite++)
            
Limite[i][ite] = 0
            dojump
[i] = false
            jumpnum
[i] = false
            g_multijumps
[i] = false
        
}
       }
}
public 
cmdShop(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H// FLAGS "T" IN USER.INI
    
{
        if(
is_user_alive(id))
        {
        
OpenShop(id)
        }
        else
        {
        
ChatColor(id"%s You must be alive to be able to open the store."szPrefijo)
        }
    }
    else
    {
    
ChatColor(id"%s To open the store you must be ^4VIP^1."szPrefijo)
    }
}    
public 
OpenShop(id)
{
    static 
Menusztext[60], i;
    
Menu menu_create("\r[AMXX-ES] \ySTORE FOR \dV.I.P.""OpenShop_Handler");
    
    for(
0sizeof(SHOP_ITEMS); i++)
    {
        if(
Limite[id][i] == 1)
        
format(sztextcharsmax(sztext), "\d%s \r[BOUGHT]"SHOP_ITEMS[i][NOMBRE]);
        
        else
        
format(sztextcharsmax(sztext), "\w%s \y$%d"SHOP_ITEMS[i][NOMBRE], SHOP_ITEMS[i][ITEM_COST]);
        
menu_additem(Menusztext);
    }
    
menu_setprop(MenuMPROP_EXITNAME"Exit Store");
    
menu_display(idMenu);
    
    return 
PLUGIN_HANDLED;
}
public 
OpenShop_Handler(idMenuItem)
{
    if(
Item == MENU_EXIT || !is_user_alive(id))
    {
        
menu_destroy(Menu);
        return;
    }
    static 
cost;
    
cost SHOP_ITEMS[Item][ITEM_COST];
    
    if(
Limite[id][Item] == SHOP_ITEMS[Item][ITEM_LIMIT])
    {
        
ChatColor(id"%s Only this item can be purchased once per round."szPrefijo)
        
OpenShop(id)
        return;
    }
    if(
cs_get_user_money(id) < cost)
    {
        
ChatColor(id"%s You do not have enough money to buy this item."szPrefijo)
        return;
    }    
    
Buy_Items(idItemcost);
    
menu_destroy(Menu)
    return;
}
Buy_Items(idItemcost)
{
    switch(
Item)
    {
        case 
GRAVITY :
        {
                
set_user_gravity(idFloat0.4)
                
set_task(40.0"Remove_Gravity"id)

                
ChatColor(id"%s You have purchased the item ^4GRAVITY^1.",szPrefijo)
        }
        case 
FOOTSTEPS :
        {
                
set_user_footsteps(id1)
                
set_task(40.0"Remove_Footspteps"id)
                
                
ChatColor(id"%s You have purchased the item ^4FOOTSTEPS^1."szPrefijo)
        }
        case 
SMOKEGRENADE :
        {
                
give_item(id"weapon_smokegrenade");
                
                
ChatColor(id"%s You have purchased the item  ^4SMOKEGRENADE^1."szPrefijo)
        }
        case 
DOUBLEJUMP :
        {
                
Double_Jump(id)
                
set_task(40.0"Remove_DoubleJump"id)
                
                
ChatColor(id"%s You have purchased the item  ^4DOUBLEJUMP^1."szPrefijo)
        }
    }
    
Limite[id][Item]++
    
cs_set_user_money(idcs_get_user_money(id) - cost);
}
public 
FW_PlayerPreThink(id)
{
    if(!
is_user_alive(id) && g_multijumps[id]) 
    return 
PLUGIN_CONTINUE
    
    
new nbut pev(id,pev_button);
    new 
obut pev(id,pev_oldbuttons);
    if((
nbut IN_JUMP) && !(pev(id,pev_flags) & FL_ONGROUND) && !(obut IN_JUMP))
    {
        if(
jumpnum[id] < g_multijumps[id])
        {
            
dojump[id] = true;
            
jumpnum[id]++;
            return 
PLUGIN_CONTINUE
        
}
    }
    if((
nbut IN_JUMP) && (pev(id,pev_flags) & FL_ONGROUND))
    {
        
jumpnum[id] = 0;
        return 
PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}
public 
FW_PlayerPostThink(id)
{
    if(!
is_user_alive(id) || !g_multijumps[id]) 
    return 
PLUGIN_CONTINUE
    
    
if(dojump[id] == true)
    {
        new 
Float:velocity[3];
        
pev(id,pev_velocity,velocity);
        
velocity[2] = random_float(265.0,285.0);
        
set_pev(id,pev_velocity,velocity)
        
dojump[id] = false
        
return PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}    
public 
Double_Jump(id)
{
    if (
g_multijumps[id] < g_maxJumps || !g_maxJumps)
    {
        
g_multijumps[id]++;    
    
        
set_hudmessage(0255255, -1.00.310.15.00.1)
        
show_hudmessage(id"The maximum number of consecutive jumps is 2 times.")
    }
}
public 
Remove_DoubleJump(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id)) 
    return;
    
    
g_multijumps[id] = false;
    
ChatColor(id"%s You ran out of the item ^4DOUBLEJUMP^1."szPrefijo)
}
public 
Remove_Footspteps(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id)) 
    return;
    
    
set_user_footsteps(id0)
    
ChatColor(id"%s You ran out of the item ^4FOOTSPTEPS^1."szPrefijo)
}    
public 
Remove_Gravity(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id))
    return;
    
    
set_user_gravity(idFloat1.0)
    
ChatColor(id"%s You ran out of the item ^4GRAVITY^1."szPrefijo)
}
stock ChatColorid, const input[ ], any:... ) 
{
    static 
szMsg191 ], msgSayText;
    
    if( !
msgSayText msgSayText get_user_msgid"SayText" );
    
    
vformatszMsg190input);
    
    
replace_allszMsg190"!g""^4" );
    
replace_allszMsg190"!y""^1" );
    
replace_allszMsg190"!team""^3" );
    
    
message_beginid MSG_ONE_UNRELIABLE MSG_BROADCASTmsgSayText, .player id );
    
write_byteid id 33 );
    
write_stringszMsg );
    
message_end( );


Only one item of each can be purchased per round. That is, if I buy the "SG" pump, in the same round I will not be able to buy it again. I have to wait for the next round to buy it.
Steam
Responder
#8
Yes but the problem is that when i open /vm then i can use in one round all items. Thats bad. I thought that a vip can buy only one thing per round from the vipmenu list.

When i am buying all items there, gravity, foot, sg, double jump in one round and i am dead, then i have all items from it . Thats bad and a Problem. Gran sonrisa

You should be able to buy only one thing per round.

I will try to explain what i mean exactly:

First Round - Buy Gravity - Round ended - Next Round - Auto Gravity -
First Round - Buy Gravity - Round ended - Next Round - Choose Multijump - Gravity should be disabled then.

So i mean to use only one thing from vipmenu. Gran sonrisa I hope you understand what i mean. But Thx for first for your Plugin Help.
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)