https://www.17buddies.rocks/index.html

17's Buddies Maps HL1 Maps HL2 Wads Plan des Maps
17 Buddies
Only for stats

Welcome Guest ( Log In | Register )

 
New
[resolu] Antiroxx Et Amx Restrict Sur Cs 1.6
yohann982
post 30/06/2010 - 21:11:09 |   Post #1
+Reply

Group: Member
Posts: 35
Joined: 15/03/2009

fr 
Team:
Team Brigade


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 ! (IMG:http://forum.17buddies.rocks/style_emoticons/default/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.

This post has been edited by yohann982: 02/07/2010 - 17:31:19
Post PM
Website
Go to the top of the page
Albator
post 30/06/2010 - 22:12:39 |   Post #2
+Reply

Group: Member
Posts: 978
Joined: 11/03/2008

fr 
Team:
Mousquetaires


tu n'as qu'a utiliser le restmenu.amxx qui est de base dans le pack amxx et disponible via le menu admin amxmodmenu
Post PM
Website
Go to the top of the page
DokTor
post 01/07/2010 - 23:15:14 |   Post #3
+Reply

Group: Member
Posts: 126
Joined: 22/11/2005

fr 


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()
}
Post PM
Website
Go to the top of the page
Albator
post 02/07/2010 - 15:51:12 |   Post #4
+Reply

Group: Member
Posts: 978
Joined: 11/03/2008

fr 
Team:
Mousquetaires


je l'ai toujours dit : c'est très important d'avoir un bon doktor !!!

oui je sais elle était facile (IMG:http://forum.17buddies.rocks/style_emoticons/default/sors.gif)
Post PM
Website
Go to the top of the page
yohann982
post 02/07/2010 - 17:30:37 |   Post #5
+Reply

Group: Member
Posts: 35
Joined: 15/03/2009

fr 
Team:
Team Brigade


Bonjour Albator, Bonjour DokTor.


Merci à tous les deux pour vos réponses rapide qui m'ont apporté une aide très précieuse (IMG:http://forum.17buddies.rocks/style_emoticons/default/biggrin.gif) (IMG:http://forum.17buddies.rocks/style_emoticons/default/biggrin.gif) (IMG:http://forum.17buddies.rocks/style_emoticons/default/biggrin.gif)
L'achat du shield est désormais impossible sur notre serveur.


Encore merci a bientôt (IMG:http://forum.17buddies.rocks/style_emoticons/default/bye.gif)
Post PM
Website
Go to the top of the page
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

New
 


RSS Lo-Fi Version
 
Skin © Chapo