Author Topic: need help in script sansan  (Read 3485 times)

0 Members and 3 Guests are viewing this topic.

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
need help in script sansan
« on: August 23, 2008, 01:58:20 am »
need help in script sansan for " hop and higher commands ", the script that need is:

!setcash <name/id> <cash>
!setarmour <name/id> <armour>
!carchangeowner <name/id> <car/id> (but that is changing the owner of the car)
!password <name/id> or !getpassword <name/id>
!banlist (failed my !banlist)

and this

Code: [Select]

<ArgentinaSpoon> [] testman: -----
<ArgentinaSpoon> [] testman: -----
<ArgentinaSpoon> [] testman: -----


I do not understand this

Code: [Select]

 " [] " testman :


and the number ??  ???

this is script:

Quote
on *:SIGNAL:vcmp.event.chat:{
var %name = $left([ $1 ],-1),%id = $vcmp.nameid(%name), %team = $iif($vcmp.hgetteam(%id) != -1,$v1,255), %cname = $iif($vcmp.hgetteam(%id),$vcmp.nickcolor(%name $+ $par(%team)) $+ :,01 $+ $1 $+ )
  $iif($($+(%,antispam.,[ %name ]),2) == 5,vcmp.kicknow %id flooding,inc -u5 $+(%,antispam.,[ %name ]))
  vcmp.enforcelogin %id
  vcmp.enforcestfu %id
  vcmp.enforce.censor %id $2-
  if ($left($2,1) == !) {
    if ($($+(%,anticmdspam.,[ %name ]),2) > 0) { vcmp.adminmsg %id ** Error: You must use the commands between 4secs. }
    else { inc -u4 $+(%,anticmdspam.,[ %name ]) | .signal vcmp.event.gamecmd $1- } 
  }
  if (%echolevel > 2) vcmp.echo 2 $+ $+($chr(91),%id,$chr(93)) $+ 7 %name $+  $+ : $2-
}


thanks for help  ;) and sorry for my english  :(



Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
need help in script sansan
« Reply #1 on: August 23, 2008, 11:39:57 pm »

Code: [Select]

<ArgentinaSpoon> [] testman: -----
<ArgentinaSpoon> [] testman: -----
<ArgentinaSpoon> [] testman: -----


I do not understand this

Code: [Select]

 " [] " testman :


and the number ??  ???

this is script:

Quote
on *:SIGNAL:vcmp.event.chat:{
var %name = $left([ $1 ],-1),%id = $vcmp.nameid(%name), %team = $iif($vcmp.hgetteam(%id) != -1,$v1,255), %cname = $iif($vcmp.hgetteam(%id),$vcmp.nickcolor(%name $+ $par(%team)) $+ :,01 $+ $1 $+ )
  $iif($($+(%,antispam.,[ %name ]),2) == 5,vcmp.kicknow %id flooding,inc -u5 $+(%,antispam.,[ %name ]))
  vcmp.enforcelogin %id
  vcmp.enforcestfu %id
  vcmp.enforce.censor %id $2-
  if ($left($2,1) == !) {
    if ($($+(%,anticmdspam.,[ %name ]),2) > 0) { vcmp.adminmsg %id ** Error: You must use the commands between 4secs. }
    else { inc -u4 $+(%,anticmdspam.,[ %name ]) | .signal vcmp.event.gamecmd $1- } 
  }
  if (%echolevel > 2) vcmp.echo 2 $+ $+($chr(91),%id,$chr(93)) $+ 7 %name $+  $+ : $2-
}


***  this solutions  ***

need help in script sansan for " hop and higher commands ", the script that need is:
!setcash <name/id> <cash>
!setarmour <name/id> <armour>
!carchangeowner <name/id> <car/id> (but that is changing the owner of the car)
!password <name/id> or !getpassword <name/id>
!banlist (failed my !banlist)


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: need help in script sansan
« Reply #2 on: August 24, 2008, 06:01:21 am »
Stop Doble Post Type Botton Modific  :)

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: need help in script sansan
« Reply #3 on: August 24, 2008, 11:58:16 am »
!setcash
Code: [Select]
elseif ($1 == !setcash) vcmp.setmon $vcmp.nameid($vcmp.hgetname($2)) $3
!setarmour
Code: [Select]
elseif ($1 == !setarmour) vcmp.setarm $vcmp.nameid($vcmp.hgetname($2)) $3
!changeowner
I donnu this, because u didnt post ur aliases
!password
This is not possible because the passwords are encrypted.
!banlist
Code: [Select]
elseif ($1 == !banlist) {
      var %a = 1
      while (%a <= 100) {
        msg $nick $read($scriptdirvcmp.bans.ini,%a)
        inc %a
      }
    }
Quote
I do not understand this

Code:


 " [] " testman :


and the number ??  Huh

this is script:

Quote
on *:SIGNAL:vcmp.event.chat:{
var %name = $left([ $1 ],-1),%id = $vcmp.nameid(%name), %team = $iif($vcmp.hgetteam(%id) != -1,$v1,255), %cname = $iif($vcmp.hgetteam(%id),$vcmp.nickcolor(%name $+ $par(%team)) $+ :,01 $+ $1 $+ )
  $iif($($+(%,antispam.,[ %name ]),2) == 5,vcmp.kicknow %id flooding,inc -u5 $+(%,antispam.,[ %name ]))
  vcmp.enforcelogin %id
  vcmp.enforcestfu %id
  vcmp.enforce.censor %id $2-
  if ($left($2,1) == !) {
    if ($($+(%,anticmdspam.,[ %name ]),2) > 0) { vcmp.adminmsg %id ** Error: You must use the commands between 4secs. }
    else { inc -u4 $+(%,anticmdspam.,[ %name ]) | .signal vcmp.event.gamecmd $1- }
  }
  if (%echolevel > 2) vcmp.echo 2 $+ $+($chr(91),%id,$chr(93)) $+ 7 %name $+  $+ : $2-
}
U allready post this problem, Here is the answer ;)

NOTE: ALL SCRIPT ARE NOT TESTED!



Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: need help in script sansan
« Reply #4 on: August 26, 2008, 04:51:12 am »
ok thank