Raised This Month: $12 Target: $400
 3% 

[ANY] Admin-Tools [work in progress][updated to work with any game]


Post New Thread Reply   
 
Thread Tools Display Modes
wtfaatp
Senior Member
Join Date: Jul 2010
Old 01-20-2014 , 23:44   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #31

Quote:
Originally Posted by Chanz View Post
I'll look into it for the next version.


There is already a command to do that, try the following:
sm_event round_start/1 "sm_disarm @all; sm_give @all knife"

You can replace the 1 with a 3 as example, that means that the next three rounds are knife rounds.

EDIT: Replaced the : with a /

Thnx didnt even read that one... Seems that it doesnt work... when using the ; with @all it causes sm to read that its not a valid client..

Also any command entered within the same line will not execute.
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows
wtfaatp is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 01-23-2014 , 11:57   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #32

Hmm that is strange, I will try to fix it. Are you running CSS or CSGO?

Also you could try to do the following:
sm_alias sm_knifeonly "sm_disarm @all; sm_give @all knife"
sm_event round_start/1 sm_knifeonly
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz is offline
wtfaatp
Senior Member
Join Date: Jul 2010
Old 01-23-2014 , 15:12   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #33

Im running Css

Running sm_alias sm_knifeonly "sm_disarm @all; sm_give @all knife" brought up
Code:
] sm_alias sm_knifeonly "sm_disarm @all; sm_give @all knife"
[SM] Usage: sm_alias <alias_command> <access> <server|client> <commands>
[SM] 	 alias_command: the new name of the commands
[SM] 	 access: 'anyone' OR 'a'-'z' OR a admin group OR a command to read the flag from
[SM] 	 server|client: where the command is executed. (s=server; c=client)
[SM] 	 commands: all the commands that should be executed. Use #num or @num to parse parameters from the alias (see example#3).

[SM] 	 Example#1: sm_alias sm_hilfe  anyone  client sm_help
[SM] 	 Example#2: sm_alias sm_slapme sm_slap client sm_slap @me
[SM] 	 Example#3: sm_alias sm_kill   z       client sm_slay @1
Also did
Code:
 sm_alias sm_knifeonly z server "sm_disarm @all; sm_give @all knife"
[SM] mFc. (ώŧƒ): Created alias "sm_knifeonly" to wrap "sm_disarm @all; sm_give @all knife"
Neither worked.

For now I'm going to use a config which might be the better option either way.
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows

Last edited by wtfaatp; 01-23-2014 at 15:15.
wtfaatp is offline
wtfaatp
Senior Member
Join Date: Jul 2010
Old 01-23-2014 , 15:27   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #34

Interesting
Code:
] sm_alias knife anyone s "exec configs/knifeonly.cfg"
[SM] mFc. (ώŧƒ): Created alias "knife" to wrap "exec configs/knifeonly.cfg"
] knife 
Unknown command: knife
] sm_alias knife anyone c "exec configs/knifeonly.cfg"
[SM] mFc. (ώŧƒ): Created alias "knife" to wrap "exec configs/knifeonly.cfg"
] knife 
Unknown command: exec
[SM] mFc. (ώŧƒ): Uses alias knife

Code:
] sm_event round_start/1 "sm_disarm @all"
[SM] mFc. (ώŧƒ): Hooking "sm_disarm @all" to event "round_start"
] kill
mFc. (ώŧƒ) suicided.
[SM] mFc. (ώŧƒ): Removed all weapons from target @all
] sm_event round_start/1 sm_disarm @all
[SM] mFc. (ώŧƒ): Hooking "sm_disarm @all" to event "round_start"
] kill
mFc. (ώŧƒ) suicided.
[SM] mFc. (ώŧƒ): Removed all weapons from target @all
Neither of the above stripped my weapons..

I also believe that the use of console commands is forbidden.
Code:
] sm_time 1.5  1 "exec blah.cfg"
[SM] mFc. (ώŧƒ): Sends 'exec blah.cfg' 1069547520 seconds into the future with 1 repeats
Unknown command: exec
] sm_time 1.5  1 "exec blah.cfg"
[SM] mFc. (ώŧƒ): Sends 'rcon exec blah.cfg' 1069547520 seconds into the future with 1 repeats
Unknown command: rcon
I had to use sm_rcon to get the config to exec



