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 )

Amx_restrict, amx_restrict on/off ak47
spy-warrior
post 19/07/2010 - 21:23:53 |   Post #1
+Reply

Group: Member
Posts: 133
Joined: 30/07/2008

fr 


bonsoir

je recherche pour avoir la commande amx_restrict dans les cvar de amx

http://wiki.amxmodx.org/Configuring_AMX_Mod_X#CVARs_2

amx_restrict on/off ak47

c'est pour les VIPs du serveur

merci
Post PM
Website
Go to the top of the page
 
New
Replies (1 - 5)
DokTor
post 24/07/2010 - 19:03:24 |   Post #2
+Reply

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

fr 


Je crois que tu as déjà eu ta réponse sur AM mais dans le doute :

edite le droit admin pour cette commande en la cherchant dans le fichier addons\amxmodx\configs\cmdaccess.ini
Post PM
Website
Go to the top of the page
spy-warrior
post 28/07/2010 - 12:25:47 |   Post #3
+Reply

Group: Member
Posts: 133
Joined: 30/07/2008

fr 


QUOTE (DokTor @ 24/07/2010 - 20:03:24) *
Je crois que tu as déjà eu ta réponse sur AM mais dans le doute :

edite le droit admin pour cette commande en la cherchant dans le fichier addons\amxmodx\configs\cmdaccess.ini


merci c'est bien sa https://forums.alliedmods.net/showthread.php?t=133026

CODE
amx_restrict on ak47
amx_restrict off ak47


toujours pas trouver pour:

je recherche pour avoir la commande mp_startmoney
avec 16000$ dans le shop pour tous les joueurs

This post has been edited by spy-warrior: 28/07/2010 - 12:27:08
Post PM
Website
Go to the top of the page
DokTor
post 13/08/2010 - 19:33:12 |   Post #4
+Reply

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

fr 


QUOTE (spy-warrior @ 28/07/2010 - 11:25:47) *
je recherche pour avoir la commande mp_startmoney
avec 16000$ dans le shop pour tous les joueurs


Bah tu fous soit dans server.cfg, soit dans game.cfg, soit dans amx.cfg, la variable :

mp_startmoney 16000

C'est pas compliqué.

server.cfg : exécuté au boot du serveur, éventuellement à chaque chargement de map si la variable mapchangecfgfile est renseignée sur "server.cfg"

game.cfg (à créer au même endroit que server.cfg) est exécuté à chaque chargement de map

amxx.cfg est exécuté 6.3sec après chaque début de map.
Post PM
Website
Go to the top of the page
spy-warrior
post 14/08/2010 - 17:50:19 |   Post #5
+Reply

Group: Member
Posts: 133
Joined: 30/07/2008

fr 


bonsoir
je parle pour avoir toujours les 1600$ au début du rond tous le temps
j'ai vue un plugin amx pour le faire sont nom est (unlimited Ammo)
j'ai pas testé
Post PM
Website
Go to the top of the page
DokTor
post 18/08/2010 - 16:09:13 |   Post #6
+Reply

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

fr 


J'utilise ça, ça calque l'argent de début de round sur la variable mp_startmoney :

CODE
/*    Copyright © 2008, ConnorMcLeod

    Round StartMoney 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 Round StartMoney; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>

#define VERSION "0.4.0"

#define Money_Amount    1

#define XTRA_OFS_PLAYER    5
#define m_iAccount        115

new g_pCvarStartMoney, g_iStartMoney, gmsgMoney, g_iMhMoney, Float:g_flRoundStartGameTime

public plugin_init()
{
    register_plugin( "Round StartMoney", VERSION, "ConnorMcLeod" )

    register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")

    g_pCvarStartMoney = get_cvar_pointer("mp_startmoney")
    gmsgMoney = get_user_msgid("Money")
}

public Event_HLTV_New_Round()
{
    g_flRoundStartGameTime = get_gametime()
    g_iStartMoney = get_pcvar_num(g_pCvarStartMoney)
    SetMoneyHookStatus( true )
}

public Message_Money(iMsgId, iMsgDest, id)
{
    if( get_gametime() != g_flRoundStartGameTime )
    {
        SetMoneyHookStatus( false )
        return
    }

    new iAmount = get_msg_arg_int(Money_Amount)
    if( iAmount && iAmount < g_iStartMoney )
    {
        set_pdata_int(id, m_iAccount, g_iStartMoney, XTRA_OFS_PLAYER)
        set_msg_arg_int(Money_Amount, ARG_LONG, g_iStartMoney)
    }
}

SetMoneyHookStatus( bool:bActive )
{
    if( bActive )
    {
        if( !g_iMhMoney )
        {
            static const szCallBack[] = "Message_Money"
            g_iMhMoney = register_message(gmsgMoney, szCallBack)
        }
    }
    else
    {
        if( g_iMhMoney )
        {
            unregister_message(gmsgMoney, g_iMhMoney)
            g_iMhMoney = 0
        }
    }
}
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