Author Topic: Help in script  (Read 11065 times)

0 Members and 1 Guest are viewing this topic.

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Help in script
« on: August 06, 2008, 12:19:16 am »
Hello all,

       I need help in this script that I fault

Quote
alias vcmp.nickcolor {
  var %name = $1
  if ($par(255) isin %name) !return 14 $+ $remove(%name,$par(255)) $+ 
  elseif ($par(0) isin %name) !return 14 $+ $remove(%name,$par(0)) $+ 
  elseif ($par(1) isin %name) !return 07 $+ $remove(%name,$par(1)) $+ 
  elseif ($par(2) isin %name) !return 06 $+ $remove(%name,$par(2)) $+ 
  elseif ($par(3) isin %name) !return 10 $+ $remove(%name,$par(3)) $+ 
  elseif ($par(4) isin %name) !return 08,14 $+ $remove(%name,$par(4)) $+ 
  elseif ($par(5) isin %name) !return 04 $+ $remove(%name,$par(5)) $+ 
  elseif ($par(6) isin %name) !return 12 $+ $remove(%name,$par(6)) $+ 
  elseif ($par(7) isin %name) !return 13 $+ $remove(%name,$par(7)) $+ 
  elseif ($par(8) isin %name) !return 07,15 $+ $remove(%name,$par(8)) $+ 
  elseif ($par(9) isin %name) !return 13,15 $+ $remove(%name,$par(9)) $+ 
  elseif ($par(10) isin %name) !return 05,15 $+ $remove(%name,$par(10)) $+ 
  elseif ($par(11) isin %name) !return 08,15 $+ $remove(%name,$par(11)) $+ 
  elseif ($par(12) isin %name) !return 10,15 $+ $remove(%name,$par(12)) $+ 
  else !return 01 $+ %name $+ 



said: Cristian_08:
and want than say the id of player, example: [3] Cristian_08:

please help !!  :(


Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Help in script
« Reply #1 on: August 06, 2008, 12:40:22 am »
Here use mine  ;)

Code: [Select]
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-
}
                                         ^
                                         |
Replace your old one and add this.

---------------------------------------

