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

Quick EventScripts examples question


Post New Thread Reply   
 
Thread Tools Display Modes
joysticker
Member
Join Date: Mar 2005
Old 03-22-2005 , 19:06  
Reply With Quote #11

Quote:
Originally Posted by Rebell
Hi,

this dont work:
Code:
// welcome message
es_tell event_var(userid) ah - a new victim on our server : event_var(name)
ah, i remembered something just some seconds ago.

put that code into player_spawn.cfg and it might work.
player_spawn is triggered when a player finally spawns on the server, that means all connecting/downloading/etc is finished.

player_spawn doesnt offer the var "name" though, so you should use

Code:
// welcome message
es_tell event_var(userid) Welcome on Servername
or something like that
joysticker is offline
Mattie
Veteran Member
Join Date: Jan 2005
Old 03-23-2005 , 01:15   Specifying a directory for scripts
Reply With Quote #12

Quote:
Originally Posted by Rebell
hmmm ... and please could you put YOUR configs into /cfg/events/ so that we have a better file-structure ?
Ask and ye shall receive! The latest v0.3.0 update supports relocating the scripts to a subdirectory of your choice.. Check out the details in the EventScripts topic:
http://www.sourcemod.net/~sourcemod/...opic.php?t=908

Let me know what you think!
-Mattie
Mattie is offline
imported_sphinx
Senior Member
Join Date: Dec 2004
Old 03-24-2005 , 03:53  
Reply With Quote #13

Code:
if (event_var(weapon) equalto "world") then ma_play 8
don't work.
i've suicided on piranesi jumping from height.
any ideea?
imported_sphinx is offline
imported_sphinx
Senior Member
Join Date: Dec 2004
Old 03-24-2005 , 03:57  
Reply With Quote #14

Code:
if (event_var(weapon) equalto "world") then ma_play 8
don't work.
i've suicided on piranesi jumping from height.
any ideea?
imported_sphinx is offline
[TGC]spin
Senior Member
Join Date: Dec 2004
Old 03-24-2005 , 05:05  
Reply With Quote #15

Helo m8

We have this on our server which works fine give it a try " you can take the text out if you wanted too"

in player_death.cfg
if (event_var(weapon) equalto "world") then ma_play 5 // this is if you kill yourself
if (event_var(weapon) equalto "world") then es_msg event_var(es_username) killing yourself is not the answer it lets you down and your team!!


spin
[TGC]spin is offline
Rebell
Veteran Member
Join Date: Nov 2004
Location: GERMANY
Old 03-24-2005 , 06:26   Re: Specifying a directory for scripts
Reply With Quote #16

Quote:
Originally Posted by Mattie
Ask and ye shall receive! The latest v0.3.0 update supports relocating the scripts to a subdirectory of your choice..
Let me know what you think!
-Mattie
Yes ! eventscripts_subdirectory is a good feature !!

__________________
Rebell is offline
muadib
New Member
Join Date: Mar 2005
Old 03-26-2005 , 17:18   question about subdirectory
Reply With Quote #17

Hi, only a question about the subdirectory.

It is a god feature, but i dont know wat i have to write in the autoexec.cfg.

Please help

thx muadib
muadib is offline
Mattie
Veteran Member
Join Date: Jan 2005
Old 03-26-2005 , 17:23   Re: question about subdirectory
Reply With Quote #18

Quote:
Originally Posted by muadib
Hi, only a question about the subdirectory.

It is a god feature, but i dont know wat i have to write in the autoexec.cfg.

Please help
I'm not sure I understand the question, but you only really need the following (taken from the EventScripts information topic in this forum):

mattie_eventscripts 1
eventscripts_subdirectory events

That's assuming you'd rather place your scripts in the "cstrike/cfg/events" directory. If you don't specify a "eventscripts_subdirectory" then it defaults to looking for the scripts in "cstrike/cfg".

If that doesn't answer your question, please clarify.

Thanks,
-Mattie
Mattie is offline
muadib
New Member
Join Date: Mar 2005
Old 03-26-2005 , 18:40   yeaaa it works
Reply With Quote #19

Thank You Mattie

Now it works.

Sry my englisch inst so god so i need a little bit longer to understand.


thx

muadib
muadib 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 02:03.


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