Available Maps from mysql to amx_menu

Forum cu pluginuri

Available Maps from mysql to amx_menu

Mesajde aZn->Sakl » Mar Mar 16, 2010 8:41 pm

================================================================================
AMX Mod Plugin
--------------------------------------------------------------------------------
Name : Available Maps from mysql to amx_menu (available_maps_from_mysql)
Author : ~Rouven~ <webmaster@kiez-clan.de>
--------------------------------------------------------------------------------
My second plugin, very simple but i'm using it to prevent some of my admins to change the map always to de_dust. Now they can only change to maps of my mapcycle and some special training maps.

If you have the mapcycle_from_mysql plugin and you want to use only maps of your mapcycle, than you may change my sql statement to something like: [i:33505d4635]SELECT map FROM maps[/i:33505d4635]

If you're lucky to have mySQL 4.x than u can use the UNION command to get maps from your mapcycle and maps that you marked as special from your amx_availmaps table. With mySQL 4.x the statement could be:

[i:33505d4635]SELECT map FROM maps UNION SELECT map FROM amx_availmaps WHERE special=1[/i:33505d4635]
--------------------------------------------------------------------------------
Installation :
- Extract file available_maps_from_mysql.amx to directory addons/amx/plugins
- Open addons/amx/plugins/plugins.ini
- Add a line containing : available_maps_from_mysql.amx
================================================================================
Download:available_maps_from_mysql.zip - 3.0 Kb


Respect :br
CoNNect: Cs.BestRasova.Ro
The Best Server
Intra Si tu!
Avatar utilizator
aZn->Sakl
Gold Member
Gold Member
 
Mesaje: 175
Membru din: Vin Feb 19, 2010 5:16 pm
Localitate: Iasi

Înapoi la Pluginuri

Cine este conectat

Utilizatorii ce navighează pe acest forum: Niciun utilizator înregistrat şi 1 vizitator

cron