Evie Addon Details

Watch - Add Favorite

WeaponGiver - Version 3.1

posted on 2008-04-08 17:02:43
by XaM
6
w00ts
w00t!
Requires: Tags: admin armes css give menu weapon

Description

Permet de donner des armes avec ce menu.
Simple a utiliser, et facilement configurable.
----------------------------
Allows admins to give weapons whit this menu.
Easly to configure

Installation

Installation:
  • Dézippez tout ce que contient l'archive sur votre FTP, dans:
  • - cstrike/
    En suivant le chemin de l'archive
  • Ajoutez à votre autoexec.cfg la ligne:
es_load weapongiver

  • Rebootez votre serveur de jeu

Configuration:

Ajout d'un admin:
Pour ajouter vos admins, ouvrez le fichier
es_wg_admins_db.txt

Situé dans: - cstrike/addons/eventscripts/weapongiver/admins/
Et éditez le :
 
"wg_admins"
{
// Steam ID ADMIN
"STEAM_X:X:XXXXXXXX"
{
// Nom de l'Admin
"name" "Nom d'admin"
// Droit
// 1 = peut configurer le script depuis le menu
// 0 = ne peut pas
"droit" "1"
}
}


Installation:
  • Unzip all the contain of the archive in
  • - cstrike/
    Following the directory of the archive
  • Add this line in your autoexec.cfg
es_load weapongiver

  • Reboot your server

Configuration:

To add an admin
To add an admin, open the file:
es_wg_admins_db.txt

Situated in: - cstrike/addons/eventscripts/weapongiver/admins/
And edit like this :
 
"wg_admins"
{
// Steam ID ADMIN
"STEAM_X:X:XXXXXXXX"
{
// Name of the Admin
"name" "Admin's Name"
// Rights
// 1 = Is allowed to configure the script by the menu
// 0 = Isn't allowed to
"droit" "1"
}
}


Configuration des parametres

Ensuite, ouvrez le fichier config.cfg situé dans: - cstrike/addons/eventscripts/weapongiver/cfg/
Et reglez le selon vos besoins:

Then open the config.cfg file situated in: - cstrike/addons/eventscripts/weapongiver/cfg/
And configure it like you want:

/////////////////////////////
// Just configure that:
// Configurez ceci:
/////////////////////////////
 
// The language of your script. Are included:
// La langue du script. Sont inclus:
// fr = francais // eng = English
wg_language "fr"
 
// The chat command to open the menu
// La commande à taper dans le chat pour ouvrir le menu
wg_chatcmd "!wg"
 
// The console command to open the menu
// La commande à taper dans la console pour ouvrir le menu
// bind "yourkey/tatouche" "yourcommand/tacommande"
wg_concmd "wg"
 
// Send back the menu after making a selection
// 0 = Doesn't send back any menu // 1 = Send back the mainmenu // 2 = Send back the player list
// Renvoyer le menu après l'avoir utilisé
// 0 = Ne renvoie rien // 1 = Renvoie le menu principal // 2 = Renvoie la liste des joueurs
wg_renvoi 2
 
// Enable (1) or disable (0) the messages when an admin joins and leaves the server
// Activer (1) ou désactiver (0) les messages montrant quand un admin se connecte et se déconnecte
wg_comessage 1
 
// Enable (1) or disable (0) the messages when an admin gives a weapon
// Activer (1) ou désactiver (0) les messages montrant quand un admin donne une arme
wg_message 1
 
// Show (0) or not (1) the name of the admin who gave a weapon (wg_message 1)
// Montrer (0) ou pas (1) le nom de l'admin qui a donné une arme (wg_message 1)
wg_anonymeadmin 1


Traduction

Ensuite, si votre langue n'est pas incluse, vous pouvez traduire le script vous meme (Une fois traduit, proposez moi votre traduction, et je l'incluerais dans le .zip)

If your languge is not inclued (FR and ENG ar inclued), you can easly translate it

//////////////////////////////////////
// TO TRANSLATE THE SCRIPT
// FOR ANOTHER LANGUAGE:
//
// Set the wg_language value to a prefixe (ex: esp)
// Add a ligne with this prefixe (between "") following the example below
// You have to do it for each msg, or the script WON'T WORK
// Example: To add the Spanish, do like this for each words
// "weapon_hegrenade"
// {
// "esp" "Granadas"
// }
// DO NOT REPLACE THE %1 or things like this, JUST REPLACE THE TEXT
// #lightgreen, #green and #default are for coloured text
/////////////////////////////////////////
// POUR TRADUIRE LE SCRIPT
//
// Régler la variable wg_language sur un prefixe choisis (ex: esp)
// Ajouter une ligne avec ce prefixe (entre "") en suivant l'example ci dessous
// Vous devez faire cette opération pour chaque message, ou le script NE MARCHERA PAS
// Exemple: Pour ajouter l'espagnol, faite comme ci dessous pour chaque mot a traduire
// "weapon_hegrenade"
// {
// "esp" "Granadas"
// }
// NE REMPLACEZ PAS LES %1 ou choses comme ca, REMPLACEZ UNIQUEMENT LE TEXTE
// #lightgreen, #green et #default sont utilisés pour les textes colorés
/////////////////////////////////////////////

Version Notes For 3.1 (Announce this update)

Updated on: 2008-07-09 05:11:29 EST
V.3.1:
[+] Ajout d'une variable publique
[~] Correction du code, par rapport à l'ajout d'admin.

------------------------------------------------

V.3.1:
[+] Added public variable
[~] Correction of the code, to add admins.
( Previous Versions )