Filterscripts.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Filterscripts.. (
/showthread.php?tid=487839)
Filterscripts.. -
Kyance - 15.01.2014
How do they exactly work?
For an example:
pawn Код:
CMD:loadmaps(playerid, params[]) {
//stuff here ..
new loadmaps[64];
new fsname[24];
format(loadmaps, sizeof(loadmaps), "loadfs %s", fsname);
SendRconCommand(loadmaps);
return 1;
}
And at the filterscript:
Код:
OnFilterScriptInit(blabla)
{
//blabla
//map objects here
//blabla
}
Would something like that work? xd
Re: Filterscripts.. -
ACI - 15.01.2014
Why dont you state your problem more
detailed?
Re: Filterscripts.. -
Kyance - 15.01.2014
Quote:
Originally Posted by ACI
Why dont you state your problem more detailed?
|
It's not a problem, It's a question.
I'm asking can you create a command like "loadmaps", and it will make a filter-script load, which has the maps in it.
If so, can i get an example please?
Re: Filterscripts.. -
rakshith122 - 15.01.2014
I don't understand one thing. Why do you make another thing called loadfs? Because, If you're logged in as an RCON administrator, you can easily load a filterscript by using /rcon loadfs FSNAME
Re: Filterscripts.. -
ACI - 15.01.2014
pawn Код:
CMD:loadmaps(playerid, params[])
{
new str[128];
if(!sscanf(params, "s[128]", str)
{
format(str, sizeof(str), "loadfs %s", str);
printf("[!] Loading assembly from %s.amx", str);
SendRconCommand(str);
}
else SendClientMessage(playerid, -1, "USAGE: /loadmaps [mapname]");
return 1;
}
Re: Filterscripts.. -
Kyance - 15.01.2014
Quote:
Originally Posted by ACI
pawn Код:
CMD:loadmaps(playerid, params[]) { new str[128]; if(!sscanf(params, "s[128]", str) { format(str, sizeof(str), "loadfs %s", str); printf("[!] Loading assembly from %s.amx", str); SendRconCommand(str); } else SendClientMessage(playerid, -1, "USAGE: /loadmaps [mapname]"); return 1; }
|
Thanks ;p
@rakshith122: RCON Admin isn't cool ^^