EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
addon (49) admin (269) admins (14) advert (15) adverts (19) afk (15) alerts (12) ammo (23) anti (15) auth (16) automatic (12) awp (23) ban (18) ba_jail (17) bhop (19) block (19) bomb (40) bonus (23) bot (24) bot-management (19) bots (17) bunnyhop (11) Buy (21) cash (65) chat (57) cheat (11) clan (16) classes (22) color (21) colors (18) command (20) commands (18) config (22) connect (42) CS:S (16) css (2507) Damage (35) database (11) dead (15) death (19) deathmatch (70) deathrun (12) disconnect (18) Dissolve (11) dm (20) dod:s (11) dods (389) easy (17) effects (120) English (15) entity (21) es_tools (12) Eventscript (12) flashbang (25) français (99) french (36) fun (288) funny (16) Gabeee (11) gameplay (174) give (16) gravity (11) grenade (25) grenades (29) gun (14) GunGame (26) GunGame5 (11) guns (17) Hack (15) headshot (32) health (55) hegrenade (13) hl2dm (332) HP (13) info (48) information (16) jail (26) jailbreak (11) join (23) jump (12) kick (23) kill (44) kills (22) knife (57) leveling (36) management (14) mani (15) map (25) map-management (27) maps (15) match (17) menu (106) message (20) messaging (52) mod (109) model (14) models (32) money (42) motd (13) music (29) mute (18) nades (18) name (13) noblock (35) player (40) player-management (31) player-tracking (28) popup (56) props (23) protection (27) punishment (50) python (63) quake (18) radio (21) random (36) rank (35) rates (16) rcon (13) realism (21) respawn (61) restrict (36) round (20) rpg (24) rules (42) say (11) scout (19) Script (20) script-helper (25) scriptpack (33) sdk (151) server (44) server-tools (42) shop (12) silly (31) simple (27) skins (25) slay (13) soccer (11) sound (45) sounds (92) spawn (63) speed (25) statistics (13) stats (48) STEAMID (23) Superhero (13) surf (31) Team (25) team-balance (14) teleport (12) text (14) TF2 (143) time (17) timer (14) tools (15) tracers (17) triggers (11) uedi (18) uses_auth (18) utility (11) vip (12) vote (36) voting (22) war (20) wcs (24) wcs:Python (32) weapon (77) weapons (114) web (14) welcome (12) zm (24) zombie (90) zombiemod (51) zombies (11)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (11) .eMko* (6) 101satoon101 (10) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (8) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (7) Bioko (7) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (30) cagemonkey (8) carbon-14 (10) CaskioUTF (5) cbirou (15) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (9) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) craziest (10) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (16) dhack (16) Di[M]aN (12) DoCky (27) Don (15) dordtcore (8) DragonFreddo (8) Drassil (5) Einlanzers (42) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (9) Franc1sco (9) freddukes (18) Frequency (6) Fulmine (5) GAMEREN2 (8) german9114 (13) GODJonez (38) GoodfellaDeal (5) Hansi (6) HitThePipe (7) HOLLDIDAY (9) Icetouch (6) ichthys (25) infamous1 (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (10) KDBFame (6) L'In20Cible (7) Largo Usagi (10) Lobe (11) loKkdoKk (7) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (6) Matth (6) Mattie (20) MBchrono (15) McFly (20) Medda (5) Memphis-84 (10) Messiah93 (12) Mickyy (5) micmacx (6) Mitchell (5) Mordavolt (7) MrScriptaz (5) mryoung (6) Nicolous (26) ojii (31) Omega_K2 (8) Owned|Myself (8) P3N (7) pand3mic (5) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) randomknifer (9) Ratzee (6) ReaCtioN2oo9 (6) Rennnyyy (17) revolutionfighters (6) RideGuy (12) Rio (9) Roeliekt (6) runamagic (13) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (7) sgt.angel (6) sicilia (5) sicman_adrian (22) skillz92 (7) sn4k3 (18) snake38 (10) sonicsight (7) spoonman184 (8) stabby (22) stas (22) Strontium Dog (30) SumGuy14 (25) SuperDave (45) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (20) TheDonFather (5) theresthatguy (6) Tiny Tod (7) Totyahun (9) uedi (38) Undead (25) usernamesaretaken (15) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) X-Mania (5) XE_ManUp (13) xfalcon61 (5) zSweetXz (5) [Cs]Lord_Inferno2 (11) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Go to page 1, 2, 3, 4  Next
Author Message
User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2005-12-29, 7:49 pm 
   Post subject: EinsMapCheck

EinsMapCheck v1.4

Requirements:
Eventscripts 1.0

Install:
1. Put es_EinsMapCheck.txt into cstrike/addons/eventscripts/EinsMapCheck/
2. Put es_MapCheck_db.txt into cstrike/addons/eventscripts/EinsMapCheck/
3. Put this in autoexec.cfg
Code:
es_load EinsMapCheck

4. Restart your server

Features:
Allows you to have special settings for a map or maptype.

Configuration:
Edit es_MapCheck_db.txt with the maps and/or prefixes you wish to trigger. Supports an "other" option.


Happy gaming,
Einlanzers

_________________
Image


Last edited by Einlanzers on 2006-06-23, 2:24 am, edited 5 times in total.




User avatar
Site Administrator
Site Administrator
Profile

Posts: 7438
Location:
At Work
 
New postPosted: 2005-12-29, 8:47 pm 

Another handy submission from Sir Einlanzers!
-Mattie


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2005-12-30, 3:05 am 

Thank you very much, the newly-made Mrs. Helen.

Never stopped loving you,
Einlanzers


User avatar
Guru
Guru
Profile

Posts: 1332
Location:
Land O' Too Many Lakes

Steam Friends Name: Maban
 
New postPosted: 2005-12-30, 1:57 pm 

Wait...what did Mattie's post have to do with Helen? :?

I know it would take a few seconds to add these for people, but, maybe add dotd_ and fy_?


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2005-12-30, 3:56 pm 

Maban, Maban, Maban..in it's current form it only serves as a guideline to a world of possibilities. I made it this simple so users can add their own prefixes and actually LEARN while doing it, but I don't expect them to know how to do it on their own, so I guess (for you) I'll write a little tutorial.
Let's say you want to add the fy_ maps first you would edit es_MapCheck_db.txt
Quote:
"MapCheck"
{
"Check"
{
"cs" "1"
"de" "1"
"surf" "1"
"fy" "1"
}
}

Then you would create map_MAPPREFIX.cfg, in this case the file would be called map_fy.cfg and you would stick it in any commands you would like to have executed solely on fy map types.
Really simple, wasn't it?

Hope this helps,
Einlanzers


User avatar
New User
Profile

Posts: 2
Location:
Bavaria Germany
 
New postPosted: 2006-01-02, 6:30 am 

Hi ,
first: sorry for my bad english

I have a problem with this script,

look at my server log:
Code:
Started map "surf_leet_turbo" (CRC "-578166142")
12:14:46 server_cvar: "sv_airaccelerate" "100"
12:14:46 server_cvar: "sv_accelerate" "100"
12:14:46 server_cvar: "sv_accelerate" "5"
12:14:46 Log file closed
12:14:46 Log file started (file "logs/L0102025.log") (game "/local/gameserver/85.14.227.194/halflife2/cstrike") (version "2596")
12:14:46 server_cvar: "sv_airaccelerate" "10"
12:14:46 World triggered "Round_Start"


first it seems it's all ok but then the server change back to the standard settings
any ideas?


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2006-01-02, 3:04 pm 

Do you have anything in server.cfg? Because that is triggered every map change aswell and may be triggering after my script. If you do you something in server.cfg you have 2 options. You can either move it to autoexec.cfg or you can use
Code:
es_delayed 1

Before all your commands in your map file.

*EDIT* Forget what I said above. Just download the new version and it should trigger after the other one.

Cheers,
Einlanzers


Last edited by Einlanzers on 2006-01-02, 3:08 pm, edited 1 time in total.

User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2006-01-02, 3:08 pm 

EinsMapCheck v1.1

Changes:
Added a delay to the execution of the mapprefix configs incase another script triggers every map and thus cancels it out.


User avatar
New User
Profile

Posts: 2
Location:
Bavaria Germany
 
New postPosted: 2006-01-02, 4:12 pm 

works fine, thanks :D


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2006-01-03, 5:37 pm 

EinsMapCheck v1.2

Updates:
Added "other" option so that you can trigger a config if the prefix isn't listed.

To do this first edit es_MapCheck_db.txt:
Quote:
"MapCheck"
{
"Check"
{
"cs" "1"
"de" "1"
"surf" "1"
"other" "1"
}
}

Then simple make sure map_other.cfg exists and put whatever code you want to execute inside that file.

Cheers,
Einlanzers


User avatar
Experienced
Profile

Posts: 423
 
New postPosted: 2006-02-21, 8:53 am 

hi! one question about the es_scriptpack_register.cfg

i am (un)registering scriptpacks very often during the game... withou maprestart or something...

i dont understand eventscript by now... but this is exucuted every time
Code:
es_keygroupdelete MapCheck
es_keygroupload MapCheck server_var(EinsMapCheck_dir)
es_xsetinfo check_map 0
es_xsetinfo map_prefix 0
es_xsetinfo format_map 0
es_setinfo current_map server_var(eventscripts_currentmap)
es_token map_prefix server_var(current_map) 1 "_"
es_format format_map %1%2%3%4 server_var(EinsMapCheck_dir) "map_" server_var(map_prefix) ".cfg"
es_keygetvalue check_map MapCheck Check server_var(map_prefix)

i register another scriptpack... does this HAS to be like this?? or is there a possibility to run it only when registering the mapcheck scriptpack? or is it nessesary for the script to work properly?

EDIT:
is it possbile to move the entire content to a new cfg file??
Code:
if (event_var(SCRIPTPACK) equalto SCRIPTPACKNAME) then exec server_var(newconfig.cfg)

_________________
afk


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2006-02-21, 1:48 pm 

EinsMapCheck v1.3

Updates:
Changed it so it only triggers on register of THIS scriptpack and on mapchange.

_________________
Image


User avatar
Experienced
Profile

Posts: 423
 
New postPosted: 2006-02-21, 2:03 pm 

thx a lot!!!!!!

_________________
afk


User avatar
Newbie
Profile

Posts: 30
 
New postPosted: 2006-02-27, 8:43 pm 

Would this work for maps without a '_'. Like scoutzknivez?


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2006-02-27, 9:15 pm 

Yeah like this:
es_MapCheck_db.txt
Code:
"MapCheck"
{
   "Check"
   {
      "other" "1"
   }
}


map_other.cfg
Code:
es_xsetinfo format_map 0
es_format format_map %1%2%3%4 server_var(EinsMapCheck_dir) "map_" server_var(eventscripts_currentmap) ".cfg"
if (server_var(eventscripts_currentmap) equalto "scoutzknivez") then es exec server_var(format_map)


Then in map_scoutzknivez.cfg you'd stick the code you wanted.

_________________
Image


User avatar
Experienced
Profile

Posts: 423
 
New postPosted: 2006-02-28, 3:37 am 

if i have a limited number of maps which require some special settings like surf_japan for example would it be possible to do something like

{
"cs" "0"
"de" "0"
"surf" "1"
"other" "0"
"surf_japan" "1"
}

this would result in execing map_surf.cfg and map_surf_japan.cfg

_________________
afk


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4265
Location:
Michigan
 
New postPosted: 2006-03-16, 12:49 pm 

Wow..how did I overlook this...sorry philippK :-(. I hope you're still interested in this. This is basically the same thing as my previous example:

es_MapCheck_db.txt

Code:
"MapCheck"
{
   "Check"
   {
      "surf" "1"
   }
}


map_surf.cfg
Code:
es_xsetinfo format_map 0
es_format format_map %1%2%3%4 server_var(EinsMapCheck_dir) "map_" server_var(eventscripts_currentmap) ".cfg"
if (server_var(eventscripts_currentmap) equalto "surf_japan") then es exec server_var(format_map)


map_surf_japan.cfg
Code:
STICK YOUR CODE HERE



OR:

If you have a ton of maps you could just create a new little database like so:

es_MapCheck_surf_db.txt

Code:
"MapCheck_surf"
{
   "surf"
   {
      "surf_japan" "1"
   }
}



es_MapCheck_db.txt

Code:
"MapCheck"
{
   "Check"
   {
      "surf" "1"
   }
}


Add this:
es_map_start.cfg
Code:
es_keygroupdelete MapCheck_surf
es_keygroupload MapCheck_surf server_var(EinsMapCheck_dir)


map_surf.cfg
Code:
es_xsetinfo surf_check 0
es_xsetinfo format_map 0
es_keygetvalue surf_check MapCheck_surf surf server_var(eventscripts_currentmap)
es_format format_map %1%2%3%4 server_var(EinsMapCheck_dir) "map_" server_var(eventscripts_currentmap) ".cfg"
if (server_var(surf_check) equalto "1") then es exec server_var(format_map)


map_surf_japan.cfg
Code:
CODE GOES HERE


This method would provide for more expansion.

Cheers (and sorry for the delay),
Einlanzers

_________________
Image


User avatar
Veteran
Profile

Posts: 872
Location:
New Jersey
 
New postPosted: 2006-06-23, 1:33 am 

ES 1.0+ UPDATE PLEASE :)

yes I was yelling at you :p

_________________
Image
BYFBO. Custom Maps, http://www.pandatales.org/BYFBO_maps.html


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ]  Go to page 1, 2, 3, 4  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group