on *:text:!pug*:%p:{ .na if ($hget(pv.db,ingame) == 1) { /msg $chan $replace($skin,,Pug,,The pug is ingame (!score)) /halt } if ($hget(pv.db,pugging) == 1) { /msg $chan $replace($skin,,Pug,,There is a pug running (!join)) /halt } if ($hget(pv.db,disable) == 1) { /msg $chan $replace($skin,,Pug,,Is disabled! (!enable)) /halt } if ($2 == $null) { /hadd -s pv.db map de_dust2 /goto pug } if ($2 != $null) { if ($2 isin $hget(pv.db,maps)) { /hadd -s pv.db map $2 /goto pug } else { /msg $chan $replace($skin,,Pug,,$2 is not in maps ( $+ $hget(pv.db,maps) $+ )) /halt } } else { :pug /mod /mode $chan +v $nick /timer1 1 1 /msg $chan $replace($skin,,TimeOut,,Auto-Timeout in 20 min) /timer2 1 600 /msg $chan $replace($skin,,Pug,,Auto-Timeout in 10 min) /timer3 1 1200 /msg $chan $replace($skin,,Pug,,Auto-Timeout in 0 min) /timer4 1 1200 /endpug /hadd -s pv.db pugadmin $nick /hadd -s pv.db puggersn 1 /hadd -s pv.db inadmin 0 /hadd -s pv.db pugging 1 /hadd -s pv.db ingame 0 /hadd -s pv.db ia coNNect /hadd -s pv.db serverp $rand(a,z) $+ $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) /hadd -s pv.db adminp $rand(a,z) $+ $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) /rcon sv_password $hget(pv.db,serverp) /rcon changelevel $hget(pv.db,map) /finish /msg %p $replace($skin,,%p,,A pug has been started on $hget(pv.db,map) at  $+ %p $+  by $nick - type !join to play!) } }