Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2009-02-21 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
February 21, 2009, 07:17:45 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame
Must Visit it
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: How would I make this?  (Read 68 times)
Kalashnikitty
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 100



Darin880

myServer 69.12.92.122:29444
(Warning: click connects through Steam)
« on: February 19, 2009, 02:45:43 AM »

I wanted to make a sound clip play everytime a specific player joined the server, such as myself, as a joke. I was thinking it would require Steam ID's to know who to play it for. Can anyone help? I know this isnt really WCS related but I'm thinking it'd be possible to do with ES and EST, so that's why I posted it in this section. Smiley Thanks. Also if something like this is already made then post a link for it.
Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2032



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #1 on: February 19, 2009, 04:04:10 AM »

there is an addon called connect_sounds that you can configure to do this
Logged


Kalashnikitty
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 100



Darin880

myServer 69.12.92.122:29444
(Warning: click connects through Steam)
« Reply #2 on: February 19, 2009, 07:03:13 AM »

wow! holiday himself! Wink where can i get this?
Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 880



WWW
16maxpayne16

myServer 81.26.221.156:27015
(Warning: click connects through Steam)
« Reply #3 on: February 19, 2009, 09:28:25 AM »

wow! holiday himself! Wink where can i get this?
addons.eventscripts.com

and if you want to know the event its
event player_connect Tongue
Logged

Server = work in progress Smiley


WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Online Online

France France

Posts: 1610


Big Berettonawak is watching you...



Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #4 on: February 19, 2009, 10:04:15 AM »

http://code.eventscripts.com/93447
Logged


MY INTERNET:
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 880



WWW
16maxpayne16

myServer 81.26.221.156:27015
(Warning: click connects through Steam)
« Reply #5 on: February 19, 2009, 10:05:53 AM »

mistakes beret Tongue

Code
GeSHi (python):
def player_connect(ev):
if ev['networkid'] == "Steam_X:XXXXX":
es.playsound(ev['userid'], "yoursoundpath", 1)

if you use ev in def then dont use event_var in your code but ev Tongue
Logged

Server = work in progress Smiley


HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2032



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #6 on: February 19, 2009, 10:34:13 AM »

heres the link to connect_sounds , its fully configurable to work by players name,steam id or ip,
http://addons.eventscripts.com/addons/view/2821
Logged


WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Online Online

France France

Posts: 1610


Big Berettonawak is watching you...



Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #7 on: February 19, 2009, 10:49:15 AM »

mistakes beret Tongue

Code
GeSHi (python):
def player_connect(ev):
if ev['networkid'] == "Steam_X:XXXXX":
es.playsound(ev['userid'], "yoursoundpath", 1)

if you use ev in def then dont use event_var in your code but ev Tongue
yes, actually.

thanks maxxi for pointing i haven't eaten enough nutella for today Tongue
Logged


MY INTERNET:
Kalashnikitty
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 100



Darin880

myServer 69.12.92.122:29444
(Warning: click connects through Steam)
« Reply #8 on: February 19, 2009, 10:20:20 PM »

thanks
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 06:47:40 PM
I voted yes, but more mods should vote.
Today at 02:37:24 PM
I voted no and I left a reason why.
Today at 02:23:56 PM
voted
Today at 09:37:19 AM
please go to my thread and try help. any master coder PLEASE!!!!
February 20, 2009, 03:47:19 PM
how to save exp when i restart serve some people loose thier lv
Recent
[Today at 06:51:20 PM]

[Today at 06:50:21 PM]

[Today at 06:49:20 PM]

[Today at 06:42:41 PM]

[Today at 06:39:01 PM]

[Today at 05:03:24 PM]

[Today at 02:50:04 PM]

[Today at 02:44:36 PM]

[Today at 02:16:44 PM]

[Today at 02:10:45 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 25 queries.