w4d
11-15-2008, 09:38 PM
Ok, siosios and the rest of the n/u community. I just finished the Dodgeball funround script and I hope that it can be used. ;)
This time is makes it to where when the flashbang detonates, it removes all "blindness" basically. It sets your flashbang amount to 925 and your health to 1. It removes your money, armor, and weapons (all but flashbang).
Sios - could you edit it and put the dodgeball sound code line in there, too? It's funny.. Put it like in the event round start. ;) TY
Enjoy. :)
-sutt0n
event round_start
{
//Remove all weapons
es_fire event_var(userid) weapon_glock kill
es_fire event_var(userid) weapon_usp kill
es_fire event_var(userid) weapon_compact kill
es_fire event_var(userid) weapon_deagle kill
es_fire event_var(userid) weapon_elite kill
es_fire event_var(userid) weapon_fiveseven kill
es_fire event_var(userid) weapon_p228 kill
es_fire event_var(userid) weapon_m3 kill
es_fire event_var(userid) weapon_xm1014 kill
es_fire event_var(userid) weapon_tmp kill
es_fire event_var(userid) weapon_mac10 kill
es_fire event_var(userid) weapon_mp5navy kill
es_fire event_var(userid) weapon_ump45 kill
es_fire event_var(userid) weapon_p90 kill
es_fire event_var(userid) weapon_galil kill
es_fire event_var(userid) weapon_famas kill
es_fire event_var(userid) weapon_ak47 kill
es_fire event_var(userid) weapon_scout kill
es_fire event_var(userid) weapon_sg550 kill
es_fire event_var(userid) weapon_g3sg1 kill
es_fire event_var(userid) weapon_sg552 kill
es_fire event_var(userid) weapon_awp kill
es_fire event_var(userid) weapon_aug kill
es_fire event_var(userid) weapon_m4a1 kill
es_fire event_var(userid) weapon_m249 kill
es_fire event_var(userid) weapon_hegrenade kill
es_fire event_var(userid) weapon_smokegrenade kill
//Set player entities
es playerset cash event_var(userid) 0
es playerset armor event_var(userid) 0
es playerset health event_var(userid) 1
es_give event_var(userid) player_weaponstrip
es_fire event_var(userid) player_Weaponstrip strip
es_delayed .1 es_give event_var(userid) weapon_flashbang
es_delayed .1 es_setplayerprop event_var(userid) CBasePlayer.localdata.m_iAmmo.012 925
//Message the server and prepare
es_msg #multi READY... DODGEBALL!
}
event flashbang_detonate
{
foreach player allplayers #all "es playerset flash server_var(allplayers) CCSPlayer.m_flFlashDuration 0 8"
}
This time is makes it to where when the flashbang detonates, it removes all "blindness" basically. It sets your flashbang amount to 925 and your health to 1. It removes your money, armor, and weapons (all but flashbang).
Sios - could you edit it and put the dodgeball sound code line in there, too? It's funny.. Put it like in the event round start. ;) TY
Enjoy. :)
-sutt0n
event round_start
{
//Remove all weapons
es_fire event_var(userid) weapon_glock kill
es_fire event_var(userid) weapon_usp kill
es_fire event_var(userid) weapon_compact kill
es_fire event_var(userid) weapon_deagle kill
es_fire event_var(userid) weapon_elite kill
es_fire event_var(userid) weapon_fiveseven kill
es_fire event_var(userid) weapon_p228 kill
es_fire event_var(userid) weapon_m3 kill
es_fire event_var(userid) weapon_xm1014 kill
es_fire event_var(userid) weapon_tmp kill
es_fire event_var(userid) weapon_mac10 kill
es_fire event_var(userid) weapon_mp5navy kill
es_fire event_var(userid) weapon_ump45 kill
es_fire event_var(userid) weapon_p90 kill
es_fire event_var(userid) weapon_galil kill
es_fire event_var(userid) weapon_famas kill
es_fire event_var(userid) weapon_ak47 kill
es_fire event_var(userid) weapon_scout kill
es_fire event_var(userid) weapon_sg550 kill
es_fire event_var(userid) weapon_g3sg1 kill
es_fire event_var(userid) weapon_sg552 kill
es_fire event_var(userid) weapon_awp kill
es_fire event_var(userid) weapon_aug kill
es_fire event_var(userid) weapon_m4a1 kill
es_fire event_var(userid) weapon_m249 kill
es_fire event_var(userid) weapon_hegrenade kill
es_fire event_var(userid) weapon_smokegrenade kill
//Set player entities
es playerset cash event_var(userid) 0
es playerset armor event_var(userid) 0
es playerset health event_var(userid) 1
es_give event_var(userid) player_weaponstrip
es_fire event_var(userid) player_Weaponstrip strip
es_delayed .1 es_give event_var(userid) weapon_flashbang
es_delayed .1 es_setplayerprop event_var(userid) CBasePlayer.localdata.m_iAmmo.012 925
//Message the server and prepare
es_msg #multi READY... DODGEBALL!
}
event flashbang_detonate
{
foreach player allplayers #all "es playerset flash server_var(allplayers) CCSPlayer.m_flFlashDuration 0 8"
}