Quote
alias vcmp.nickcolor {
  var %name = $1
  if ($par(255) isin %name) !return 14 $+ $remove(%name,$par(255)) $+ 
  elseif ($par(0) isin %name) !return 14 $+ $remove(%name,$par(0)) $+ 
  elseif ($par(1) isin %name) !return 07 $+ $remove(%name,$par(1)) $+ 
  elseif ($par(2) isin %name) !return 06 $+ $remove(%name,$par(2)) $+ 
  elseif ($par(3) isin %name) !return 10 $+ $remove(%name,$par(3)) $+ 
  elseif ($par(4) isin %name) !return 08,14 $+ $remove(%name,$par(4)) $+ 
  elseif ($par(5) isin %name) !return 04 $+ $remove(%name,$par(5)) $+ 
  elseif ($par(6) isin %name) !return 12 $+ $remove(%name,$par(6)) $+ 
  elseif ($par(7) isin %name) !return 13 $+ $remove(%name,$par(7)) $+ 
  elseif ($par(Cool isin %name) !return 07,15 $+ $remove(%name,$par(Cool) $+ 
  elseif ($par(9) isin %name) !return 13,15 $+ $remove(%name,$par(9)) $+ 
  elseif ($par(10) isin %name) !return 05,15 $+ $remove(%name,$par(10)) $+ 
  elseif ($par(11) isin %name) !return 08,15 $+ $remove(%name,$par(11)) $+ 
  elseif ($par(12) isin %name) !return 10,15 $+ $remove(%name,$par(12)) $+ 
  else !return 01 $+ %name $+ 

This has nothing to do with [3] Cristian_08:



Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Help in script
« Reply #2 on: August 06, 2008, 12:57:54 am »
thank friends


Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Help in script
« Reply #3 on: August 07, 2008, 12:54:57 am »
2 question, how can i change the climate by mirc?, which is the commands?

help plizz


Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Help in script
« Reply #4 on: August 07, 2008, 01:20:34 am »
Use this:

Quote
    elseif ($1 == !setweather) { vcmp.setweather $2- | vcmp.adminchat Admin:[ $nick ] changed weather to:[ $2 ] }

Write it under:
  if ($vcmp.ishop($nick)) {
    ;--- hop and higher commands

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Help in script
« Reply #5 on: August 07, 2008, 01:29:18 am »
thank friends  :)


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Help in script
« Reply #6 on: August 07, 2008, 03:23:12 am »
hey [SRS]Tomi  thx in commnads !setweather  ;D

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Help in script
« Reply #7 on: August 07, 2008, 03:58:10 am »
Np  :D

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Help in script
« Reply #8 on: August 09, 2008, 01:56:58 am »
hello all,
                 I need help in this script:

Code: [Select]
    elseif ($1 == !setlevel) { vcmp.setlevel $2- | vcmp.adminchat Admin:[ $nick ] set level to:[ $vcmp.hgetname($3) ] level: [ $2 ] }

says:

Quote
<&ArgentinaSpoon> Admin:[ Cristian_08 ] set level to:[ victim ] level: 10
<~Cristian_08> !admin
<&ArgentinaSpoon> ** Admins:

I want to appear but did not say that is admin

another thing more

   
on the script !car

I want to appear

example:

<~Cristian_08> !car shadow
<&ArgentinaSpoon> Shadow - Vehicle Status: Model:[ Hunter ] ID:[ 156 ]  Hp:[ %28 ] Owner:[ Cristian_08 ] Price:[ $150.000 ] Share:[ shadow ]

my script is:

Quote
    elseif ($1 == !car) $iif(($vcmp.nameid($2) != $null),vcmp.echo ** $vcmp.playervehicle($vcmp.hgetname($$vcmp.nameid($2))),vcmp.echo Error: Invalid ID.)

and :

Quote
alias vcmp.playerarea !return $vcmp.area($vcmp.hgetpos.x($vcmp.nameid($1)),$vcmp.hgetpos.y($vcmp.nameid($1)))
alias vcmp.playervehicle {
  if ($hget(vcmp,vehicles. $+ $1)) {
    tokenize 32 $hget(vcmp,vehicles. $+ $1)
    return $1 is $iif(($4 == 18),driving,a passenger in) $iif(($left($vcmp.carname($3),1) isin aeiou),an,a) $vcmp.carname($3) $+ . $par(id: $2 - type: $3)
  }
  elseif ($vcmp.hgetcarid($vcmp.nameid($1)) == 0) return $1 is on foot.
  else return $1 is in a $vcmp.carname($gettok($hget(config,vehicle. $+ $vcmp.hgetcarid($vcmp.nameid($1))),1,32))
}

 HELP!!!    :(

                                 Sorry for my English    ;)                             


Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Help in script
« Reply #9 on: August 09, 2008, 02:45:28 am »
I hope this works

In IRC
Code: [Select]
if ($vcmp.isop($nick)) {
    ;--- op only commands
if ($1 == !setlevel) $iif((($3 isnum) && ($3 > 0) && ($3 < 12)) && ($vcmp.acct.exists($2) != 0),vcmp.acct.setadminlvl $2 $3,vcmp.echo ** Account $2 not found.)

Use the full player's full name.

Alias
Code: [Select]
alias vcmp.acct.setadminlvl vcmp.setacct $1 $puttok($vcmp.acct($1),$iif($2,$v1,1),3,32)


Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Help in script
« Reply #10 on: August 09, 2008, 05:15:12 pm »
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                      HELP IN THE SCRIPT !CAR OF SANSAN


Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Help in script
« Reply #11 on: August 09, 2008, 08:45:22 pm »
Do you have buycar commands in your script?
Without that you cant configure it to shows who is the owner of a specific vehicle.

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Help in script
« Reply #12 on: August 09, 2008, 09:06:33 pm »
help in script SanSan, i want to appear

example:

<~Cristian_08> !car shadow
<&ArgentinaSpoon> Shadow - Vehicle Status: Model:[ Hunter ] ID:[ 156 ]  Hp:[ %28 ] Owner:[ Cristian_08 ] Price:[ $150.000 ] Share:[ shadow ]

my script is:


Quote

  elseif ($1 == !car) $iif(($vcmp.nameid($2) != $null),vcmp.echo ** $vcmp.playervehicle($vcmp.hgetname($$vcmp.nameid($2))),vcmp.echo Error: Invalid ID.)

and :

Quote
alias vcmp.playerarea !return $vcmp.area($vcmp.hgetpos.x($vcmp.nameid($1)),$vcmp.hgetpos.y($vcmp.nameid($1)))
alias vcmp.playervehicle {
  if ($hget(vcmp,vehicles. $+ $1)) {
    tokenize 32 $hget(vcmp,vehicles. $+ $1)
    return $1 is $iif(($4 == 18),driving,a passenger in) $iif(($left($vcmp.carname($3),1) isin aeiou),an,a) $vcmp.carname($3) $+ . $par(id: $2 - type: $3)
  }
  elseif ($vcmp.hgetcarid($vcmp.nameid($1)) == 0) return $1 is on foot.
  else return $1 is in a $vcmp.carname($gettok($hget(config,vehicle. $+ $vcmp.hgetcarid($vcmp.nameid($1))),1,32))
}

Quote
on *:SIGNAL:vcmp.event.enter:{
  var %id = $vcmp.nameid($1)
  if (%echolevel > 5) vcmp.echo 14 $+ ** $1 is $iif(($4 == 18),driving,a passenger in) $iif(($left($vcmp.carname($3),1) isin aeiou),an,a) $vcmp.carname($3) $+ . $par(id: $2 - type: $3)
  !hadd vcmp vehicles. $+ $1 $1-
}

 HELP in script SanSan, please!!! :(   


Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Help in script
« Reply #13 on: August 10, 2008, 03:58:46 am »
Yeah, seems you hasnt got buycar etc command in your script.
So put it on first.

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Help in script
« Reply #14 on: August 10, 2008, 04:14:03 am »
Yeah, seems you hasnt got buycar etc command in your script.
So put it on first.

critian you change whats !! in commands !car  ???