Raised This Month: $ Target: $400
 0% 

server_cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-17-2006 , 01:33   server_cmd
Reply With Quote #1

hi , im having a problem with executing server comands . i want this part of my code to execute a lsit of settings and server commands on my server , but its not working or doing anything . I looked in the amxmodx doc , but it doesnt show the right way to use it . so heres what that part of my script looks like
Code:
server_cmd("humans_join_team" , "any");  server_cmd("mp_autoteambalance" , "1");  server_cmd("mp_limitteams" , "1");  server_cmd("mp_c4tmer" , "45");  server_cmd("mp_freezetime" , "6");  server_cmd("mp_friendlyfire" , "1");  server_cmd("mp_tkpunish" , "1");  server_cmd("sv_alltalk" , "0");  server_cmd("sv_gravity" , "800");  server_cmd("amx_awppv" , "0");  server_cmd("DF_hook_on" , "0");
so can someone tell me how im using them wrong? thank you
Nostrodamous is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 10-17-2006 , 01:34   Re: server_cmd
Reply With Quote #2

you are using the native in a wrong way
http://www.amxmodx.org/funcwiki.php?go=func&id=232
Freecode is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-17-2006 , 01:34   Re: server_cmd
Reply With Quote #3

http://www.amxmodx.org/funcwiki.php?...cvar&go=search

http://www.amxmodx.org/funcwiki.php?..._cmd&go=search
As stated in the funcwiki don't use this function to set cvar.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-17-2006 , 01:37   Re: server_cmd
Reply With Quote #4

wow that was a super - uber- fast response , thanks guys I read that too when I went over the doc , I didnt think of the way i was using it as setting cvars , I thought setting cvars was considerred register_cvar . Ok ill try those commands out and see if they work . thanks alot guys + karma

EDIT ; ok i have on more question about the server_cmd function . can it be used to execute a restart server command , if it it can do i need to use rcon restart or just restart ? thanks again guys

Last edited by Nostrodamous; 10-17-2006 at 01:46. Reason: new question
Nostrodamous is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 10-17-2006 , 02:47   Re: server_cmd
Reply With Quote #5

use what you would use in a server console.
Freecode is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-17-2006 , 02:52   Re: server_cmd
Reply With Quote #6

sweet thanks again , ill go try it out
Nostrodamous 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 04:49.


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