[FilterScript] [FS] RCON-manager (control your server easier from RCON-console)
#1

What is this?
So this is an RCON based administration filterscript which I've created using the RCMD function.


Console commands:
  • /cmdlist
  • /msg
  • /msgall
  • /kick
  • /kickall
  • /ban
  • /banall
  • /kill
  • /killall
  • /freeze
  • /freezeall
  • /unfreeze
  • /unfreezeall
  • /slap
  • /slapall
  • /sethealth
  • /sethealthall
  • /givehealth
  • /givehealthall
  • /setarmor
  • /setarmorall
  • /givearmor
  • /givearmorall
  • /setmoney
  • /setmoneyall
  • /givemoney
  • /givemoneyall
  • /setscore
  • /setscoreall
  • /givescore
  • /givescoreall
  • /infoplayer
  • /setserverpass
  • /setservername
  • /setservergamemode
  • /setservermap
  • /setplayerweather
  • /setweather
  • /setgravity
Note: Don't forget to put the prefix in front of the command (prefix is defined with RCMD_PREFIX)


Pictures:
/imageshack/img819/8057/rconmanager.gif


Credits:
- ****** for sscanf-plugin & foreach function,
- DracoBlue for DCMD command processor.


Download:
http://www.solidfiles.com/d/f69739c8cc


How to create your own commands:
pawn Код:
#if !defined RCMD_PREFIX
    #define RCMD_PREFIX "/"
#endif
pawn Код:
#if !defined rcmd
    #define rcmd(%1,%2,%3) if((strcmp((%3), RCMD_PREFIX #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (rcmd_%1(""))) || (((%3)[(%2) + 1] == 32) && (rcmd_%1((%3)[(%2) + 2]))))) return true
#endif
pawn Код:
public OnRconCommand(cmd[])
{
    rcmd(amsg, 4, cmd);
    return false;
}
pawn Код:
rcmd_amsg(command[])
{
    new
            msg[64];
    if(sscanf(command, "s[64]", msg)) return printf("Correct usage: \"%samsg [message]\"", RCMD_PREFIX);
    foreach(Player, u) SendClientMessageEx(u, 0xFF0000AA, "* PM from RCON-CONSOLE: %s", msg);
    printf("RCON-CONSOLE: Message was sent to everyone: %s", msg);
    return true;
}
Reply
#2

Very nice filterscript mate, tidy and useful.
Reply
#3

Nice work Emilio
Reply
#4

Thanks guys, i'm glad you like it.
Reply
#5

very useful filterscript
Reply
#6

Awesome, sometimes you just wanna do it all at the RCON window but you cant.

Now you can, great FS
Reply
#7

oh ye nice! very usefool i hop u can add more good commands .
Reply
#8

Hehe Cool
Reply
#9

-Updated-
(Check the first post for more information.)
Reply
#10

Very Good Job!
Reply
#11

Pretty useful actually, nice work Don.
Reply
#12

Thank you.
Reply
#13

For everyone who's using this: i have updated it, please re-download.
Reply
#14

thanks you
Reply
#15

UPDATE.

I have added a few new commands:
  • setserverpass,
  • setservername,
  • setservergamemode,
  • setservermap,
  • setplayerweather,
  • setweather,
  • setgravity,
  • forceplayercommand
Reply
#16

Nice work bud, easy and efficient, keep it up

-©un3o.
Reply
#17

Great and original work! I will use it!
Reply
#18

Nice work
Keep it up!
Reply
#19

I'm glad you like it.
Reply
#20

cool, but i don't see whats the point of a couple cmds eg setserverpass, setservername, setservergamemode, does this save to .cfg? i'm too lazy to check for myself. if so good stuff! and ignore this cmt otherwise those cmds already exist by the samp team and aren't rly useful, you jsut renamed them.. password, hostname, changemode?, gamemodetext
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)