• Welcome to Vice City Multiplayer.
 

Edit Commands

Started by TanaX01, June 17, 2008, 04:51:00 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

TanaX01

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 ] ?


TanaX01

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

The Reason text is now added twice. Try changing

else { vcmp.kick %x $iif($4-,Reason: $4-) }

from quantumbeep's version to this:

else { vcmp.kick %x $4- }

Mattz

Use this..


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)
}

TanaX01

Quote from: Mattz on June 17, 2008, 08:54:06 PM
Use this..


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)

Mattz

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.

TanaX01

Quote from: Mattz on June 17, 2008, 09: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.



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 


TanaX01

Quote from: quantumbeep on June 18, 2008, 12:03:44 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)