round start script error(eventscript)

A Forum Thread for Counter-Strike: Source

Yo, buddy. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending tmfcks93 points.
  • Post: Give tmfcks93 your thoughts on this Thread.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.
Mascot

Join the community!

Sign up

Already a Bananite? Login

round_start eventscript

hello..?! i want to make a simple round start music at my deathmatch server my friend says that just paste script at activated eventscript like this (i pasted it es_knives) ============================ es_knives =========================== block config { //장풍시 당한 적이 밀리는 정도 pushscale 5000 //칼 데미지 knifedamage 65 } block load { es_set x 0 es_set y 0 es_set z 0 es_set vt 0 es_set fA 0 es_set fB 0 es_set fC 0 es_set pushscale 400 es_set knifedamage 65 es_set userhp 0 es_set isend 0 es_xset count_ct 0 es_xset second_userid 0 es_doblock knife/config } event player_hurt { if (event_var(es_attackerteam) != event_var(es_userteam)) do { if (event_var(attacker) != 0) do { if (event_var(weapon) equalto knife) do { // t = sqrt(x*x + y*y + z*z) // x /= t // y /= t // z /= t es_getplayerprop fA event_var(attacker) "CBaseEntity.m_vecOrigin" es_getplayerprop fB event_var(userid) "CBaseEntity.m_vecOrigin" es_createvectorfrompoints fC server_var(fA) server_var(fB) es_splitvectorstring x y z server_var(fC) //es_keygetvalue _weapon weapons pushscale event_var(weapon) es_mathparse vt "sqrt(x^2+y^2+z^2)" es_mathparse x "pushscale*(x/vt)" es_mathparse y "pushscale*(y/vt)" es_mathparse z "pushscale*(z/vt)" es_createvectorstring fB server_var(x) server_var(y) server_var(z) es_setplayerprop event_var(userid) "CCSPlayer.baseclass.localdata.m_vecBaseVelocity" server_var(fB) //효과 es damage event_var(userid) server_var(knifedamage) 32 event_var(attacker) //센터화면에 뜨는 메세지 es est_csay #h event_var(es_attackername) Assassination mode! es_emitsound player event_var(userid) ambient/explosions/explode_7.wav 1.0 0.5 } } } } } event player_spawn { es_give event_var(userid) item_nvgs } event bomb_planted { es_msg #green BOMB TIMER SET TO server_var(mp_c4timer) SECONDS, DEFEND IT! es_xsetinfo randplay 0 es_xrand randplay 1 5 if (server_var(randplay) == 1) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/c45.mp3 1.0" if (server_var(randplay) == 2) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/c41.mp3 1.0" if (server_var(randplay) == 3) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/c42.mp3 1.0" if (server_var(randplay) == 4) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/c43.mp3 1.0" if (server_var(randplay) == 5) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/c44.mp3 1.0" } event round_Start { es_xsetinfo randplay 0 es_xrand randplay 1 10 if (server_var(randplay) == 1) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/0.mp3 1.0" if (server_var(randplay) == 2) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/1.mp3 1.0" if (server_var(randplay) == 3) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/2.mp3 1.0" if (server_var(randplay) == 4) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/3.mp3 1.0" if (server_var(randplay) == 5) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/4.mp3 1.0" if (server_var(randplay) == 6) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/5.mp3 1.0" if (server_var(randplay) == 7) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/6.mp3 1.0" if (server_var(randplay) == 8) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/7.mp3 1.0" if (server_var(randplay) == 9) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/8.mp3 1.0" if (server_var(randplay) == 10) then foreach player tempuserid #human "es_playsound server_var(tempuserid) remi/9.mp3 1.0" } ======================================================================== yea.. es_knives and bomb_planted script works well.. though round_start isn't work i think there's no error (even mistype) acturally.. im beginner at eventscript.. so maybe i overlooked something.. HELP ME T.T (p.s music file located right route and no error ; works well in WMP)

Posts

  • 8y
    Fibbs avatar
    Fibbs avatar Offline
    Member Joined 10y
    29,089 points Ranked 147th
    23 medals 1 rare
    • 6 years a member Medal icon
    • Prefaber of the Month, June 2012 Medal icon
    • MiPper of the Month, June 2012 Medal icon
    • Prefaber of the Month, March 2013 Medal icon
    • Texturer of the Month, July 2014 Medal icon
    • Became a Studio Leader Medal icon
    I see no errors with the script.
    Do you get any errors in console about the sound at round start? Something like can't find file, or something about it being at the wrong rate.

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Submitter

tmfcks93 avatar
tmfcks93 Offline
Member Joined 10y

tmfcks93
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Stats

Posts
1
Views
1,301
Date Added
8y
bcp.crwdcntrl.net tracking pixel