Description
First EventScript Addon. Its pretty basic, plays some sounds when objective events happen and some fun text
[code]// Script By Razgriz
// All it does is play sounds
// Say Things
// When Events Happen
blockload
{
es_xmsg #multi #green [CS:S Fun Script] CS:S Fun Scripts Loaded!
}
blockunload
{
es_xmsg #multi #green [CS:S Fun Script] CS:S Fun Scripts Unloaded.
}
event round_start
{
// Start Off With A Message
es_xmsg #multi #green Welcome to the best server ever. Our server IP is server_var(ip)
}
event player_disconnect
{
es_centermsg event_var(es_username) ran away from the battle!
}
event player_death
{
es_tell event_var(userid) You were killed by event_var(es_attackername) who has event_var(es_attackerhealth) health left!
}
event player_activate
{
es_tell event_var(es_username) Player event_var(es_username) is ready for battle!
}
event bomb_exploded
{
es_emitsound player event_var(es_username) "fun/nmab_who_fooledagain.wav" 4 0.9
}
event bomb_dropped
{
es_emitsound player event_var(es_username) "fun/nmab_priceisright.wav" 4 0.9
}
event bomb_defused
{
es_emitsound player event_var(es_username) "bot/bombs_on_the_ground.wav" 4 0.9
}
event hostage_rescued_all
{
es_emitsound player event_var(userid) "fun/nmab_who_fooledagain.wav" 4 0.9
}
event hostage_killed
{
es_emitsound player event_var(userid) "fun/nmab_priceisright.wav" 4 0.9
}
event round_end
{
// Target bombed
if (event_var(reason) equalto "1") then es ma_takecash #ct 1000
// Bomb defused
if (event_var(reason) equalto "7") then ma_takecash #t 1000
// Hostages rescued
if (event_var(reason) equalto "11") then ma_takecash #t 1000
// Bomb target saved (time ran out on a DE map)
if (event_var(reason) equalto "12") then ma_takecash #t 1000
// Hostages not rescued (time ran out on a CS map)
if (event_var(reason) equalto "13") then ma_takecash #ct 1000
}
[/code]
I replaced the .zip but it wont work.