11.07.2007, 13:07
SampSt2 v0.2
Install:1) Copy all files from a directory samp_serv in a folder with a server.
2) Add in server.cfg filterscript dom.
Now you server.cfg should appear approximately so:
Code:
echo Executing Server Config... lanmode 0 rcon_password rcon maxplayers 32 port 7777 hostname FarCry Madness gamemode0 mod 1 filterscripts dom announce 0 query 1 weburl www.sa-mp.com
4) Open a file conf/config.php, and adjust him according to helps.
SDK
Example mudule: DriveByDownload: http://www.sendspace.com/file/1yg6fn
Pawno
SAddPlayerKills(playerid, killid); Adds to the player 1 murder. killid - the reason of murder
SAddPlayerDeaths(playerid, deathid); Adds to the player 1 death. deathid - the reason of death
SCreatePlayerAccount(playerid); Creates an account for the player
SWriteDateTime(playerid); Writes down to the player today's date and current time
SSaveMoney(playerid); Writes down amount of money
SWriteIntP(playerid, key[], value); Writes parameter int on ID the player
SWriteStrP(playerid, key[], value[]); Writes parameter String on ID the player
SReadIntP(playerid, key[]); Returns parameter int on ID the player
SReadStrP(playerid, key[]); Returns parameter String on ID the player
SWriteInt(str[], key[], value); Writes parameter int named the player
SWriteStr(str[], key[], value[]); Writes parameter String on ID the player
SReadInt(str[], key[]); Returns parameter int named the player
SReadStr(str[], key[]); Returns parameter String named the player
SDelKeyP(playerid, key[]); Deletes a line from a file of statistics of the player
SAccountExists(playerid); Checks existence of an account
SGetAccountStr(playerid); Returns a way to an account of the player
PHP
SReadKey($player, $key); Returns parameter named the player
Download SampSt2 v0.2: http://sampst.delux-host.com/files/SampSt2_v02.rar
Download SampSt2 v0.1: http://www.sendspace.com/file/9lia84
For transition from version 0.1 it is enough to replace web a part of statistics
on MySQL: http://forum.sa-mp.com/index.php?topic=47016.0
Example: http://gtacrime.ru/sampst/index.php
Web site: http://sampst.delux-host.com/