11.03.2008, 12:29
SampSTM v0.1
Install:1) Copy all files from a directory samp_serv in a folder with a server.
2) Add in server.cfg filterscript domMy.
2) Add in server.cfg plugin sampmysql.
Now you server.cfg should appear approximately so:
Код:
echo Executing Server Config... lanmode 0 rcon_password rcon maxplayers 32 port 7777 hostname FarCry Madness gamemode0 mod 1 filterscripts domMy announce 0 query 1 weburl www.sa-mp.com plugins sampmysql
4) Open a file conf/config.php, and adjust him according to helps.
Код:
<? $name_serv = "Stats"; //Name Serv $ip_serv = "127.0.0.1"; //IP Serv $port_serv = "7777"; //Port Serv $servopis = "1"; $servrules = "1"; $servnews = "1"; $db_location = '127.0.0.1'; //MySQL Server $db_name = 'domm'; //DB Name $db_user = 'root'; //MySQL User $db_passwd = ''; //MySQL password //------------------------------------------------------------- $dbcnx = mysql_connect($db_location, $db_user, $db_passwd); if(!$dbcnx) { echo "Error whis MySQL(Connect)"; exit(); } if(!mysql_select_db($db_name, $dbcnx)) { echo "Error whis MySQL(select)"; exit(); } ?>
6) Execute MySQL inquiry containing in file SQL.txt on yours MySQL a server
on files: http://forum.sa-mp.com/index.php?topic=23380.0
on files FTP: http://forum.sa-mp.com/index.php?topic=47213.0
Download SampSTM: http://www.sendspace.com/file/z7b8vn