stock server_cfg(hostname[],weburl[],worldtime,mapname[],password[],filterscripts[],plugins[],announce,chatlogging,rcon_password[],gmodetext[])
{
new
hostn[500],webu[90],wtime[15],mname[100],passw[500],fsc[900], plg[900], ann[2], clog[2], rPass[500], gText[500]
;
format(hostn, sizeof hostn, "hostname %s",hostname),format(webu, sizeof webu, "weburl %s",weburl),format(wtime, sizeof wtime, "worldtime %d", wtime);
format(mname, sizeof mname, "mapname %s", mapname),format(passw, sizeof passw, "password %s", password),format(fsc, sizeof fsc, "filterscripts %s",filterscripts),format(plg, sizeof plg, "plugins %s",plugins);
format(ann, sizeof ann, "ann %s",plugins),format(clog, sizeof clog, "chatlogging %s",chatlogging),format(rPass, sizeof rPass, "rcon_password %s",rcon_password), format(gText, sizeof gText, "gamemodetext %s", gmodetext);
SendRconCommand(hostn),SendRconCommand(webu),SendRconCommand(wtime),SendRconCommand(mname),SendRconCommand(passw);
SendRconCommand(fsc),SendRconCommand(plg),SendRconCommand(ann),SendRconCommand(clog),SendRconCommand(rPass),SendRconCommand(gText);
return (1);
}
server_cfg(hostname[],weburl[],worldtime,mapname[],password[],filterscripts[],plugins[],announce,chatlogging,rcon_password[],gmodetext[])
server_cfg("SA-MP 0.3z Server","www.sa-mp.com",12,"San Andreas","","xStreamer bla bla..","sscanf",1,1,"changeme","Simple Script");
What's the use of this, when there's the server.cfg which is simple to use.
|