Jump to content

Spawn Killing Script


Niels

Recommended Posts

Posted

on *:SIGNAL:mta.kill: {
if $readini(sp.ini,sp,sp) {
   if ($mta.area($1,$2) == Phils-Place Little-Haiti Vice-City-Mainland) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
 if $readini(sp.ini,sp,sp) {
   if ($mta.area($1,$2) == Secret-Service-Spawn Ocean-Beach Vice-City-Beach) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
 if $readini(sp.ini,sp,sp) {
   if ($mta.area($1,$2) == Spawn Viceport Vice-City-Mainland) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
 if $readini(sp.ini,sp,sp) {
   if ($mta.area($1,$2) == Terminal Escobar-International Vice-City-Mainland) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
 if $readini(sp.ini,sp,sp) {
   if ($mta.area($1,$2) == Sailor-Spawn Viceport Vice-City-Mainland) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
}

Why is this don't work?

OMG!

Posted

show us the mta.1warnkick alias

also.. there are loads of } bracket mismatches in there

for instance.. if $readini(sp.ini,sp,sp) { (you only need to display it once, seeing as it's the same bit of code for every section you have there)

on *:SIGNAL:mta.kill: {
 if $readini(sp.ini,sp,sp) {
   if ($mta.area($1,$2) == Phils-Place Little-Haiti Vice-City-Mainland) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
   if ($mta.area($1,$2) == Secret-Service-Spawn Ocean-Beach Vice-City-Beach) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
   if ($mta.area($1,$2) == Spawn Viceport Vice-City-Mainland) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
   if ($mta.area($1,$2) == Terminal Escobar-International Vice-City-Mainland) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
   if ($mta.area($1,$2) == Sailor-Spawn Viceport Vice-City-Mainland) {
     mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill)
   }
 }
}

Posted

You can work better with a kick script if they player kills within 15-seconds since victem spawned. You can find it in ur PM

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...