Zplague
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Zplague Entrar

Seu portal de Zombie Plague no Brasil


description[Dúvida] - SMA Empty[Dúvida] - SMA

more_horiz
Pessoal achei um plugin que bloqueia o menu B, porém ele tambem bloqueia as prefixes, eu fui tentar concertar e não funcionou.
Deram 2 erros, primeiro:
http://prntscr.com/22gm94

Logo após eu removi o "maxplayers" e deu este outro erro:
http://prntscr.com/22gmew

Alguem pode ajudar?
Sma original:

Código:

/* Script generated by Pawn Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <colorchat>

#define PLUGIN "Block Command"
#define AUTHOR "Drogocop"
#define VERSION "1.1"

#include "BlockCommand_inc\menu.inc"

new szPrefix[19] = "[BC]"; //Prefix or TAG for all client_chat mensagges

public plugin_init()
{
 register_plugin(PLUGIN, VERSION, AUTHOR)

 register_cvar("bc_blockbuy", "1"); // All buys Blocked
 register_cvar("bc_blockradio", "1"); // Block Radio commands
 register_cvar("bc_blockchooseteam", "1"); // Block Choose Team
 register_clcmd("bc_blockchat", "cmd_chatmute", -1, "<name>") // Muted Chat of a player.
register_clcmd("bc_blockchatmenu", "menu_chatmute", -1, "chat mute menu") // Open Chat Mute Menu
 register_concmd("say", "say_handle")
 register_concmd("say_team", "say_handle")
 register_dictionary ( "blockcommand.txt" );
 maxplayers = get_maxplayers() + 1
 SayText = get_user_msgid("SayText")
 register_cvar("bc_prefix", szPrefix);
 
//Block  All Buy and Buy Binds
 if (get_cvar_num("bc_blockbuy"))
 {
 register_clcmd("buy", "bblocked");
 register_clcmd("cl_autobuy", "bblocked");
 register_clcmd("cl_rebuy", "bblocked");
 register_clcmd("cl_setautobuy", "bblocked");
 register_clcmd("cl_setrebuy", "bblocked");
 
register_clcmd("glock", "bblocked");
 register_clcmd("usp", "bblocked");
 register_clcmd("p228", "bblocked");
 register_clcmd("deagle", "bblocked");
 register_clcmd("elites", "bblocked");
 register_clcmd("fn57", "bblocked");
 
register_clcmd("mp5", "bblocked");
 register_clcmd("smg", "bblocked");
 register_clcmd("mac10", "bblocked");
 register_clcmd("tmp", "bblocked");
 register_clcmd("ump45", "bblocked");
 register_clcmd("p90", "bblocked");
 
register_clcmd("m3", "bblocked");
 register_clcmd("xm1014", "bblocked");
 
register_clcmd("famas", "bblocked");
 register_clcmd("m4a1", "bblocked");
 register_clcmd("ak47", "bblocked");
 register_clcmd("sg552", "bblocked");
 register_clcmd("galil", "bblocked");
register_clcmd("aug", "bblocked");
 
register_clcmd("scout", "bblocked");
 register_clcmd("awp", "bblocked");
 register_clcmd("sg550", "bblocked");
 register_clcmd("g3sg1", "bblocked");
 
register_clcmd("m249", "bblocked");
 
register_clcmd("hegren", "bblocked");
 register_clcmd("flash", "bblocked");
 register_clcmd("sgren", "bblocked");
 register_clcmd("vest", "bblocked");
 register_clcmd("vesthelm", "bblocked");
 register_clcmd("shield", "bblocked");
 register_clcmd("buyammo1", "bblocked");
 register_clcmd("buyammo1", "bblocked");
 register_clcmd("buyequip", "bblocked");
 }
 
//Block Radio Commands
 if (get_cvar_num("bc_blockradio"))
 {
 register_clcmd("radio1", "rblocked");
 register_clcmd("radio2", "rblocked");
 register_clcmd("radio3", "rblocked");
 register_clcmd("coverme", "rblocked")
 register_clcmd("takepoint", "rblocked")
 register_clcmd("holdpos", "rblocked")
 register_clcmd("regroup", "rblocked")
 register_clcmd("followme", "rblocked")
 register_clcmd("takingfire", "rblocked")
 register_clcmd("go", "rblocked")
 register_clcmd("fallback", "rblocked")
 register_clcmd("sticktog", "rblocked")
 register_clcmd("getinpos", "rblocked")
 register_clcmd("stormfront", "rblocked")
 register_clcmd("report", "rblocked")
 register_clcmd("roger", "rblocked")
 register_clcmd("enemyspot", "rblocked")
 register_clcmd("needbackup", "rblocked")
 register_clcmd("sectorclear", "rblocked")
 register_clcmd("inposition", "rblocked")
 register_clcmd("reportingin", "rblocked")
 register_clcmd("getout", "rblocked")
 register_clcmd("negative", "rblocked")
 register_clcmd("enemydown", "rblocked")
 }
 
//Block Choose Team
 if (get_cvar_num("bc_blockchooseteam"))
 {
 register_clcmd("chooseteam", "ctblocked");
 }
 
//Block retry
 if (get_cvar_num("bc_blockretry"))
 {
 register_clcmd("retry", "blockr");
 }
}

public bblocked(id)
 {
 ColorChat(id,GREEN, "%L", id, "BLOCK_BUY", szPrefix);
 return PLUGIN_HANDLED
 }
 
public rblocked(id)
 {
 ColorChat(id,GREEN, "%L", id, "BLOCK_RADIO", szPrefix);
 return PLUGIN_HANDLED
 }
 
public ctblocked(id)
 {
 ColorChat(id,GREEN, "%L", id, "BLOCK_CHOOSETEAM", szPrefix);
 return PLUGIN_HANDLED
 }
Sma editada cheia de fail:

Código:

/* Script generated by Pawn Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <colorchat>

#define PLUGIN "Block Command"
#define AUTHOR "Drogocop"
#define VERSION "1.1"

public plugin_init()
{
 register_plugin(PLUGIN, VERSION, AUTHOR)

 register_cvar("bc_blockbuy", "1"); // All buys Blocked
 register_cvar("bc_blockradio", "1"); // Block Radio commands
 register_cvar("bc_blockchooseteam", "1"); // Block Choose Team
 register_clcmd("bc_blockchat", "cmd_chatmute", -1, "<name>") // Muted Chat of a player.
register_clcmd("bc_blockchatmenu", "menu_chatmute", -1, "chat mute menu") // Open Chat Mute Menu
 register_concmd("say", "say_handle")
 register_concmd("say_team", "say_handle")
 register_dictionary ( "blockcommand.txt" );
 
//Block  All Buy and Buy Binds
 if (get_cvar_num("bc_blockbuy"))
 {
 register_clcmd("buy", "bblocked");
 register_clcmd("cl_autobuy", "bblocked");
 register_clcmd("cl_rebuy", "bblocked");
 register_clcmd("cl_setautobuy", "bblocked");
 register_clcmd("cl_setrebuy", "bblocked");
 
register_clcmd("glock", "bblocked");
 register_clcmd("usp", "bblocked");
 register_clcmd("p228", "bblocked");
 register_clcmd("deagle", "bblocked");
 register_clcmd("elites", "bblocked");
 register_clcmd("fn57", "bblocked");
 
register_clcmd("mp5", "bblocked");
 register_clcmd("smg", "bblocked");
 register_clcmd("mac10", "bblocked");
 register_clcmd("tmp", "bblocked");
 register_clcmd("ump45", "bblocked");
 register_clcmd("p90", "bblocked");
 
register_clcmd("m3", "bblocked");
 register_clcmd("xm1014", "bblocked");
 
register_clcmd("famas", "bblocked");
 register_clcmd("m4a1", "bblocked");
 register_clcmd("ak47", "bblocked");
 register_clcmd("sg552", "bblocked");
 register_clcmd("galil", "bblocked");
register_clcmd("aug", "bblocked");
 
register_clcmd("scout", "bblocked");
 register_clcmd("awp", "bblocked");
 register_clcmd("sg550", "bblocked");
 register_clcmd("g3sg1", "bblocked");
 
register_clcmd("m249", "bblocked");
 
register_clcmd("hegren", "bblocked");
 register_clcmd("flash", "bblocked");
 register_clcmd("sgren", "bblocked");
 register_clcmd("vest", "bblocked");
 register_clcmd("vesthelm", "bblocked");
 register_clcmd("shield", "bblocked");
 register_clcmd("buyammo1", "bblocked");
 register_clcmd("buyammo1", "bblocked");
 register_clcmd("buyequip", "bblocked");
 }
 
//Block Radio Commands
 if (get_cvar_num("bc_blockradio"))
 {
 register_clcmd("radio1", "rblocked");
 register_clcmd("radio2", "rblocked");
 register_clcmd("radio3", "rblocked");
 register_clcmd("coverme", "rblocked")
 register_clcmd("takepoint", "rblocked")
 register_clcmd("holdpos", "rblocked")
 register_clcmd("regroup", "rblocked")
 register_clcmd("followme", "rblocked")
 register_clcmd("takingfire", "rblocked")
 register_clcmd("go", "rblocked")
 register_clcmd("fallback", "rblocked")
 register_clcmd("sticktog", "rblocked")
 register_clcmd("getinpos", "rblocked")
 register_clcmd("stormfront", "rblocked")
 register_clcmd("report", "rblocked")
 register_clcmd("roger", "rblocked")
 register_clcmd("enemyspot", "rblocked")
 register_clcmd("needbackup", "rblocked")
 register_clcmd("sectorclear", "rblocked")
 register_clcmd("inposition", "rblocked")
 register_clcmd("reportingin", "rblocked")
 register_clcmd("getout", "rblocked")
 register_clcmd("negative", "rblocked")
 register_clcmd("enemydown", "rblocked")
 }
 
//Block Choose Team
 if (get_cvar_num("bc_blockchooseteam"))
 {
 register_clcmd("chooseteam", "ctblocked");
 }
 
//Block retry
 if (get_cvar_num("bc_blockretry"))
 {
 register_clcmd("retry", "blockr");
 }
}
Obs: Ela compilou mas deixou de bloquear o menu/radio/etc.
Quero deixar ela só pra bloquear o menu B de armas/bombas/etc, Grato !

Plugin original com tudo dentro:
http://www.mediafire.com/download/33n9zk3yudnw4d4/Block_Commands.rar

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Peguei a sma editada que vc edito e arrumei .., ja que nao mexo mais com zm sempre estarei ajudando ..

SMA

Código:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <colorchat>

#define PLUGIN "Block Command"
#define AUTHOR "Drogocop"
#define VERSION "1.1"

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR)

   register_cvar("bc_blockbuy", "1"); // All buys Blocked
   register_cvar("bc_blockradio", "1"); // Block Radio commands
   register_cvar("bc_blockchooseteam", "1"); // Block Choose Team
   register_clcmd("bc_blockchat", "cmd_chatmute", -1, "<name>") // Muted Chat of a player. 
   register_clcmd("bc_blockchatmenu", "menu_chatmute", -1, "chat mute menu") // Open Chat Mute Menu
   register_concmd("say", "say_handle")
   register_concmd("say_team", "say_handle")
   register_dictionary ( "blockcommand.txt" );
 
//Block  All Buy and Buy Binds
   if (get_cvar_num("bc_blockbuy"))
   {
   register_clcmd("buy", "bblocked");
   register_clcmd("cl_autobuy", "bblocked");
   register_clcmd("cl_rebuy", "bblocked");
   register_clcmd("cl_setautobuy", "bblocked");
   register_clcmd("cl_setrebuy", "bblocked");
 
   register_clcmd("glock", "bblocked");
   register_clcmd("usp", "bblocked");
   register_clcmd("p228", "bblocked");
   register_clcmd("deagle", "bblocked");
   register_clcmd("elites", "bblocked");
   register_clcmd("fn57", "bblocked");
 
   register_clcmd("mp5", "bblocked");
   register_clcmd("smg", "bblocked");
   register_clcmd("mac10", "bblocked");
   register_clcmd("tmp", "bblocked");
   register_clcmd("ump45", "bblocked");
   register_clcmd("p90", "bblocked");
 
   register_clcmd("m3", "bblocked");
   register_clcmd("xm1014", "bblocked");
 
   register_clcmd("famas", "bblocked");
   register_clcmd("m4a1", "bblocked");
   register_clcmd("ak47", "bblocked");
   register_clcmd("sg552", "bblocked");
   register_clcmd("galil", "bblocked"); 
   register_clcmd("aug", "bblocked");
 
   register_clcmd("scout", "bblocked");
   register_clcmd("awp", "bblocked");
   register_clcmd("sg550", "bblocked");
   register_clcmd("g3sg1", "bblocked");
 
   register_clcmd("m249", "bblocked");
 
   register_clcmd("hegren", "bblocked");
   register_clcmd("flash", "bblocked");
   register_clcmd("sgren", "bblocked");
   register_clcmd("vest", "bblocked");
   register_clcmd("vesthelm", "bblocked");
   register_clcmd("shield", "bblocked");
   register_clcmd("buyammo1", "bblocked");
   register_clcmd("buyammo1", "bblocked");
   register_clcmd("buyequip", "bblocked");
   }
 
//Block Radio Commands
   if (get_cvar_num("bc_blockradio"))
   {
   register_clcmd("radio1", "rblocked");
   register_clcmd("radio2", "rblocked");
   register_clcmd("radio3", "rblocked");
   register_clcmd("coverme", "rblocked")
   register_clcmd("takepoint", "rblocked")
   register_clcmd("holdpos", "rblocked")
   register_clcmd("regroup", "rblocked")
   register_clcmd("followme", "rblocked")
   register_clcmd("takingfire", "rblocked")
   register_clcmd("go", "rblocked")
   register_clcmd("fallback", "rblocked")
   register_clcmd("sticktog", "rblocked")
   register_clcmd("getinpos", "rblocked")
   register_clcmd("stormfront", "rblocked")
   register_clcmd("report", "rblocked")
   register_clcmd("roger", "rblocked")
   register_clcmd("enemyspot", "rblocked")
   register_clcmd("needbackup", "rblocked")
   register_clcmd("sectorclear", "rblocked")
   register_clcmd("inposition", "rblocked")
   register_clcmd("reportingin", "rblocked")
   register_clcmd("getout", "rblocked")
   register_clcmd("negative", "rblocked")
   register_clcmd("enemydown", "rblocked")
   }
   
//Block Choose Team
   if (get_cvar_num("bc_blockchooseteam"))
   {
   register_clcmd("chooseteam", "ctblocked");
   }
 
//Block retry
   if (get_cvar_num("bc_blockretry"))
   {
   register_clcmd("retry", "blockr");
   }
}

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Resolvido?

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Não funciona para bloquear ...

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Gente, urgente desculpa pelo up ... Alguem sabe ?

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
cara ali na 2º .SMA abra o Amxx Studios e aperte ( CTRL + a letra I ) depois compila :D

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Até agora nada ...

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
So espera o Dias ou o Spixe entra no skype que eu vejo com eles se eles tem esse plugin ja editado se eles nao tiver eu peco pra eles editar pra voce , porque eu tentei aqui mais nao consegui n

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Ele me ensina um pouco soubre plugin ...

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Achei um aqui espero que sirva

http://forums.alliedmods.net/showthread.php?t=102611

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Nenhum funciona.

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
0wnderless escreveu:
Nenhum funciona.
Ei ownderless se você quer qui eles não compra pelo B. basta retirar os dinheiros pelo server.cfg

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Ta díficil.

tenta remover essas linhas. Na segunda sma.

register_concmd("say", "say_handle")
 register_concmd("say_team", "say_handle")

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Máximo que pude fazer é tirar o buyzone = não tem como abrir o menu.
Download da sma.
Click Aqui

Espero ter ajudado.
Usei códigos da alliedmodders.

Última edição por fatal em 11/11/2013, 7:13 am, editado 1 vez(es)

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Pelo que entendi você quer bloquiar o menu B ?, se for isso tenta essa sma 

SMA

Código:


/* Script generated by Pawn Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <colorchat>

#define PLUGIN "Block Command"
#define AUTHOR "Drogocop"
#define VERSION "1.1"

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   register_cvar("bc_blockbuy", "1"); // All buys Blocked
   register_cvar("bc_blockradio", "1"); // Block Radio commands
   register_cvar("bc_blockchooseteam", "1"); // Block Choose Team
   register_clcmd("bc_blockchat", "cmd_chatmute", -1, "<name>") // Muted Chat of a player.
   register_clcmd("bc_blockchatmenu", "menu_chatmute", -1, "chat mute menu") // Open Chat Mute Menu
   register_concmd("say", "say_handle")
   register_concmd("say_team", "say_handle")
   register_dictionary ( "blockcommand.txt" );
   
   //Block  All Buy and Buy Binds
   if (get_cvar_num("bc_blockbuy"))
   {
      register_clcmd("buy", "bblocked");
      register_clcmd("chooseteam", "bblocked");
      register_clcmd("chooseteam", "ctblocked");
      register_clcmd("cl_autobuy", "bblocked");
      register_clcmd("cl_rebuy", "bblocked");
      register_clcmd("cl_setautobuy", "bblocked");
      register_clcmd("cl_setrebuy", "bblocked");
      
      register_clcmd("glock", "bblocked");
      register_clcmd("usp", "bblocked");
      register_clcmd("p228", "bblocked");
      register_clcmd("deagle", "bblocked");
      register_clcmd("elites", "bblocked");
      register_clcmd("fn57", "bblocked");
      
      register_clcmd("mp5", "bblocked");
      register_clcmd("smg", "bblocked");
      register_clcmd("mac10", "bblocked");
      register_clcmd("tmp", "bblocked");
      register_clcmd("ump45", "bblocked");
      register_clcmd("p90", "bblocked");
      
      register_clcmd("m3", "bblocked");
      register_clcmd("xm1014", "bblocked");
      
      register_clcmd("famas", "bblocked");
      register_clcmd("m4a1", "bblocked");
      register_clcmd("ak47", "bblocked");
      register_clcmd("sg552", "bblocked");
      register_clcmd("galil", "bblocked");
      register_clcmd("aug", "bblocked");
      
      register_clcmd("scout", "bblocked");
      register_clcmd("awp", "bblocked");
      register_clcmd("sg550", "bblocked");
      register_clcmd("g3sg1", "bblocked");
      
      register_clcmd("m249", "bblocked");
      
      register_clcmd("hegren", "bblocked");
      register_clcmd("flash", "bblocked");
      register_clcmd("sgren", "bblocked");
      register_clcmd("vest", "bblocked");
      register_clcmd("vesthelm", "bblocked");
      register_clcmd("shield", "bblocked");
      register_clcmd("buyammo1", "bblocked");
      register_clcmd("buyammo1", "bblocked");
      register_clcmd("buyequip", "bblocked");
   }
   
   //Block Radio Commands
   if (get_cvar_num("bc_blockradio"))
   {
      register_clcmd("radio1", "rblocked");
      register_clcmd("radio2", "rblocked");
      register_clcmd("radio3", "rblocked");
      register_clcmd("coverme", "rblocked")
      register_clcmd("takepoint", "rblocked")
      register_clcmd("holdpos", "rblocked")
      register_clcmd("regroup", "rblocked")
      register_clcmd("followme", "rblocked")
      register_clcmd("takingfire", "rblocked")
      register_clcmd("go", "rblocked")
      register_clcmd("fallback", "rblocked")
      register_clcmd("sticktog", "rblocked")
      register_clcmd("getinpos", "rblocked")
      register_clcmd("stormfront", "rblocked")
      register_clcmd("report", "rblocked")
      register_clcmd("roger", "rblocked")
      register_clcmd("enemyspot", "rblocked")
      register_clcmd("needbackup", "rblocked")
      register_clcmd("sectorclear", "rblocked")
      register_clcmd("inposition", "rblocked")
      register_clcmd("reportingin", "rblocked")
      register_clcmd("getout", "rblocked")
      register_clcmd("negative", "rblocked")
      register_clcmd("enemydown", "rblocked")
   }
   
   //Block Choose Team
   if (get_cvar_num("bc_blockchooseteam"))
   {
      register_clcmd("chooseteam", "ctblocked");
   }
   
   //Block retry
   if (get_cvar_num("bc_blockretry"))
   {
      register_clcmd("retry", "blockr");
   }
}
@Edit causo essa ai nao funfe teste essa

SMA

Código:

#include <amxmodx>

#define PLUGIN  "Block Chooseteam"
#define AUTHOR  "Alucard"
#define VERSION "0.0.1"

new p_BlockChooseTeam

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR);
    
    p_BlockChooseTeam = register_cvar("bc_enable", "1");
    
    register_clcmd("chooseteam", "HookCmdChooseTeam");
}

public HookCmdChooseTeam(iClient)
{
    return get_pcvar_num(p_BlockChooseTeam) ? PLUGIN_HANDLED : PLUGIN_CONTINUE;
}

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz

Código:

#include <amxmodx> 
#include <fakemeta> 

public plugin_cfg()  
{  
    register_message(get_user_msgid("StatusIcon"), "Message_StatusIcon"); 


public Message_StatusIcon(iMsgId, iMsgDest, id)  
{  
    static szIcon[8];  
    get_msg_arg_string(2, szIcon, charsmax(szIcon));  
    if( equal(szIcon, "buyzone") ) 
    {  
        if( get_msg_arg_int(1) )  
        {  
            set_pdata_int(id, 235, get_pdata_int(id, 235) & ~(1<<0)); 
            return PLUGIN_HANDLED;  
        }  
    }  
      
    return PLUGIN_CONTINUE;  
-
-
-

Código:

#include <  amxmodx >
#include <  engine >

const FM_NULLENT = -1;

public plugin_init( ) {
    register_plugin( "BuyZone Remover", "1.0", "xPaw" );
   
    new iEntity = FM_NULLENT;
    while( ( iEntity = find_ent_by_class( iEntity, "func_buyzone" ) ) > 0 )
        if( entity_get_int( iEntity, EV_INT_iuser1 ) != 1337 )
            remove_entity( iEntity );
}

public plugin_precache( ) {
    new iEntity = create_entity( "func_buyzone" );
   
    if( iEntity ) {
        entity_set_size( iEntity, Float:{ -4096.0, -4096.0, -4096.0 }, Float:{ -4095.0, -4095.0, -4095.0 } );
        entity_set_int( iEntity, EV_INT_iuser1, 1337 );
    }
}
-
-
-

Código:

#include <amxmodx> 
#include <fakemeta> 

#define VERSION "0.0.1" 
#define PLUGIN "No Buy" 

public plugin_init() 

    register_plugin(PLUGIN, VERSION, "ConnorMcLeod") 

    register_clcmd("buy", "ClientCommand_Buy") 
    register_clcmd("bUy", "ClientCommand_Buy") 
    register_clcmd("buY", "ClientCommand_Buy") 
    register_clcmd("bUY", "ClientCommand_Buy") 
    register_clcmd("Buy", "ClientCommand_Buy") 
    register_clcmd("BUy", "ClientCommand_Buy") 
    register_clcmd("BuY", "ClientCommand_Buy") 
    register_clcmd("BUY", "ClientCommand_Buy") 
    server_cmd("sv_restartround 1") 


public plugin_precache() 

    #define CMapInfo_Linux_XOff    5 
    #define m_iBuyingStatus 34 
    new iEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString,"info_map_parameters")) 
    set_pdata_int(iEnt, m_iBuyingStatus, 3, CMapInfo_Linux_XOff) // case 3: ALERT( at_console, "No one can buy!!\n" ); // http://code.google.com/p/cs-sdk/source/browse/trunk/multiplay_gamerules.cpp     
    dllfunc(DLLFunc_Spawn, iEnt) 


public ClientCommand_Buy( /* id */ ) 

    return PLUGIN_HANDLED_MAIN 
}  
-
-
-

