Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Knucis on October 16, 2008, 05:52:56 PM

Title: How can I...
Post by: Knucis on October 16, 2008, 05:52:56 PM
How can I add a cmd when i pickup a Pickup or something...

I was thinking for example:
*[PBK]Knucis picked up a Pickup ID:....
>> pm: You pickup a teletransport pickup! I will transport you to [......]  

Then you go to that place...
Please help!

Cya, Knucis
Title: Re: How can I...
Post by: Chezor on October 16, 2008, 07:09:49 PM
General Use Scripts [Based]...

on *:SIGNAL:vcmp.pickup:{
var %name = $vcmp.name($1)
var %name2 = $replace($replace($vcmp.name($1),[,~),],~)
var %id = $1

elseif ($2 == <pikup_id>) {
vcmp.msg %id You pickup a teletransport pickup! I will transport you to [place]
vcmp.setlocation %a $vcmp.axis.getloc(<place-name-here>) 
}
Title: Re: How can I...
Post by: Knucis on October 16, 2008, 07:26:38 PM
Thanks! Im based on GUS too!

Cya, Knucis
Title: Re: How can I...
Post by: Chezor on October 17, 2008, 07:58:19 AM
Quote from: Knucis on October 16, 2008, 07:26:38 PM
Thanks! Im based on GUS too!

Cya, Knucis
you are based on GUS  :o or your scripts are lol  :P
Title: Re: How can I...
Post by: gamyster on October 17, 2008, 11:34:49 AM
:( i want that For WSV
Title: Re: How can I...
Post by: thijn on October 17, 2008, 11:47:12 AM
Thats easy,

on *:SIGNAL:WSV.pickuphit: {
elseif ($3 == <pickup_ID>) {
WSV.msg $2 You pickup a teletransport pickup! I will transport you to [place]
WSV.setlocation $2 X Y Z 0
}
Title: Re: How can I...
Post by: gamyster on October 17, 2008, 12:19:26 PM
hey Thijin do u know a file in which there are commands like WS.setpickup WSV.setvehicle status etc....?
Title: Re: How can I...
Post by: thijn on October 17, 2008, 04:12:19 PM
Quote from: gamyster on October 17, 2008, 12:19:26 PM
hey Thijin do u know a file in which there are commands like WS.setpickup WSV.setvehicle status etc....?
What do u mean?
U mean the WSV.mrc file?
Title: Re: How can I...
Post by: Chezor on October 17, 2008, 08:40:23 PM
Quote from: gamyster on October 17, 2008, 12:19:26 PM
hey Thijin do u know a file in which there are commands like WS.setpickup WSV.setvehicle status etc....?

lol im also confused by this question  :P
Title: Re: How can I...
Post by: thijn on October 17, 2008, 10:43:00 PM
:p yea, Can u explane a little but more?? ;D :D
Title: Re: How can I...
Post by: gamyster on October 18, 2008, 12:26:34 PM
nvm leave it......

Is there any cmd made in WSV that !setpickup <NUMBER>
?
Title: Re: How can I...
Post by: Knucis on October 18, 2008, 12:31:44 PM
yeap... !ap [id] I think...

Cya, Knucis
Title: Re: How can I...
Post by: gamyster on October 18, 2008, 12:39:44 PM
NOPE it aint :(
Title: Re: How can I...
Post by: Knucis on October 18, 2008, 12:47:55 PM
hmmm... Ask windlord... Pm him

Cya, Knucis
Title: Re: How can I...
Post by: evil_night13 on October 18, 2008, 02:25:04 PM
in wsv0.3 !ap [id] works!

!ap health - health pickup is added

to delete !dp [id]
Title: Re: How can I...
Post by: Knucis on October 18, 2008, 02:50:01 PM
Quote from: evil_night13 on October 18, 2008, 02:25:04 PM
in wsv0.3 !ap [id] works!

!ap health - health pickup is added

to delete !dp [id]
Yeap im testing now and it works! I dunno why doesnt work for you gamyster...
Title: Re: How can I...
Post by: gamyster on October 18, 2008, 05:57:49 PM
oh thanx!
Title: Re: How can I...
Post by: evil_night13 on October 18, 2008, 06:04:56 PM
Quote from: gamyster on October 18, 2008, 05:57:49 PM
oh thanx!

np! glad i could help u! :D
Title: Re: How can I...
Post by: gamyster on October 18, 2008, 06:56:07 PM
:( the WSV PICKUP TELELPORT aint working :(

i placed it here :( please help to correct


Quoteelseif (buyprop* iswm $3) {
      if ($4) WSV.buyprop $2 $4
      else WSV.msg $2 Please type !buyprop <propid>
    }
    elseif (sellprop* iswm $3) {
      if ($4) WSV.sellprop $2 $4
      else WSV.msg $2 Please type !sellprop <propid>
    }
    elseif (shareprop* iswm $3) {
      if ($5) WSV.shareprop $2 $4 $5
      else WSV.msg $2 Please type !shareprop <propid> <nick>
    }
    elseif (delshareprop* iswm $3) {
      if ($5) WSV.delshareprop $2 $4 $5
      else WSV.msg $2 Please type !delshareprop <propid> <nick>
    }
    elseif (myprop* iswm $3) {
      if (!$4) && ($2 < %maxplayers) WSV.say $WSV.myprops($2)
      else {
        if ($WSV.pass($4)) WSV.say $WSV.myprops($4)
        elseif ($WSV.pconnected($4)) WSV.say $WSV.myprops($4)
        else WSV.say ** $4 is not a registered nick-name
      }
    }
    elseif (propspawn* iswm $3) WSV.propspawn $1-
    elseif (gotoprop* iswm $3) WSV.gotoprop $1-
    elseif ($2 < 100) WSV.msg $2 Invalid Command
  }
  elseif ($2 < 100) WSV.msg $2 Invalid/Login-Only Command
}

on *:SIGNAL:WSV.pickuphit: {
elseif ($3 == 508) {
  WSV.msg $2 You pickup a teletransport pickup! I will transport you to Upside
  WSV.setlocation $2 -868.671265 -116.157364 11.100804
}
Title: Re: How can I...
Post by: evil_night13 on October 18, 2008, 07:10:38 PM
try to place it else where in the middle, the place u pasted is outside the srcipt(almost), for me heal didnt work , i also pasted there, so try to paste in the middle, heal works for me now :D
Title: Re: How can I...
Post by: Force on October 18, 2008, 07:46:50 PM
If it's the top one under the on "on *:SIGNAL:WSV.pickuphit: {" then make sure that it is an "if" not an "elseif"
Title: Re: How can I...
Post by: Punjabi on October 19, 2008, 10:42:48 AM
Replace this..

on *:SIGNAL:WSV.pickuphit: {
  if ($4 == 406) || ($4 == 407) { WSV.respawnpickup $3 | WSV.propinfo $2 $3 }
  elseif ($4 == 382) { WSV.respawnpickup $3 | WSV.endrace $1- }
  else { WSV.msg $2 Pickup ID: $3 $+ , Pickup Type: $4 }
}


With this one..

on *:SIGNAL:WSV.pickuphit: {
  if ($4 == 406) || ($4 == 407) { WSV.respawnpickup $3 | WSV.propinfo $2 $3 }
  elseif ($4 == 382) { WSV.respawnpickup $3 | WSV.endrace $1- }
  else { WSV.msg $2 Pickup ID: $3 $+ , Pickup Type: $4 }
}
elseif ($3 == 508) {
  WSV.msg $2 You pickup a teletransport pickup! I will transport you to Upside
  WSV.setlocation $2 -868.671265 -116.157364 11.100804
}


Cya
Punjabi_goli ;)
Title: Re: How can I...
Post by: gamyster on October 19, 2008, 11:07:44 AM
didnt work punja
Title: Re: How can I...
Post by: Punjabi on October 19, 2008, 12:24:17 PM
If u dont know anything plz dont abuse anyone by saying that ur command didnt work and from now plz stop dming with me i am fed up from u ..i am helping u but u dont know anything about WSV then i cant do anything thats it.. :(
Title: Re: How can I...
Post by: Knucis on October 19, 2008, 12:36:37 PM
Quote from: Punjabi on October 19, 2008, 12:24:17 PM
If u dont know anything plz dont abuse anyone by saying that ur command didnt work and from now plz stop dming with me i am fed up from u ..i am helping u but u dont know anything about WSV then i cant do anything thats it.. :(

Yeap... But dont start flamming you two...

Gamyster try to search in he scripts a text that  means: on *:SIGNAL:WSV.pickuphit: {
And put the script there...

Cya, Knucis
Title: Re: How can I...
Post by: gamyster on October 19, 2008, 02:15:27 PM
so punjabi what u mean that ill always say like THAT "OH THIS CMD works"you want me to say yes in all ur Dumb scripts? and this is not called abusing ok! I just say that that cmd didnt work thats all and u did spam because ur a 10 year old kid.
Title: Re: How can I...
Post by: Knucis on October 19, 2008, 02:40:38 PM
Ok... STOP IT!

This is a Mirc Scripting topic so pls dont Spam, Flam, etc...
This is suposed to be about Pickups nothing else. Pls you two are... Arghhh.. Stop Flamming...

Topic LOCKED bcuz of the spamming