1
mIRC/pawn Scripting / Wich is the best script?
« on: February 01, 2010, 04:13:24 am »
Wich is the best script?

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
alias FBS.Load {
PsySQLite make -f vcmp.db
if (!%serverip) $FBS.EnterDetails(serverip, the IP of the server)
if (!%rconport) $FBS.EnterDetails(rconport, the RCON Port of the server)
if (!%pass) $FBS.EnterDetails(pass, the RCON Pass for the server)
if (!%echochan) $FBS.EnterDetails(echochan, the servers echo channel e.g. #echochannel)
if (!%servername) $FBS.EnterDetails(servername, the servers name e.g. Test Server)
if (!%limit) $FBS.EnterDetails(limit, the servers players limit, e.g. 16)
if (!%botname) $FBS.EnterDetails(botname, the bot's name e.g. FBS-Bot (No spaces allowed))
if ($?!="Would you like to proceed to the echo channel? $crlf $+ I hope you Enjoy FBS v0.3 $+ ") $FBS.LoadChan
}
alias PsySQLite {
var %flag = $remove($2,-), %makefile = $3
if ($1 == make) && (%flag == f) {
set %db.path $+($mircdir,PsySQLite\databases\)
set %db $sqlite_open( $+(%db.path,%makefile) )
if ( !%db ) { echo 4 -s Error: %sqlite_errstr | !return }
sqlite_exec %db CREATE TABLE IF NOT EXISTS main (owner UNIQUE)
sqlite_exec %db CREATE TABLE IF NOT EXISTS accounts (nick UNIQUE, password, level, lin, ip, lastactive)
sqlite_exec %db CREATE TABLE IF NOT EXISTS ips (nick UNIQUE, ip)
sqlite_exec %db CREATE TABLE IF NOT EXISTS stats (nick UNIQUE, status, kills, deaths, spree, cash, bank)
sqlite_exec %db CREATE TABLE IF NOT EXISTS vehicles (VehicleID UNIQUE, VehicleModel, IsPassenger, Checksum)
sqlite_exec %db CREATE TABLE IF NOT EXISTS classes (SkinID UNIQUE, SkinName, IsActive, Users, Checksum)
}
}