Author Topic: Teamkill/db warn system  (Read 3743 times)

0 Members and 1 Guest are viewing this topic.

Juppi

  • Guest
Teamkill/db warn system
« on: September 06, 2007, 09:23:22 pm »
I was making an anti-db system, which warns/kicks player after a driveby. I still need to know how to protect from a teamkill. Does a team-driveby (or other teamkill events) have different ID than usual driveby (which is 42), or even an own signal, like SIGNAL:vcmp.teamkill?

Juppi

  • Guest
Re: Teamkill/db warn system
« Reply #1 on: September 06, 2007, 09:54:55 pm »
Ah, i got it fixed myself. Just created a new signal under alias vcmp.data:

Code: [Select]
alias vcmp.data {
  if ($1 == [teamkill]) {
    .signal vcmp.teamkill $5 $vcmp.getdeathinfo($4).name $vcmp.getdeathinfo($2).name
 }
}

(if alias getdeathinfo is defined as in gus). Then warning script under event

Code: [Select]
on *:SIGNAL:vcmp.teamkill:{
« Last Edit: September 06, 2007, 11:20:55 pm by Juppi »