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

Auto command plugin request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
masterj1337
Junior Member
Join Date: Jun 2007
Old 08-22-2007 , 18:51   Auto command plugin request
Reply With Quote #1

I was wondering if someone could make a auto exec command plugin so that when i start the server it automatically puts some commands in... and i need to be able to edit commands

thanks alot
masterj1337 is offline
thebobjones34
Member
Join Date: Oct 2006
Old 08-22-2007 , 21:43   Re: Auto command plugin request
Reply With Quote #2

dude.... do you mean like cvars... hey i may be wrong but could you not just add them to your server.cfg? or your amxx.cfg?

If you mean commands, that might work also. I am not sure but you may be able also add commands to your amxx.cfg and server.cfg
__________________
thebobjones34 is offline
Send a message via AIM to thebobjones34
masterj1337
Junior Member
Join Date: Jun 2007
Old 08-22-2007 , 23:38   Re: Auto command plugin request
Reply With Quote #3

if i add them to server.cfg or amxx.cfg will they automattically go on when i start the server and if so how
masterj1337 is offline
thebobjones34
Member
Join Date: Oct 2006
Old 08-22-2007 , 23:57   Re: Auto command plugin request
Reply With Quote #4

I think your adding a cvar, so um if its a cvar from a amxx plugin i suggest adding it to your amxx.cfg as such below...
Code:
// AMX Configuration File
echo Executing AMX Mod X Configuration File

// Default access for all non admin players (see users.ini for access details)
amx_default_access "z"

// Name of setinfo which should store a password on a client (you should change this)
// (Example: setinfo _pw "password")
amx_password_field "_pw"

// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
amx_mode 1

// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
amx_show_activity 2

// Frequency in seconds and text of scrolling message
amx_scrollmsg "Welcome to %hostname% -- This server is using AMX Mod X" 600

// Center typed colored messages (last parameter is a color in RRRGGGBBB format)
amx_imessage "Welcome to %hostname%" "000255100"
amx_imessage "This server is using AMX Mod X\nVisit http://www.amxmodx.org" "000100255"

// Frequency in seconds of colored messages
amx_freq_imessage 180

// Set in seconds how fast players can chat (chat-flood protection)
amx_flood_time 0.25

// Amount of reserved slots, amx_hideslots must be 1 to use this cvar (for more details see comments in plugin source)
amx_reservation 1

// If you set this to 1, you can hide slots on your server
amx_hideslots 1

// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"

// Announce "say thetime" and "say timeleft" with voice
amx_time_voice 1

// Minimum delay in seconds between two voting sessions
amx_vote_delay 10

// How long voting session goes on
amx_vote_time 10

// Display who votes for what option
amx_vote_answers 1

// Some ratios for voting success
amx_votekick_ratio 0.40
amx_voteban_ratio 0.40
amx_votemap_ratio 0.40
amx_vote_ratio 0.02

// Max. time to which map can be extended
amx_extendmap_max 90

// Step for each extending
amx_extendmap_step 15

// Rank mode
// 0 - by nick
// 1 - by authid 
// 2 - by ip
csstats_rank 1

// Max size of the stats file
csstats_maxsize 3500

// Duration of HUD-statistics
amx_statsx_duration 12.0

// HUD-statistics display limit relative round freeze end
// Negative time will clear the HUD-statstics before the round freeze time has ended
amx_statsx_freeze -2.0

//If you set this to 0, clients cannot chose their language
amx_client_languages 1

// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
amx_debug 1

// Plugin MultiLingual Debug
// To debug a language put its 2 letter code between quotes ("en", "de", etc)
// "" means disabled
amx_mldebug ""

<cvar name> <cvar value>
And if its just a normal server cvar i suggest adding it here....
to your server.cfg
Code:
exec banned.cfg
exec listip.cfg
mp_logdetail 0
mp_logmessages 0
mp_timelimit "60"
mp_autokick 1
mp_autoteambalance "1"
mp_c4timer "30"
mp_flashlight 0
mp_footsteps 1
mp_forcechasecam "0"
mp_freezetime "3"
mp_friendlyfire "0"
mp_hostagepenalty 4
mp_limitteams 1
mp_roundtime "5"
mp_tkpunish "0"
sv_restartround 1
sv_maxspeed 320
sv_proxies 1
allow_spectators 90
mp_startmoney "2000"
mp_chattime 5
sv_allowupload 1
sv_voiceenable 1
sv_alltalk 0
sv_voicequality 5
sv_voicecodec voice_speex
pausable 0
decalfrequency 40
mp_falldamage 0
sv_aim 0
sv_cheats 0
sv_maxrate 20000
sv_minrate 4000
sv_lan 0
sv_contact
sv_region "0"
__________________
thebobjones34 is offline
Send a message via AIM to thebobjones34
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 08-23-2007 , 00:24   Re: Auto command plugin request
Reply With Quote #5

if its for amxx related plugins,

it goes in amx.cfg

in final add the cvars.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
Old 08-23-2007, 00:27
X-Script
This message has been deleted by X-Script. Reason: never mind
hollow2005
BANNED
Join Date: Aug 2007
Old 08-23-2007 , 13:12   Re: Auto command plugin request
Reply With Quote #6

emm... can i add in amxx.cfg <--- amx_hpk 666 ? or it won't work?
hollow2005 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-23-2007 , 13:20   Re: Auto command plugin request
Reply With Quote #7

Keep in mind that amxx.cfg is executed each begining of maps.
The same can occur with server.cfg is the variable mapchangecfgfile is "server.cfg"
ConnorMcLeod is offline
hollow2005
BANNED
Join Date: Aug 2007
Old 08-23-2007 , 14:49   Re: Auto command plugin request
Reply With Quote #8

and can i add in server.cfg sv_restart, so my server automaticly restarts?
caz i did it and it doesnt work
i put
sv_restart 1
sv_restart 2
sv_restart 3
sv_restart 4
sv_restart 5

it doesnt work =/
ore i need to do it somehow els to get autorestart =/???
hollow2005 is offline
masterj1337
Junior Member
Join Date: Jun 2007
Old 08-23-2007 , 18:04   Re: Auto command plugin request
Reply With Quote #9

where is the server config
masterj1337 is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 08-23-2007 , 18:27   Re: Auto command plugin request
Reply With Quote #10

in cstrike folder.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
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 10:30.


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