Jump to content


/exec admin command


  • Please log in to reply
34 replies to this topic

#1 grillmaster

grillmaster

    BETA Tester

  • BETA Testers
  • PipPipPipPip
  • 106 posts
  • LocationFlorida, USA

Posted 24 January 2011 - 04:07 PM

It would be nice to have the option of adding exec as an extra admin command. I already have it on my server where I type "rcon exec 5" for example to change all the settings for a 5on5 (like scorelimit, timelimit, respawn, lower). It makes things a little easier, but at the moment I am limited to only me taking advantage of it, because I don't like giving out the rconpass.

#2 BoeMan

BoeMan

    Developer

  • Administrators
  • 4012 posts
  • LocationFryslân

Posted 24 January 2011 - 05:10 PM

A little too overpowered in my opinion. We already have a 'configuration helper' for scrims. What Mod is hosted on your server?
Kind regards,

BoeMan

#3 Henkie

Henkie

    Developer

  • Administrators
  • -2953 posts
  • LocationFryslân

Posted 24 January 2011 - 05:14 PM

It's possible that we add a custom commands file where you can create your own commands with your own description and actions.

Just an idea..
DO NOT Contact me: henkie@1fxmod.org
Posted Image

#4 BoeMan

BoeMan

    Developer

  • Administrators
  • 4012 posts
  • LocationFryslân

Posted 24 January 2011 - 05:22 PM

View PostHenkie, on 24 January 2011 - 05:14 PM, said:

It's possible that we add a custom commands file where you can create your own commands with your own description and actions.

Just an idea..

And link it to rcon <command>? I think RPM 0.7 has something like this, can't be sure though. Good idea anyway!
Kind regards,

BoeMan

#5 grillmaster

grillmaster

    BETA Tester

  • BETA Testers
  • PipPipPipPip
  • 106 posts
  • LocationFlorida, USA

Posted 24 January 2011 - 08:49 PM

View PostBoeMan, on 24 January 2011 - 05:10 PM, said:

What Mod is hosted on your server?
I have 2 servers running rpm.75, the only reason I'm using this for now is to use the .ent files that I made to run some modded maps. It's pretty laggy most of the time tho.

View PostHenkie, on 24 January 2011 - 05:14 PM, said:

It's possible that we add a custom commands file where you can create your own commands with your own description and actions.

Just an idea..
That sounds along the lines I was thinking. I realize that just adding exec as a command might create some vulnerabilities, if there's a way around that it would be great

#6 Henkie

Henkie

    Developer

  • Administrators
  • -2953 posts
  • LocationFryslân

Posted 24 January 2011 - 09:36 PM

View Postgrillmaster, on 24 January 2011 - 08:49 PM, said:

I have 2 servers running rpm.75, the only reason I'm using this for now is to use the .ent files that I made to run some modded maps. It's pretty laggy most of the time tho.


That sounds along the lines I was thinking. I realize that just adding exec as a command might create some vulnerabilities, if there's a way around that it would be great

Exactly, thats why i thought about creating custom commands. Ofcourse it can only use the powers that rcon has. So it would probably look like this example:

CustomCommands.txt

5vs5
{
Description "Applies settings for a 5vs5 game"
AdminLevel "4" // admin level required to execute the action
Action "scorelimit 5; timelimit 10; map_restart"
}

If you have more idea's about this please post!
DO NOT Contact me: henkie@1fxmod.org
Posted Image

#7 GoChucky

GoChucky

    BETA Tester

  • BETA Testers
  • PipPipPip
  • 97 posts

Posted 27 January 2011 - 05:39 PM

Great idea..
I was thinking about this 2..

Would this also being added in the h&s mod?

#8 BoeMan

BoeMan

    Developer

  • Administrators
  • 4012 posts
  • LocationFryslân

Posted 27 January 2011 - 06:01 PM

'1fx. H&S' and '1fx. Mod' have been merged into one. Anything that gets into Infiltration and is non-gametype based will also make it's way into Hide&Seek (except for some extreme examples). Some goes for CTF etc. of course.
Kind regards,

BoeMan

#9 Henkie

Henkie

    Developer

  • Administrators
  • -2953 posts
  • LocationFryslân

