Author Topic: Dribe By Auto Kick Problem  (Read 6475 times)

0 Members and 1 Guest are viewing this topic.

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Dribe By Auto Kick Problem
« on: July 22, 2008, 07:45:29 am »
Hai please help me in auto-kick ( dribe by ) system


dribe by ingame

          ( Bot IRC )
Admin MarciSpeems kicked player:[ TanaX01] Reason:[ Dribe-By ]

PLEASE HELP MY IN DELATE MARCI  ;)

Code: [Select]
    elseif ($2 == !kick) {
      if ($hget(vcmp,loggedin. $+ %id) < 2) { vcmp.adminmsg %id You Must Be Admin Level 2 Or Higher To Attempt This Command. }
      else {
        if ($vcmp.nameid($3) == $null) vcmp.adminmsg %id Error: Invalid ID.
        else {
          if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg %id You can't kick someone higher level admin than you... }
          else { vcmp.kick $3 | vcmp.adminchat ** Admin $vcmp.hgetname(%id) kicked player:[ $vcmp.hgetname($vcmp.nameid($3)) ] Reason:[ $4- ]
          }
        }
      }
    }

Alias :

Code: [Select]
alias vcmp.kick {
  vcmp.adminchat ** Admin $nick kicking player:[ $$vcmp.hgetname($vcmp.nameid($1)) ] $iif($2,Reason:[ $2- ],)
  .timer. $+ $$vcmp.nameid($1) $+ .kick -m 1 250 vcmp.command kick $$vcmp.nameid($1)
}

System Auto Kick Dribe By:

Code: [Select]
    vcmp.kick %idk
    vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname(%idk) ] Reason:[ Drive-By ]
  }

Code: [Select]
  if ($par($vcmp.deathreason($4)) = (Drive-By)) {
    vcmp.kick %idk
    vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname(%idk) ] Reason:[ Drive-By ]
  }

Please Help  :D 

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #1 on: July 22, 2008, 01:18:28 pm »
Ok Tanax, Are we going to accept my advice this time or not?

Ok first of all simply use the vcmp.kick already

Then use the following code, this needs to go under vcmp.event.kill (the part which echoes when someone killed someone else)
Code: [Select]
if ($vcmp.deathreason($4) == Drive-By) {
vcmp.adminchat *** Admin Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Drive - By $chr(93)
vcmp.kick %idk

And that should work fine

UNTESTED
« Last Edit: July 22, 2008, 01:20:09 pm by [SDT]F_T_F0RC3 »

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #2 on: July 22, 2008, 05:58:40 pm »
Ok Tanax, Are we going to accept my advice this time or not?

Ok first of all simply use the vcmp.kick already

Then use the following code, this needs to go under vcmp.event.kill (the part which echoes when someone killed someone else)
Code: [Select]
if ($vcmp.deathreason($4) == Drive-By) {
vcmp.adminchat *** Admin Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Drive - By $chr(93)
vcmp.kick %idk

And that should work fine

UNTESTED


Lol Thank Frien. me test in my script error i post in forum  ;)

Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #3 on: July 22, 2008, 07:03:08 pm »
That's not the problem. The problem is in vcmp.kick alias ;)

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #4 on: July 23, 2008, 07:48:10 pm »
Nah, that code is for sansan v3


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #5 on: July 24, 2008, 12:06:08 am »
That's not the problem. The problem is in vcmp.kick alias ;)

Hey my Alias Is:

Code: [Select]
alias vcmp.kick {
  vcmp.adminchat ** Admin $nick kicking player:[ $$vcmp.hgetname($vcmp.nameid($1)) ] $iif($2,Reason:[ $2- ],)
  .timer. $+ $$vcmp.nameid($1) $+ .kick -m 1 250 vcmp.command kick $$vcmp.nameid($1)
}
  ;)

Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #6 on: July 24, 2008, 12:10:32 am »
See it says $nick, that means it'll register MarciSpeems as the one who kicked.
Maybe make a vcmp.kick2 and change $nick to $vcmp.hgetname(%id)
or something to tha effect :P

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #7 on: July 24, 2008, 12:14:58 am »
See it says $nick, that means it'll register MarciSpeems as the one who kicked.
Maybe make a vcmp.kick2 and change $nick to $vcmp.hgetname(%id)
or something to tha effect :P

Lol i idiot :P ok thx revilo nice aport  :D  ;)

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Dribe By Auto Kick Problem
« Reply #8 on: July 25, 2008, 10:00:41 pm »
Its not work :(
My vcmp.event.kill section

Quote
on *:SIGNAL:vcmp.event.kill:{
  if ($vcmp.deathreason($4) == Drive-By) {
  vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Drive - By $chr(93)
  vcmp.kick2 %idk
  vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname(%idk) ] Reason:[ Drive-By ]
  }
  var %namek = $strip($vcmp.nickcolor($1)), %named = $strip($vcmp.nickcolor($3)), %idk = $vcmp.nameid(%namek), %idd = $vcmp.nameid(%named), %spawnkill = $vcmp.config.checkforspawnkill(%idd,%idk)
  vcmp.validweapon %idk $4
  vcmp.killingspree.process %idk %idd
  if ($vcmp.acct.exists(%namek) != 0) { vcmp.addkill %namek | vcmp.addweaponstat %namek $4 }
  if ($vcmp.acct.exists(%named) != 0) vcmp.addkilled %named
  if (%echolevel > 1) vcmp.echo 04** $1 04killed $3 04 $par($vcmp.deathreason($4))
  if (($vcmp.isplayerspawned(%idk)) && (%spawnkill != $null)) vcmp.cmd.killplayer %idk Spawnkilling.
  .signal vcmp.event.handledeath %idd
}
The server show this message:
Quote
** Auto - Kick Player:[ ] Reason:[ Drive - By ]

And its not showing the kicked player name, and not kick him.
What did i wrong?

Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #9 on: July 26, 2008, 01:30:29 am »
This:
Code: [Select]
var %namek = $strip($vcmp.nickcolor($1)), %named = $strip($vcmp.nickcolor($3)), %idk = $vcmp.nameid(%namek), %idd = $vcmp.nameid(%named), %spawnkill = $vcmp.config.checkforspawnkill(%idd,%idk)Has to be above this:
Code: [Select]
if ($vcmp.deathreason($4) == Drive-By) {
  vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Drive - By $chr(93)
  vcmp.kick2 %idk
  vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname(%idk) ] Reason:[ Drive-By ]
  }

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Dribe By Auto Kick Problem
« Reply #10 on: July 26, 2008, 01:51:52 am »
Damn you ReVilo, You beat me to it, But yeah, your completely right there :)