AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] How to execute server console command (https://forums.alliedmods.net/showthread.php?t=238043)

Flick3rR 04-03-2014 06:29

[HELP] How to execute server console command
 
Hi, all! My idea is like in some case (no matter what), I need to execute a command in the server console, like: "amx_slay" or "amx_banip". So, I want to ask how to make the script for this, if it's possible. Something like:
server_console("amx_banip %s 200 "Hack"", user_name)
Thanks in advance!!

YamiKaitou 04-03-2014 06:32

Re: [HELP] How to execute server console command
 
server_cmd

Really, did you even try to look yourself first?

Flick3rR 04-03-2014 07:27

Re: [HELP] How to execute server console command
 
Quote:

Originally Posted by YamiKaitou (Post 2119566)
server_cmd

Really, did you even try to look yourself first?

Thanks. So, do you think I didn't try. I tried, but didn't find exactly what I was searching. Thanks, wasn't that hard, how I expected :D :D :D
{Don't hate the noobz}

YamiKaitou 04-03-2014 07:43

Re: [HELP] How to execute server console command
 
Quote:

Originally Posted by Flick3rR (Post 2119580)
Thanks. So, do you think I didn't try. I tried, but didn't find exactly what I was searching. Thanks, wasn't that hard, how I expected :D :D :D
{Don't hate the noobz}

http://www.amxmodx.org/funcwiki.php?...ver_&go=search
https://mxr.alliedmods.net/amxmodx-c...mxmodx-central
These 2 simple searches prove that you didn't search. A 3rd search would have been to look in your include files

Flick3rR 04-03-2014 08:26

Re: [HELP] How to execute server console command
 
OK, I didn't search with this keywords, because I didn't get the idea. I searched with other keywords like: execute server console command plugin
how to attach console command in plugin
and other likewise... Didn't get the result after all, but you are here to help the good unsearchfull people like me. Thanks :D
{Don't hate the noobz}

Black Rose 04-03-2014 11:20

Re: [HELP] How to execute server console command
 
Quote:

Originally Posted by YamiKaitou (Post 2119583)
http://www.amxmodx.org/funcwiki.php?...ver_&go=search
https://mxr.alliedmods.net/amxmodx-c...mxmodx-central
These 2 simple searches prove that you didn't search. A 3rd search would have been to look in your include files

I thought the funcwiki was broken?
Edit: Nvm, it defenitely is...
Quote:

Originally Posted by Funcwiki
134 functions found



All times are GMT -4. The time now is 05:56.

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