Posted 06 March 2011 - 05:46 PM

Added this in 0.57t.
DO NOT Contact me: henkie@1fxmod.org
Posted Image

#10 BoeMan

BoeMan

    Developer

  • Administrators
  • 4012 posts
  • LocationFryslân

Posted 06 March 2011 - 07:35 PM

This wouldn't work using Henkie his 1st example.

His example for in CustomCommands.txt:

5vs5
{
Description "Applies settings for a 5vs5 game"
AdminLevel "4" // admin level required to execute the action
Action "scorelimit 5; timelimit 10; map_restart"
}

Use this instead:

1
{
Command "5vs5" // command, /adm 5vs5 in this case
Broadcast "Test" // The broadcast.
Description "Applies settings for a 5vs5 game" // The info in /adm
AdminLevel "4" // same
Action "scorelimit 5; timelimit 10; map_restart" // The action.
Message "Err" // The message ([Custom Admin action] Err.).
}

I'll create a CVAR so you can define your own location (it's locked on /RPM/CustomCommands.txt at the moment).

Nice work Henkie. :)

Edit: g_customCommandsFile allows you to change the file location.
Kind regards,

BoeMan

#11 grillmaster

grillmaster

    BETA Tester

  • BETA Testers
  • PipPipPipPip
  • 106 posts
  • LocationFlorida, USA

Posted 07 March 2011 - 08:09 AM

very nice, I'm glad you decided to add this.

I have one question. To add more commands, is it required that I number them in order, for example:
1 // <--------------do I need this 1 here?
{ 
Command "5vs5" // command, /adm 5vs5 in this case 
Broadcast "Test" // The broadcast. 
Description "Applies settings for a 5vs5 game" // The info in /adm 
AdminLevel "4" // same 
Action "scorelimit 5; timelimit 60; map_restart" // The action. 
Message "Err" // The message ([Custom Admin action] Err.). 
}
2 // <----------------and this 2 here?
{ 
Command "4vs4"
Broadcast "Test"
Description "Applies settings for a 4vs4 game" 
AdminLevel "4" // same 
Action "scorelimit 5; timelimit 45; map_restart" // The action. 
Message "Err" // The message ([Custom Admin action] Err.). 
}
3...etc...


#12 Henkie

Henkie

    Developer

  • Administrators
  • -2953 posts
  • LocationFryslân

Posted 07 March 2011 - 09:08 AM

View Postgrillmaster, on 07 March 2011 - 08:09 AM, said:

very nice, I'm glad you decided to add this.

I have one question. To add more commands, is it required that I number them in order, for example:
1 // <--------------do I need this 1 here?
{ 
Command "5vs5" // command, /adm 5vs5 in this case 
Broadcast "Test" // The broadcast. 
Description "Applies settings for a 5vs5 game" // The info in /adm 
AdminLevel "4" // same 
Action "scorelimit 5; timelimit 60; map_restart" // The action. 
Message "Err" // The message ([Custom Admin action] Err.). 
}
2 // <----------------and this 2 here?
{ 
Command "4vs4"
Broadcast "Test"
Description "Applies settings for a 4vs4 game" 
AdminLevel "4" // same 
Action "scorelimit 5; timelimit 45; map_restart" // The action. 
Message "Err" // The message ([Custom Admin action] Err.). 
}
3...etc...

No its not required in any order, but you can't leave it empty.
DO NOT Contact me: henkie@1fxmod.org
Posted Image

#13 BoeMan

BoeMan

    Developer

  • Administrators
  • 4012 posts
  • LocationFryslân

Posted 08 May 2012 - 10:10 AM

Re-opened this topic. Would argument support be a good idea as well?

Example:

1
{
Command "uchigh" // command, /adm uchigh in this case
Broadcast "Uppercutting someone very high.." // The broadcast.
Description "Uppercut someone very high" // The info in /adm
AdminLevel "4" // same
Action "uppercut %arg1 %arg2" // The action.
Message "This is a very high uppercut.." // The message ([Custom Admin action] boe was uppercut.).
}

With basically up to 9 arguments-support. (%arg1 to %arg9). So, if for example, someone does /adm uchigh 10 15, "10" will be %arg1, and "15" will be %arg2. These %arg arguments will only work in "Action", and they will need to be passed along with "Action".

