Help - Search - Members - Calendar
Full Version: [resolu] Antiroxx Et Amx Restrict Sur Cs 1.6
Forum 17B > Counter Strike 1.6 > General discussion
yohann982
Bonsoir à tous.

Je fais appel à votre savoir car je dispose d'un serveur cs 1.6 sur lequel j ai installé amxmodx pour la gestion.
Le plugin antiroxx V2 est également installé afin de limiter les joueurs trop fort, donc j ai été obligé de desactivé l'AMX RESTRICT car il y a des soucis de compatibilité.

Jusque là tout va bien.

Je souhaiterais interdire l'achat des snipers et du bouclier sur le serv, le souci c'est que je n'ai plus la possibilité de le faire via amx_restrict

pour les snipers nous avons trouver une pseudo-solution car nous avons configuré l'antiroxx de la maniere suivante :

CODE
antiroxx_ratio_snipe 0.01    
; ratio frags/morts pour ne plus pouvoir utiliser les fusils de snipe


ce qui drop automatiquement tout snipe des lors qu un joueur a fait 1 frag.

Par le fait, j ai penser qu en ajoutant la ligne :

CODE
antiroxx_ratio_shield 0.01


cela agirait de la même manière, mais que neni ! icon_decu.gif


Bref ca peut sembler être du bricolage mais malgrès plusieurs recherches infructueuses je n'ai pas de solution pour desactiver le bouclier.

Comptant sur votre aide, merci a vous bonne soirée.
Albator
tu n'as qu'a utiliser le restmenu.amxx qui est de base dans le pack amxx et disponible via le menu admin amxmodmenu
DokTor
Allez c'est cadeau :

CODE
/* Formatright © 2009, ConnorMcLeod

No Shield is free software;
you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with No Shield; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <cstrike>

#define VERSION "0.0.1"

new g_iTextMsg

public plugin_init()
{
register_plugin("No Shield", VERSION, "ConnorMcLeod")

register_menucmd(register_menuid("DCT_BuyItem", 1), (1<<7), "BuyShield")

g_iTextMsg = get_user_msgid("TextMsg")
}

public BuyShield( id )
{
Message_No_Shield(id)
return PLUGIN_HANDLED
}

public client_command(id)
{
static szCommand[8] // shield

if( read_argv(0, szCommand, charsmax(szCommand)) == 6 && equali(szCommand, "shield") )
{
Message_No_Shield(id)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}

public CS_InternalCommand(id, const szCommand[])
{
if( equali(szCommand, "shield") )
{
Message_No_Shield(id)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}

Message_No_Shield(id)
{
message_begin(MSG_ONE_UNRELIABLE, g_iTextMsg, .player=id)
write_byte( 4 )
write_string( "#Weapon_Not_Available" )
write_string( "#TactShield" )
message_end()
}
Albator
je l'ai toujours dit : c'est très important d'avoir un bon doktor !!!

oui je sais elle était facile sors.gif
yohann982
Bonjour Albator, Bonjour DokTor.


Merci à tous les deux pour vos réponses rapide qui m'ont apporté une aide très précieuse biggrin.gif biggrin.gif biggrin.gif
L'achat du shield est désormais impossible sur notre serveur.


Encore merci a bientôt bye.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.