• Welcome to Vice City Multiplayer.
 

Help in script

Started by Cristian, August 05, 2008, 10:19:16 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Cristian

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 !!  :(


Mattz

Here use mine  ;)

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:


Cristian



Cristian

2 question, how can i change the climate by mirc?, which is the commands?

help plizz


Tamas

Use this:

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

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

Cristian



TanaX01

hey [SRS]Tomi  thx in commnads !setweather  ;D

Tamas


Cristian

hello all,
                 I need help in this script:


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


Mattz

I hope this works

In IRC

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
alias vcmp.acct.setadminlvl vcmp.setacct $1 $puttok($vcmp.acct($1),$iif($2,$v1,1),3,32)

Cristian

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                      HELP IN THE SCRIPT !CAR OF SANSAN


Tamas

Do you have buycar commands in your script?
Without that you cant configure it to shows who is the owner of a specific vehicle.

Cristian

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!!! :(   


Tamas

Yeah, seems you hasnt got buycar etc command in your script.
So put it on first.

TanaX01

Quote from: [SRS]Tomi on August 10, 2008, 01:58:46 AM
Yeah, seems you hasnt got buycar etc command in your script.
So put it on first.

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