Raised This Month: $ Target: $400
 0% 

Solved Sometimes i get an error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Yeoo
Junior Member
Join Date: Nov 2020
Old 12-18-2020 , 08:25   Sometimes i get an error
Reply With Quote #1

Sometimes he tells me I've used the menu already, but I haven't used it. Why ?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <engine>
#include <csx>

new const PREFIX[] = { "!t[!gSPECIAL!t]" };

new 
bool:CanOpen[33]

public 
plugin_init()
{
    
register_plugin("My Menu""1.0""Uuy");
    
register_clcmd("say /special""ShowMenu");
    
register_clcmd("say_team /special""ShowMenu");
    
}

public 
client_putinserver(id)
{
    
CanOpen[id] = true
}

public 
ShowMenu(id)
{
    if ( 
cs_get_user_team id ) != CS_TEAM_CT )
    {
    
client_printc id"%s !nU have to be CT to use this Menu!n!"PREFIX);

    return 
PLUGIN_HANDLED;
    }

    if(!
CanOpen[id]) 
    {
    
client_printc id"%s !nU used the menu already!n!"PREFIX);

    return 
PLUGIN_HANDLED;
    }

    new 
menu menu_create("\rMenu""Meniu");

    
menu_additem(menu"\wDeagle \r[16.000] \y[\rEURO\y]"""0); // case 0
    
menu_additem(menu"\wAK \r[100.000] \y[\rEURO\y]"""0);

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
Meniu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback)

    switch(
item)
    {
        case 
0:
        {
            
client_cmd(id"deagle")
        }
        case 
1:
        {
            
client_cmd(id"Ak")
        }
    }

    
CanOpen[id] = false
    menu_destroy
(menu);
    return 