This is just an idea, let me know if you like it.
Kind regards,

BoeMan

#14 Comu

Comu

    BETA Tester

  • BETA Testers
  • PipPipPipPipPip
  • 436 posts

Posted 08 May 2012 - 10:55 AM

Yes. I've been asking and requesting this pretty often, you always said you aren't able to add it! :( Would be perfect.

#15 Shoke

Shoke

    1fx. Douchebag

  • 1fx. Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2057 posts
  • LocationHenkie is my hero

Posted 08 May 2012 - 11:47 AM

yeah would be nice.
Posted Image
Posted Image

View PostBlackwyn, on 11 March 2012 - 07:28 PM, said:

Fu boe tell me the way! I've got every file! I just need to fuck the VM protection!

EDIT: Anyway, let's celebrate the failure of the 2k3 Mod and its security!

View PostPoOoCe, on 11 March 2012 - 08:17 PM, said:

decompile it :) use debug or create fake mod lol...

View PostPoOoCe, on 11 March 2012 - 08:50 PM, said:

Lets see.. i know what debug is, it was a joke ffs.. de - bug, 2k3 mod have bugs... and decompile were bullshit :).
btw you need 2k3 mod for publish it in web lol...

View Postg4stt, on 02 March 2013 - 10:17 PM, said:

dont talk 2 me like i dont know about sof i now 2 mutch and Rap!st yes i can hack but i dont do it :)) why i would do it  if they want they can call the police and report me i dont use a proxy or vpn ;) You can Hack 2 is you want

#16 Cortez

Cortez

    1fx. Member / BETA Tester

  • 1fx. Members
  • PipPipPipPipPip
  • 516 posts
  • LocationHOLLAND

Posted 08 May 2012 - 04:49 PM

Would be a nice feature :)

Quote

BECAUSE FUCK YOU. THAT'S WHY.

#17 grillmaster

grillmaster

    BETA Tester

  • BETA Testers
  • PipPipPipPip
  • 106 posts
  • LocationFlorida, USA

Posted 03 June 2012 - 04:35 PM

Seems like a good idea. Can arguments be used in ways other than you have shown here? I'm not very familiar with coding.

#18 BoeMan

BoeMan

    Developer

  • Administrators
  • 4012 posts
  • LocationFryslân

Posted 03 June 2012 - 05:59 PM

The way you see the argument support is not an official way of doing so, it's just a string the code will look for and replace with what the user decides to enter. So, eventually, I make up how the system looks like, and this would be the only way.
Kind regards,

BoeMan

#19 PoOoCe

PoOoCe

    Advanced Member

  • Anticheat Testers
  • PipPipPipPipPip
  • 530 posts
  • Locationisreal

Posted 04 June 2012 - 06:28 PM

make binds in game like 5vs5_on
Posted Image

#20 Shoke

Shoke

    1fx. Douchebag

  • 1fx. Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2057 posts
  • LocationHenkie is my hero

Posted 04 June 2012 - 06:36 PM

View PostPoOoCe, on 04 June 2012 - 06:28 PM, said:

make binds in game like 5vs5_on


What binds :facepalm:
Posted Image
Posted Image

View PostBlackwyn, on 11 March 2012 - 07:28 PM, said:

Fu boe tell me the way! I've got every file! I just need to fuck the VM protection!

EDIT: Anyway, let's celebrate the failure of the 2k3 Mod and its security!

View PostPoOoCe, on 11 March 2012 - 08:17 PM, said:

decompile it :) use debug or create fake mod lol...

View PostPoOoCe, on 11 March 2012 - 08:50 PM, said:

Lets see.. i know what debug is, it was a joke ffs.. de - bug, 2k3 mod have bugs... and decompile were bullshit :).
btw you need 2k3 mod for publish it in web lol...

View Postg4stt, on 02 March 2013 - 10:17 PM, said:

dont talk 2 me like i dont know about sof i now 2 mutch and Rap!st yes i can hack but i dont do it :)) why i would do it  if they want they can call the police and report me i dont use a proxy or vpn ;) You can Hack 2 is you want




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users