Raised This Month: $32 Target: $400
 8% 

Solved Run admin command in server_cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 10-29-2017 , 00:21   Run admin command in server_cmd
Reply With Quote #1

When an admin is in the server he can run .start command.

I want to run that from rcon or a console like this.
Or from a plugin i should say which runs a server command.

Code:
server_cmd(".start")
I remember i had a trick for it just can remember it.

I have tryied these commands.

Code:
server_cmd("say .start")
server_cmd("rcon .start")
server_cmd("rcon amx_rcon .start")
server_cmd("amx_rcon .start")

Last edited by 4ever16; 10-30-2017 at 11:31.
4ever16 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-29-2017 , 13:05   Re: Run admin command in server_cmd
Reply With Quote #2

It depends on how the plugin was written. If the plugin was written as a chat command that checks for admin status then you might not be able to use it via rcon (depending on how it's written).

Post a link to the plugin and we can tell you more accurate and specific info.

P.S. Based on you posting plugin code snippets, this question is not an AMX Mod X question, you should post in Scripting Help.
__________________

Last edited by fysiks; 10-29-2017 at 13:06.
fysiks is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 10-29-2017 , 13:56   Re: Run admin command in server_cmd
Reply With Quote #3

Well i have solved it before i used something simular just dont remember how.

Well hope a mod can move my thread if there is any mods here.
4ever16 is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-29-2017 , 15:33   Re: Run admin command in server_cmd
Reply With Quote #4

Quote:
Originally Posted by 4ever16 View Post
Well i have solved it before i used something simular just dont remember how.

Well hope a mod can move my thread if there is any mods here.
yeah you could also register a server console command next to the chat one, in amxmodx that would be register_srvcmd, not sure about srcmod
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 10-30-2017 , 11:30   Re: Run admin command in server_cmd
Reply With Quote #5

Quote:
Originally Posted by aron9forever View Post
yeah you could also register a server console command next to the chat one, in amxmodx that would be register_srvcmd, not sure about srcmod
Cool man it worked! Thanks!
4ever16 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 08:45.


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