PLUGIN_HANDLED;
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    
    for (new 
0counti++)
    {
        if (
is_user_connected(players[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ fbidis\\ ansi\\ ansicpg1252\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ lang10241\\ f0\\ fs16 \n\\ par }
*/ 

Last edited by Yeoo; 12-23-2020 at 06:36.
Yeoo is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 12-18-2020 , 08:41   Re: Sometimes i get an error
Reply With Quote #2

If you press Exit in the menu you are not resetting the bool.

I would change the code below just for preference.

PHP Code:
public Meniu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback)

    switch(
item)
    {
        case 
0:
        {
            
client_cmd(id"deagle")
        }
        case 
1:
        {
            
client_cmd(id"Ak")
        }
    }

    
CanOpen[id] = false
    menu_destroy
(menu);
    return 
PLUGIN_HANDLED;



PHP Code:
public Meniu(idmenuitem)
{
        if(
item != MENU_EXIT)
        {
        new 
command[6], name[64], accesscallback;

            
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback)

            switch(
item)
            {
                case 
0:
                {
                        
client_cmd(id"deagle")
                }
                case 
1:
                {
                        
client_cmd(id"Ak")
                }
            }
    }

       
CanOpen[id] = false
        menu_destroy
(menu);
        return 
PLUGIN_HANDLED;

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
Yeoo
Junior Member
Join Date: Nov 2020
Old 12-18-2020 , 12:48   Re: Sometimes i get an error
Reply With Quote #3

Quote:
Originally Posted by iceeedr View Post
If you press Exit in the menu you are not resetting the bool.

I would change the code below just for preference.

PHP Code:
public Meniu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback)

    switch(
item)
    {
        case 
0:
        {
            
client_cmd(id"deagle")
        }
        case 
1:
        {
            
client_cmd(id"Ak")
        }
    }

    
CanOpen[id] = false
    menu_destroy
(menu);
    return 
PLUGIN_HANDLED;



PHP Code:
public Meniu(idmenuitem)
{
        if(
item != MENU_EXIT)
        {
        new 
command[6], name[64], accesscallback;

            
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback)

            switch(
item)
            {
                case 
0:
                {
                        
client_cmd(id"deagle")
                }
                case 
1:
                {
                        
client_cmd(id"Ak")
                }
            }
    }

       
CanOpen[id] = false
        menu_destroy
(menu);
        return 
PLUGIN_HANDLED;

Still same, if I close the menu it wont let me open again.
Yeoo is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 12-18-2020 , 12:56   Re: Sometimes i get an error
Reply With Quote #4

Quote:
Originally Posted by Yeoo View Post
Still same, if I close the menu it wont let me open again.


PHP Code:
public Meniu(idmenuitem)
{
        if(
item != MENU_EXIT)
        {
        new 
command[6], name[64], accesscallback;

            
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback)

            switch(
item)
            {
                case 
0:
                {
                        
client_cmd(id"deagle")
                }
                case 
1:
                {
                        
client_cmd(id"Ak")
                }
            }
    }

       
CanOpen[id] = false
        menu_destroy
(menu);
        return 
PLUGIN_HANDLED;



PHP Code:
public Meniu(idmenuitem)
{
        if(
item != MENU_EXIT)
        {
            new 
command[6], name[64], accesscallback;

                
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback)

                switch(
item)
                {
                    case 
0:
                    {
                            
client_cmd(id"deagle")
                            
CanOpen[id] = false
                            menu_destroy
(menu)
                    return 
PLUGIN_HANDLED
                    
}
                    case 
1:
                    {
                            
client_cmd(id"Ak")
                            
CanOpen[id] = false
                            menu_destroy
(menu)
                    return 
PLUGIN_HANDLED
                    
}
                }
        }

           
CanOpen[id] = true
        menu_destroy
(menu)
        return 
PLUGIN_HANDLED

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
Yeoo
Junior Member
Join Date: Nov 2020
Old 12-18-2020 , 15:44   Re: Sometimes i get an error
Reply With Quote #5

[QUOTE=iceeedr;2729230]

Ty, but can u tell me why after I use vmenu. /special menu doesn't work anymore, it tells me : U used /special already.

This is /special :
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <engine>
#include <csx>

new const PREFIX[] = { "!t[!gSPECIAL!t]" };

new 
bool:CanOpen[33]

public 
plugin_init()
{
    
register_plugin("My Menu""1.0""Uuy");
    
register_clcmd("say /special""ShowMenu");
    
register_clcmd("say_team /special""ShowMenu");
    
}

public 
client_putinserver(id)
{
    
CanOpen[id] = true
}

public 
ShowMenu(id)
{
    if ( 
cs_get_user_team id ) != CS_TEAM_CT )
    {
    
client_printc id"%s !nTrebuie sa fii !tCT !npentru a folosi acest !gmeniu!n!"PREFIX);

    return 
PLUGIN_HANDLED;
    }

    if(!
CanOpen[id]) 
    {
    
client_printc id"%s !nAi !gfolosit !tmeniul!n!"PREFIX);

    return 
PLUGIN_HANDLED;
    }

    new 
menu menu_create("\rMenu""Meniu");

    
menu_additem(menu"\wDeagle \r[16.000] \y[\rEURO\y]"""0); // case 0
    
menu_additem(menu"\wAK \r[100.000] \y[\rEURO\y]"""0);

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
Meniu(idmenuitem)
{
        if(
item != MENU_EXIT)
        {
            new 
command[6], name[64], accesscallback;

                
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback)

                switch(
item)
                {
                    case 
0:
                    {
                            
client_cmd(id"deagle")
                            
CanOpen[id] = false
                            menu_destroy
(menu)
                    return 
PLUGIN_HANDLED
                    
}
                    case 
1:
                    {
                            
client_cmd(id"ak")
                            
CanOpen[id] = false
                            menu_destroy
(menu)
                    return 
PLUGIN_HANDLED
                    
}
                 }
         }

           
CanOpen[id] = true
        menu_destroy
(menu)
        return 
PLUGIN_HANDLED
}    

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    
    for (new 
0counti++)
    {
        if (
is_user_connected(players[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ fbidis\\ ansi\\ ansicpg1252\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ lang10241\\ f0\\ fs16 \n\\ par }
*/ 
And this is /vmenu :

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <vault>
#include <fcs>

#define ADMIN_BBVIP ADMIN_LEVEL_H
#define INV 5.0      // Timp Invizibilitate
#define GODMODE 5.0   // Timp GodMode

// Define the Plugin Version
new const VERSION[] = { "1.0" };

// PREFIX
new const PREFIX[] = { "!g[BaseBuilder LeagueCS]" };

new const 
g_szKnifeBModel[] = "models/bb_Nacu/v_nac.mdl";
new const 
g_szKnifeWModel[] = "models/bb_Nacu/v_nac1.mdl";

new 
VipUsed[33];
new 
HasSpeed;

new 
bool:g_bHasKnifeB[33];
new 
bool:g_bHasKnifeW[33];

new 
Float:fast_speed 350.0;
new 
Float:normal_speed 250.0;
//new g_pVisiblity;
new mpd,/* mkb,*/ mhb;
new 
maxplayers;

public 
plugin_init()
{
    
register_plugin("BaseBuilder VIP"VERSION"eVo");
    
RegisterHam(Ham_Spawn"player""FwdHamSpawn_Post"1);
    
RegisterHam(Ham_Item_PreFrame"player""FwdPreFrame_Post"1);
    
RegisterHam(Ham_TakeDamage"player""FwdPlayerDamage");
    
//RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
    
    
register_event("CurWeapon","event_curweapon","be","1=1");
    
    
register_clcmd("say vmenu""cmdVmenu");
    
register_clcmd("say /vmenu""cmdVmenu");
    
register_clcmd("say_team vmenu""cmdVmenu");
    
register_clcmd("say_team /vmenu""cmdVmenu");
    
//g_pVisiblity = register_cvar( "km_invis", "200" ); // 255 = clearly visible
    
set_task(480.0"kmodmsg"0__"b");
    
    
mpd register_cvar("money_per_damage","3");
    
//mkb = register_cvar("money_kill_bonus","200");
    
mhb register_cvar("money_hs_bonus","500");
    
register_event("Damage","Damage","b");
    
maxplayers get_maxplayers();
    
    
    
// Ham TakeDamage
    
register_forwardFM_CmdStart"fw_CmdStart" );
    
//RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
}

public 
Damage(id)
{
    new 
weaponhitpointattacker get_user_attacker(id,weapon,hitpoint);
    if(
attacker<=maxplayers && is_user_alive(attacker) && attacker!=id)
        if (
get_user_flags(attacker) & ADMIN_ALL
    {
        new 
money read_data(2) * get_pcvar_num(mpd);
        if(
hitpoint==1money += get_pcvar_num(mhb);
        
cs_set_user_money(attacker,cs_get_user_money(attacker) + money);
    }
}

public 
FwdPlayerDamage(victiminflictorattackerFloat:damagedamagebits)
{
    if(
inflictor == attacker 
    
&& attacker != victim 
    
&& g_bHasKnifeBattacker 
    && 
is_user_alive(attacker
    && 
get_user_weapon(attacker) == CSW_KNIFE )
{
    
SetHamParamFloat(4damage 4.0);
}

}  
public 
plugin_precache()
{
precache_model(g_szKnifeBModel);
precache_model(g_szKnifeWModel);
}

public 
event_curweapon(id)
{
if(
g_bHasKnifeB[id] && read_data(2) == CSW_KNIFE)
{
set_pev(idpev_viewmodel2g_szKnifeBModel);
set_user_gravity(id0.5);
}

}


public 
FwdPreFrame_Post(id)
{
if(!
is_user_alive(id))
{
return 
PLUGIN_HANDLED;
}

if(!
HasSpeed)
{
return 
PLUGIN_HANDLED;
}

else if(
HasSpeed)
{
set_user_maxspeed(idfast_speed);
}

return 
PLUGIN_HANDLED;
}


public 
FwdHamSpawn_Post(id)
{
if (!
is_user_alive(id))
return 
PLUGIN_CONTINUE;

HasSpeed false;
VipUsed[id] = false;
g_bHasKnifeB[id] = false
g_bHasKnifeW[id] = false
set_user_maxspeed(idnormal_speed);
set_user_renderingid_000_);
return 
PLUGIN_CONTINUE;
}  

public 
cmdVmenu(id)
{
if(!(
get_user_flags(id) & ADMIN_BBVIP))
{
client_printc(id"%s !tDoar !gVIP-ul !tpoate folosi aceasta comanda!g."PREFIX);

return 
PLUGIN_HANDLED;
}

if(
VipUsed[id])
{
client_printc(id"%s !tAi folosit deja in aceasta runda !gMenuiul !tde !gVIP !g."PREFIX);

return 
PLUGIN_HANDLED;
}

switch(
cs_get_user_team(id))
{
case 
CS_TEAM_T:
    
ShowShopT(id);
    
case 
CS_TEAM_CT:
    
ShowShopCT(id);
    }
return 
PLUGIN_HANDLED;
}
public 
ShowShopCTid )
{
    static 
menu;
    
menu menu_create ("\yǁ \rBaseBuilder \yLeagueCS \yǁ^n\yǁ \rVIP Menu for Builders \yǁ","Menu_Handler")
    
menu_additem menu,"\rExtra \yItems","0")
    
menu_additem menu,"\rArme \yCSO","1")

    
menu_setprop menuMPROP_NUMBER_COLOR,"\y")
    
menu_setprop menuMPROP_EXITMEXIT_ALL )
    
    
menu_display idmenu)
    return 