During my testing
Code:
L 01/23/2014 - 14:21:47: [SM] Native "VFormat" reported: Argument index is invalid: 3
L 01/23/2014 - 14:21:47: [SM] Displaying call stack trace for plugin "admin-tools.smx":
L 01/23/2014 - 14:21:47: [SM]   [0]  Line 3057, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::ServerCommandChainable()
L 01/23/2014 - 14:21:47: [SM]   [1]  Line 679, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::Command_AliasUse()
L 01/23/2014 - 14:22:18: [SM] Native "VFormat" reported: Argument index is invalid: 3
L 01/23/2014 - 14:22:18: [SM] Displaying call stack trace for plugin "admin-tools.smx":
L 01/23/2014 - 14:22:18: [SM]   [0]  Line 3057, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::ServerCommandChainable()
L 01/23/2014 - 14:22:18: [SM]   [1]  Line 679, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::Command_AliasUse()
L 01/23/2014 - 14:22:48: [SM] Native "VFormat" reported: Argument index is invalid: 3
L 01/23/2014 - 14:22:48: [SM] Displaying call stack trace for plugin "admin-tools.smx":
L 01/23/2014 - 14:22:48: [SM]   [0]  Line 3057, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::ServerCommandChainable()
L 01/23/2014 - 14:22:48: [SM]   [1]  Line 679, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::Command_AliasUse()
L 01/23/2014 - 14:25:16: [SM] Native "VFormat" reported: Argument index is invalid: 3
L 01/23/2014 - 14:25:16: [SM] Displaying call stack trace for plugin "admin-tools.smx":
L 01/23/2014 - 14:25:16: [SM]   [0]  Line 3057, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::ServerCommandChainable()
L 01/23/2014 - 14:25:16: [SM]   [1]  Line 679, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::Command_AliasUse()
L 01/23/2014 - 14:25:51: [SM] Native "VFormat" reported: Argument index is invalid: 3
L 01/23/2014 - 14:25:51: [SM] Displaying call stack trace for plugin "admin-tools.smx":
L 01/23/2014 - 14:25:51: [SM]   [0]  Line 3057, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::ServerCommandChainable()
L 01/23/2014 - 14:25:51: [SM]   [1]  Line 679, C:\Users\Daniel\git\sourcemodplugins\admin-tools\addons\sourcemod\scripting\admin-tools.sp::Command_AliasUse()
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows

Last edited by wtfaatp; 01-23-2014 at 17:22.
wtfaatp is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 01-28-2014 , 16:13   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #35

Updated to v1.5
Added sm_ksay to send a message to the key hint box.
Added sm_maxhealth, to change the maxhealth keyvalue (requested for tf2).
Fixed sm_respawn for Synergy.
Fixed sm_feature, it didn't mark a -1 user id as invalid.
Fixed sm_alias, the server console coudln't use alias commands.

Some neat usage examples:
Code:
// server.cfg: First round on a map is knife only (CSS or CSGO).
sm_event round_start/2 "sm_disarm @all; sm_give @all knife"

// server.cfg: An admin with access to sm_ban can use sm_knifeonly to turn the current round into a knife only round.
sm_alias sm_knifeonly sm_ban client "sm_disarm @all; sm_give @all knife"
 
// server.cfg: Simple advertations via the keyhintbox:
sm_future 60 0 ads
alias ads ads1
alias ads1 "sm_ksay @all 10 Welcome player\nhave fun!; alias ads ads2"
alias ads2 "sm_ksay @all 10 This server is\nusing Admin-Tools.; alias ads ads3"
alias ads3 "sm_ksay @all 10 Please be nice and\nrespect the admins!; alias ads ads4"
alias ads4 "sm_ksay @all 10 You can use !kill\nif you are stuck.; alias ads ads5"
alias ads5 "sm_ksay @all 10 You know how to play?\nThen help rookies - thanks!; alias ads ads1"
Download:
https://github.com/bcserv/admin-tools/releases/
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]

Last edited by Chanz; 01-28-2014 at 16:35.
Chanz is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 01-28-2014 , 16:15   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #36

@wtfaatp: The following worked for v1.5 (I put it into my server.cfg).
sm_event round_start/2 "sm_disarm @all; sm_give @all knife"
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz is offline
Allower
Senior Member
Join Date: Sep 2013
Location: SourceEngine
Old 01-30-2014 , 17:21   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #37

i think this plugin need command for server-managment like: sm_restart time (restarts server: sm_restart 5 - restarts server after 5 second)

sm_rr (restart round)

can you add command like sm_shuffle - random shuffle team members (e.g. in css)

sm_model or sm_changemodel

sm_team with Unassigned team (e.g. for hl2dm, css, may be optionaly)

and sm_clanid (like sm_rename or changes players clan tag id for css/csgo)

please make sm_score, sm_deaths, sm_money(sm_cash) for DEAD players too!

Thanks;)

Last edited by Allower; 01-30-2014 at 20:21.
Allower is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 02-02-2014 , 08:18   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #38

Updated to v1.6
Added sm_scrambleteam, shuffles all clients into different teams.
Added sm_swapteam, swaps all clients to the other team.
Fixed sm_score, sm_deaths and sm_money to target dead players too.
Removed sm_balanceteams. since its just an alias to sm_balanceteam.

Download:
https://github.com/bcserv/admin-tools/releases/

@Allower: You can use sm_alias to add such commands.
Code:
// server.cfg: You can restart the server in 5 seconds with sm_restartserver 5
sm_alias sm_restartserver z server sm_future #1 1 _restart

// server.cfg: You can use sm_rr 5 to restart the game in 5 seconds
sm_alias sm_rr sm_kick server mp_restartgame #1
As for sm_model/sm_changemodel & sm_clanid - Maybe in the next version.

What do you mean by sm_team for hl2dm/css ?
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]

Last edited by Chanz; 02-02-2014 at 08:33.
Chanz is offline
Lucky_luck
AlliedModders Donor
Join Date: May 2011
Location: Germany
Old 02-02-2014 , 10:35   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #39

Hi

can you add invisibility for player

sm_invisibility @all @t @ct @me #ID

Last edited by Lucky_luck; 02-02-2014 at 10:53.
Lucky_luck is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 02-02-2014 , 10:58   Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #40

Hi, you can change the rendermode to make players invisible.
Code:
//server.cfg: Make players invisible
sm_alias sm_invis sm_rendermode client sm_rendermode @1 10
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode