A simple script, where u can add a ban u have done on a cs or cs:s server.
Makes a .txt file called bans.txt where the script is saved.
!addban
!findban <steam_id, nick or anything u want>
My first snippet, so be nice.. :D
on *:TEXT:*:#: {
if ($1 == !addban ) {
if ($3 == $null) { msg $chan $nick u need to insert a valid steamID }
if (steam_* iswm $3) {
if ($4 == $null) { msg $chan $nick u need to insert a valid Reason }
if ($4 != $null) {
write $qt($scriptdirbans.txt) 12 $+ $2 14 $+ $3 1 $+ $4- - by $nick
set %sl.ql $lines($scriptdirbans.txt)
msg $chan Added ban at $chr(35) $+ %sl.ql
unset %sl.ql
}
}
else msg $chan $nick u need to insert a valid steamID
}
if ($1 == !findban ) {
set %found $read($scriptdirbans.txt, w, * $+ $2- $+ *)
if (%found == $null) {
/msg $chan Nothing found!
}
else { /msg $chan Found: %found
}
set %found
}
}