0
}

public 
Menu_Handleridmenuitem )
{
    if(!
is_user_alive(id))
        return
    if ( 
item == MENU_EXIT )
    {
        
menu_destroy menu );
        return
    }

    new 
data ], szName 64 ];
    new 
accesscallback;
    
    
menu_item_getinfo menuitemaccessdatacharsmax data ), szNamecharsmax szName ), callback );

    new 
key str_to_num data );

    switch ( 
key )
    {
        case 
0ItemCTMenuid )
        case 
1VipCTMenuid )
    }
    
menu_destroy menu );
    return
}
public 
ItemCTMenu(id)
{
    new 
menu menu_create("\yǁ \rBaseBuilder \yLeagueCS \yǁ^n\yǁ \rExtra Items for Builders \yǁ""ItemCTMenu_handler");
    
    
menu_additem(menu"\y+200 \rHP""1"0);
    
menu_additem(menu"\ySpeed""2"0);
    
menu_display(idmenu);
}

public 
ItemCTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        
        
        case 
1:
        {
            
set_user_health(idget_user_health(id) + 200);
            
set_user_armor(idget_user_armor(id) + 0);
            
VipUsed[id] = true;
            
            
client_printc(id"%s !tAi primit !g200 HP!t."PREFIX);
        }
        
        case 
2:
        {
            
VipUsed[id] = true;
            
HasSpeed true;
            
            
set_user_maxspeed(idfast_speed);
            
            
client_printc(id"%s Ai primit !gViteza!t."PREFIX);
        }
        case 
3:
        {
            if(
fcs_get_user_credits(id) >= 10000)
            {
            
fcs_set_user_credits(idfcs_get_user_credits(id) + 1000)
            
client_printc(id"%s !tAi primit !g10000 Euro!t."PREFIX);
            }
        }
        
        
    }
    
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}
public 
VipCTMenu(id)
{
    new 
menu menu_create("\yǁ \rBaseBuilder \yLeagueCS \yǁ^n\yǁ \rExtra Weapons for Builders \yǁ""VipCTMenu_handler");
    
    
menu_additem(menu"\yFAMAS \rMagnum""1"0);
    
menu_additem(menu"\yM4A1 \rMagnum""2"0);
    
menu_display(idmenu);
}

public 
VipCTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        case 
1:
        {
            
client_cmd(id"FAMAS")
            
VipUsed[id] = true;
            
            
client_printc(id"%s !tAi primit !gFAMAS Gold!t."PREFIX);
        }
        case 
2:
        {
            
client_cmd(id"M4")
            
VipUsed[id] = true;
            
            
client_printc(id"%s !tAi primit !gM4A1 Magnum!t."PREFIX);
        }

    }
    
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
ShowShopTid )
{
    static 
menu;
    
menu menu_create ("\yǁ \rBaseBuilder \yLeagueCS \yǁ^n\yǁ \rVIP Menu for Zombies \yǁ","Menut_Handler")
    
menu_additem menu,"\rExtra \yItems","0")
    
menu_additem menu,"\rExtra \yKnifes","1")

    
menu_setprop menuMPROP_NUMBER_COLOR,"\y")
    
