Author Topic: Edit Commands  (Read 5851 times)

0 Members and 1 Guest are viewing this topic.

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Edit Commands
« on: June 17, 2008, 06:51:00 am »
Hai All Please Look Scripting Sansa V3.0 Bot  :-\

Quote
    }
    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... | vcmp.kick %id }
          else { vcmp.kick [ $vcmp.nameid($3) ] $iif($4-,[ $4-) ] }
        }

Quote
;--- rcon command aliases
alias vcmp.kick {
  vcmp.adminchat ** Admin Kicking: [ $$vcmp.hgetname($vcmp.nameid($1)) ] $iif($2,Reason: [ $2-,) ]
  .timer. $+ [ $$vcmp.nameid($1) ] $+ .kick -m 1 250 vcmp.command kick [ $$vcmp.nameid($1) ]
}
alias vcmp.kicknow {
  vcmp.adminchat ** Admin Kicking: [ $$vcmp.hgetname($vcmp.nameid($1)) ] $iif($2,Reason: [ $2-,) ]
  .timer. $+ $$vcmp.nameid($1) $+ .kick -m 1 50 vcmp.command kick $$vcmp.nameid($1)
}


Please Help  :'( :'( :'( :'( :'(

Cya TanaX01  8)

Admin Online in IRC or Server Type

!kick id Why Not name ?

Other Question Admin In Game Type !kick 1 Test

** Admin Kicking: TanaX01 Reason: test

Why Not Admin Kicking: [ TanaX01 ] Reason: [ Test ] ?


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Edit Commands
« Reply #1 on: June 17, 2008, 09:40:50 pm »
Why In My Server me Type !kick

Quote
   <MarciSpeems>   TanaX01: !kick tanax test
   <MarciSpeems>   ** Kicking [ TanaX01 ] Reason: [ Reason: test

Why Kicking [ TanaX01 ] Reason [ Reason? :tEST]

Kiking [ TanaX01 ] Reason [ Test ] ?  8)

Juppi

  • Guest
Re: Edit Commands
« Reply #2 on: June 17, 2008, 10:46:56 pm »
The Reason text is now added twice. Try changing

Code: [Select]
else { vcmp.kick %x $iif($4-,Reason: $4-) }
from quantumbeep's version to this:

Code: [Select]
else { vcmp.kick %x $4- }

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Edit Commands
« Reply #3 on: June 17, 2008, 10:54:06 pm »
Use this..

Code: [Select]

alias vcmp.kicknow {
  vcmp.adminchat ** Kicking:[ $$vcmp.hgetname($vcmp.nameid($1)) ] Reason:[ $2- ]  
 .timer. $+ $$vcmp.nameid($1) $+ .kick -m 1 50 vcmp.command kick $$vcmp.nameid($1)
}


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Edit Commands
« Reply #4 on: June 17, 2008, 11:10:13 pm »
Use this..

Code: [Select]

alias vcmp.kicknow {
  vcmp.adminchat ** Kicking:[ $$vcmp.hgetname($vcmp.nameid($1)) ] Reason:[ $2- ]   
 .timer. $+ $$vcmp.nameid($1) $+ .kick -m 1 50 vcmp.command kick $$vcmp.nameid($1)
}


Ok Thank Mattz

Other Question Commands Online in IRC

!BANLIST ???  8)

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Edit Commands
« Reply #5 on: June 17, 2008, 11:48:46 pm »
I don"t know how to put it on a site, but you can find a list of bans in your bot mirc folder. Its called "vcmp.bans" a ini file.


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Edit Commands
« Reply #6 on: June 18, 2008, 02:01:40 am »
I don"t know how to put it on a site, but you can find a list of bans in your bot mirc folder. Its called "vcmp.bans" a ini file.



Yes Mattz My File Is vcmp.bans     in irc commands admin !banlist


please create commands !banlist in IRC

!banlist

!ban tanax01 Deniend

other admin type !banlist

Admin TanaX01 Banned TanaX01 Denied ?

it is an example  :P 


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Edit Commands
« Reply #7 on: June 18, 2008, 02:30:20 am »
converted from GUS to sansan - needs testing, worked fine under GUS, was unsure of sansan's IP alias.

Quote
Global Variable: - Place at top of in game command

var %x = $iif($3,$iif($3 !isnum,$iif($vcmp.nameid($3) != Unknown,$v1,-1),$iif($vcmp.hgetname($3) != Unknown,$3,-1)),%id)

Quote
;-----ALIAS----

alias vcmp.banned !return $readini(vcmp.banned.ini,IPS,$1)

alias vcmp.add.banned {
  if ($2 !isin $vcmp.banned($1)) !writeini -n vcmp.banned.ini IPS $1 $iif($vcmp.banned($1),$v1 $+ $chr(44) $+ $chr(32) $+ $2,$2)
}

alias vcmp.join.banned {
  vcmp.add.banned $gettok($vcmp.hgetip($vcmp.nameid($1)),1-2,46) $1
}

Quote
ADD TO !ban command
vcmp.join.banned $vcmp.hgetname(%x)

Quote
;---in game command
  elseif ($2 == !bancheck)  {
    if (%x == -1) vcmp.adminchat >> Error - Absent ID/Name
    elseif (!$3) vcmp.adminchat >> Error - Missing Information, $2 <name/id>
    elseif (!$vcmp.banned($gettok($vcmp.hgetip($vcmp.hgetname(%x)),1-2,46))) vcmp.adminchat >> Error - $vcmp.hgetname(%x) has no banned names under his subnet
    else vcmp.adminchat >> Banned Names under $vcmp.hgetname(%x) $+ 's subnet: $vcmp.banned($gettok($vcmp.hgetip($vcmp.hgetname(%x)),1-2,46))
  }

ps, just copy and paste into notepad, code will be ok, not sure why it scrunches up when making a post.

Kind Regards,

Quantumbeep



Good Hey Please Add In you msn [email protected]  8)