• Welcome to Vice City Multiplayer.
 

Teamkill/db warn system

Started by Juppi, September 06, 2007, 07:23:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Juppi

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

#1
Ah, i got it fixed myself. Just created a new signal under alias vcmp.data:

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

on *:SIGNAL:vcmp.teamkill:{