menu_setprop menuMPROP_EXITMEXIT_ALL )
    
    
menu_display idmenu)
    return 
0
}

public 
Menut_Handleridmenuitem )
{
    if(!
is_user_alive(id))
        return
    if ( 
item == MENU_EXIT )
    {
        
menu_destroy menu );
        return
    }

    new 
data ], szName 64 ];
    new 
accesscallback;
    
    
menu_item_getinfo menuitemaccessdatacharsmax data ), szNamecharsmax szName ), callback );

    new 
key str_to_num data );

    switch ( 
key )
    {
        case 
0ItemTMenuid )
        case 
1VipTMenuid )
    }
    
menu_destroy menu );
    return
}
public 
ItemTMenu(id)
{
    new 
menu menu_create("\yǁ \rBaseBuilder LeagueCS \yǁ^n\yǁ \rExtra Items for Zombies \yǁ""ItemTMenu_handler");
    
    
menu_additem(menu"\y+1000 \rHP""1"0);
    
menu_additem(menu"\ySpeed""2"0);
    
menu_display(idmenu);
}

public 
ItemTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        
        
        case 
1:
        {
            
set_user_health(idget_user_health(id) + 1000);
            
set_user_armor(idget_user_armor(id) + 0);
            
VipUsed[id] = true;
            
            
client_printc(id"%s !tAi primit !g1000 HP!t."PREFIX);
        }
        
        case 
2:
        {
            
VipUsed[id] = true;
            
HasSpeed true;
            
            
set_user_maxspeed(idfast_speed);
            
            
client_printc(id"%s Ai primit !gViteza!t."PREFIX);
            }
        }    
    
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}
public 
VipTMenu(id)
{
    new 
menu menu_create("\yǁ \rBaseBuilder \yLeagueCS \yǁ^n\yǁ \rExtra Knifes for Zombies \yǁ""VipTMenu_handler");
    
    
menu_additem(menu"\yCutit \rNebun""1"0);
    
menu_additem(menu"\ySabiuta""2"0);
    
menu_display(idmenu);
}

public 
VipTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
key str_to_num(data);
    
    switch(
key)
    {
        case 
1:
        {
            
set_user_health(idget_user_health(id) + 500);
            
set_user_armor(idget_user_armor(id) + 100);
            
set_user_maxspeed(idfast_speed);
            
HasSpeed true;
            
set_pev(idpev_viewmodel2"models/bb_Nacu/v_nac.mdl");
            
g_bHasKnifeB[id] = true;
            
            
VipUsed[id] = true;
            
            
client_printc(id"%s !tAi primit !gCutit Nebun!t."PREFIX);
        }
        case 
2:
        {
            
set_user_health(idget_user_health(id) + 700);
            
set_user_armor(idget_user_armor(id) + 0);
            
set_user_maxspeed(idfast_speed);
            
HasSpeed true;
            
set_pev(idpev_viewmodel2"models/bb_Nacu/v_nac1.mdl");
            
g_bHasKnifeB[id] = true;
            
            
VipUsed[id] = true;
            
            
client_printc(id"%s !tAi primit !gSabiuta!t."PREFIX);
        }

    }

    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}
public 
scoateinv(id)
{
    if(
is_user_connected(id))
    {
    
set_user_rendering idkRenderFxNone000kRenderTransTexture255 );
    
client_printc(id"%s !tNu mai esti !gInvizibil!t!"PREFIX); 
    }
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    
    for (new 
0counti++)
    {
        if (
is_user_connected(players[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
Yeoo is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 12-18-2020 , 15:59   Re: Sometimes i get an error
Reply With Quote #6

Because you used the menu, I don't see anything wrong.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
Yeoo
Junior Member
Join Date: Nov 2020
Old 12-20-2020 , 06:57   Re: Sometimes i get an error
Reply With Quote #7

Quote:
Originally Posted by iceeedr View Post
Because you used the menu, I don't see anything wrong.
-_- . Vmenu and Special menu are 2 different menus.

And I said after I use /vmenu, I cant use /special and I got the message : U used /special already.
Yeoo is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:33.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode