Filterscripts..
#1

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
Reply
#2

Why dont you state your problem more detailed?
Reply
#3

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?
Reply
#4

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
Reply
#5

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;
}
Reply
#6

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 ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)