Código:

#include <amxmodx>

new const gBuyCommands[ ][ ] = 

        "usp", "glock", "deagle", "p228", "elites", 
        "fn57", "m3", "xm1014", "mp5", "tmp", "p90", 
        "mac10", "ump45", "ak47", "galil", "famas", 
        "sg552", "m4a1", "aug", "scout", "awp", "g3sg1", 
        "sg550", "m249", "vest", "vesthelm", "flash", 
        "hegren", "sgren", "defuser", "nvgs", "shield", 
        "primammo", "secammo", "km45", "9x19mm", "nighthawk", 
        "228compact", "fiveseven", "12gauge", "autoshotgun", 
        "mp", "c90", "cv47", "defender", "clarion", "krieg552", 
        "bullpup", "magnum", "d3au1", "krieg550",  
        "buy", "buyammo1", "buyammo2", "buyequip", "cl_autobuy", 
        "cl_rebuy", "cl_setautobuy", "cl_setrebuy" 

public plugin_init()  
{  
    register_plugin("Block Buy Example", "0.1.0", "Xvil")  

    for (new i; i < sizeof gBuyCommands; i++)  
        register_clcmd(gBuyCommands[i], "BlockBuyCommands")  
}  

public BlockBuyCommands(id)  

    // Block the buy commands.  
  return PLUGIN_HANDLED;  
}
tenta algum ae

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
Zplague9

description[Dúvida] - SMA EmptyRe: [Dúvida] - SMA

more_horiz
privacy_tip Permissões neste sub-fórum
Não podes responder a tópicos
power_settings_newInicie sessão para responder