Pagina de start a forumului StrikeCS.MyForum.ro
Inregistrare • Cautare • FAQ • Membri • Grupuri • Autentificare
Tutorial Amxbans 5.0 (in limba engleza)

 
Raspunde la subiect    Pagina de start a forumului StrikeCS.MyForum.ro » Tutoriale Subiectul anterior
Subiectul urmator
Tutorial Amxbans 5.0 (in limba engleza)
Autor Mesaj
ICo
Moderator
Moderator
ICo

Data inscrierii: 05/Noi/2007
Mesaje: 74

Mesaj Tutorial Amxbans 5.0 (in limba engleza) Raspunde cu citat (quote)
Amxbans 5.0


New features for the plugin

Cod:
- Amxbans now uses the new amxmodX module mysqlX
- amxbans.cfg now contains all you need to edit the plugin
- If connecting players have been banned before it is printed as amx_chat
- New command amx_unban <STEAM_ID>
- You can flagged/unflagg players in the menu
- New banhistory menu to be able to se players expired bans.
Plus many more (See the link to the big changelog below)


New features for the webfiles

Cod:
Made amxbans web files multilingual (Done by RUNET)
Splendid work :)
Plus many bugfixes (See the link to the big changelog below)


Here is a new version that has been developed by myself and Gizmo. (YoMama/Lux did the original amxbans 2004)
RUNET has also made a huge work and made the webfiles Multilingual so you can choose your native language.

You can add your own language in the folder includes/lang
Just copy the file lang.english.php and then rename it to lang.YOURLANG.php
When you are done you can change the default language in the Config page.
Normal users can also choose language in a dropdown menu.

Please PM me if you have a new language translated and I will add it
in the web files package.


Description of Amxbans

Amxbans is a system that uses a mySQL data base to manage bans and admins.
Amxbans handles numeroase servers so all bans are global.
It has the plugin part that is used in the game and the web files(PHP) where you can manage bans, servers and your admins.
For more detailed information view the readme.htm in the download below.

Installing Amxbans

Download the file below.
IMPORTANT!! Backup previous installations before you continue


Amxbans Web Interface
To be able to get the web interface to work you need to check this:
Access to a MySQL Database. (Version 4.1 and later is recommended)
Website with PHP (magic_quotes_gpc must be ON and short_open_tag = On)

For users who upgrade the webfiles.
Rename the old web folder with the webfiles to amxbans_OLD
Then produse a new folder I.e amxbans and upload the new webfiles there.
Then if something goes wrong you can always go back to your old files.
Don't forget to give write access to theincludefolder and the smarty/templates_c folder.
Also give write access to the tmp folder so you can import banned.cfg
Never use your old config_inc.php file or setup.php file
Now go to step 4 below.
------

Users installing for the first time

1. Copy the contents of the 'web'-folder to a location accessible to your webserver (e.g. /usr/local/www/www.yoursite.com/amxbans).

2. Make sure that the user running your webserver has write-access to the smarty/templates_c directoryand toinclude
directory !
Also give write access to the tmp folder so you can import banned.cfg

3. Make sure you have a database available that will be holding the AMXBans tables.

4. Open setup.php in your favorite browser (e.g. http://www.yoursite.com/amxbans/admin/setup.php ) and follow the instructions.

Note that existing tables will *NOT* get overwritten. If your upgrading from a previous version.

If this works go to the next step and install the plugin
If it doesn't work, read the instructions again or read [url=http://amxbans.net/forums/viewtopic.php?t=8]FAQ[/url]or post in this thread for help.

You will need to at least have the DB tables created or the plugin will not work.
##############################################

Amxbans plugin
Copy the files amxbans.sma and admin_amxbans.sma to your amxmodx/scripting folder.

NOTE- If you have more than 64 admins

Then you need to change the admin_amxbans.sma at approx row 44
Just change "64" to a number that is high enough to hold all your admins.

Cod:
#define MAX_ADMINS 64

Then compile the plugins amxbans.sma and admin_amxbans.sma in the scripting folder.
The compiled .amxx file(s) must then be copied to you plugins folder.
There are compiled files in the plugin folder in the package if you dont know how to compile.

In plugins.ini
insert admin_amxbans.amxx Note. Only if you want to use amxbans to manage admins
You must only use one of the 3 below


Cod:
admin.amxx if you want to load admins with users.ini
admin_sql.amxx if you want to load your admins from the admins table
admin_amxbans.amxx if you want to use Amxbans web pages to manage admins.


IMPORTANT. Place amxbans.amxx just after admin_amxbans.amxx AND before admincmd.amxx
Cod:
Example.
 AMX Mod X plugins
 Admin Base - Only one of them has to be activated
admin.amxx    ; admin base (Loading admins from the file users.ini)
admin_sql.amxx    ; SQL version (Loading admins from mysql DB)
admin_amxbans.amxx    ; AmxBans own SQL version of admin_sql if you are using amxbans web interface to manage admins
amxbans.amxx
admincmd.amxx


In modules.ini
Be sure to have the mysql module loaded.
Cod:
SQL Modules usually need to be enabled manually
 You can have any number on at a time.  Use     
  amx_sql_type in sql.cfg to specify the default mysql
;sqlite




Language file.
Place the amxbans.txt in amxmodx/data/lang folder.

Config files.
1. Place the amxbans.cfg in amxmodx/configs folder.
Edit it so it suit your needs.

2. Edit addons/amxmodx/configs/sql.cfg so amxx can connect to your my-SQL server


Do a complete restart of your server so all settings are properly loaded. (Shutdown and then start the server)
A few seconds after the server has started it should add itself to the data base. You can see that on the search page or directly in the database (table amx_serverinfo)
If it hasn't added itself to the data base you should check your amxmodx logs for errors and maybe edit your sql.cfg so the amxbans plugin can connect properly to the Data Base.
If you still have problem post in the [url=http://amxbans.net/forums/viewforum.php?f=2]supportform[/url]
Good luck and have fun with the new version!
NOTE Dont forget that atleast AmxmodX 1.76a is required to use this version
AmxModX 1.75 should work, but if you want to compile the source you must have 1.76a.

Dowload [url=http://rapidshare.com/files/70836638/amxbans-5.0.zip]HERE[/url]

Sursa --> [url=http://amxbans.net/forums/viewtopic.php?t=574]AICI[/url]

_________________
[URL=http://imageshack.us]Tutorial Amxbans 5.0 (in limba engleza) Tutorial Amxbans 5.0 (in limba engleza)[/URL]

[url=http://extreamcsx.1forum.biz/]My FoRuM[/url]
19/11/2007 14:32 Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:    
Raspunde la subiect    Pagina de start a forumului StrikeCS.MyForum.ro » Tutoriale Ora este GMT - 3 ore
Pagina 1 din 1

 
Mergi direct la: 
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro