Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tamas

Pages: 1 2 [3] 4 5 ... 9
31
mIRC/pawn Scripting / Re: Properties pickup id got placed wrongly !
« on: October 17, 2008, 03:45:45 pm »
Yes, actually this happent with me too, something happent with the hash files. I don't know what is that problem but try to not disconnect than connect + addprop things to do. My suggestion is place all props than make a safe backup.

32
mIRC/pawn Scripting / Re: Bank working weird in WSV 0.3
« on: October 15, 2008, 04:18:15 pm »
Np  :)

33
mIRC/pawn Scripting / Re: WSV place script..
« on: October 14, 2008, 11:52:37 pm »
if ($4 == spas) { (means if you type !buy spas)
if ($WSV.money($2) >= 1500) {

34
mIRC/pawn Scripting / Re: WSV !CAR PROBLEM
« on: October 14, 2008, 11:49:25 pm »
Or check if he is higher than lvl1 (i think all SAF members are admins on that server) + if playermodel Tommy, than sethp to 0.
I prefer this method.

35
mIRC/pawn Scripting / Re: WSV !CAR PROBLEM
« on: October 14, 2008, 04:37:34 pm »
Heres mine it works perfectly. And uses the same style what LW have (i think that is the most clearable.)

Code:
Quote
  elseif (car iswm $3) {
    if ($WSV.pconnected($2)) && (!$4) {
      var %a = $WSV.vehicle($2)
      if ($WSV.vehicle($2) != 0) { WSV.msg $2 $WSV.carinfo(%a,$2).d }
      elseif (% [ $+ [ passenger $+ . $+ [ $WSV.name($2) ] ] ]) {
        var %b = % [ $+ [ passenger $+ . $+ [ $WSV.name($2) ] ] ]
        WSV.msg $2 You are a passenger in this vehicle.
        WSV.msg $2 $WSV.carinfo(%b,$2).p
      }
      else WSV.msg $2 You are currently on foot.
    }
    elseif ($WSV.pconnected($4)) {
      var %a = $WSV.vehicle($WSV.id($4))
      if ($WSV.vehicle($WSV.id($4)) != 0) { WSV.msg $2 $WSV.name($4) $+ 's Vehicle Stats: | WSV.msg $2 $WSV.carinfo(%a,$4).d }
      elseif (% [ $+ [ passenger $+ . $+ [ $WSV.name($4) ] ] ]) {
        var %b = % [ $+ [ passenger $+ . $+ [ $WSV.name($4) ] ] ]
        WSV.msg $2 $WSV.name($4) is a passenger in:
        WSV.msg $2 $WSV.carinfo(%b,$4).p
      }
      else WSV.msg $2 $WSV.name($4) is currently on foot.
    }
  }

Alias:
Quote
alias WSV.carinfo {
  var %id = ID: $chr(91) $1 $chr(93)
  var %name = Name: $chr(91) $hget(WSV.Config.Cars,$1) $chr(93)
  var %health = Health: $chr(91) $round($calc($WSV.vehicle($WSV.id($2)).health / 10),0) $+ % $chr(93)
  var %owner = Owner: $chr(91) $WSV.carowners($1) $chr(93)
  var %sowner = Owner: $chr(91) Sunshine-Autos $chr(93)
  var %shared = Shared with: $chr(91) $WSV.sharecarowners($1) $chr(93)
  var %cost = Price: $chr(91) $ $+ $WSV.carprices($1) $chr(93)
  var %speed = Max.Speed: $vcar.getspeed($1)
  var %acc = Max.Acc.: $vcar.getacc($1)
  var %mass = Mass: $vcar.getmass($1)
  var %say.d = %id %name %health
  var %say.p = %id %name

  if ($hget(WSV.Cars,$1 $+ CarOwners)) {
    var %say.d = %say.d %owner
    var %say.p = %say.p %owner
  }
  if ($WSV.carowners($1) == none) {
    var %say.d = %say.d %sowner
    var %say.p = %say.p %sowner
  }
  if ($hget(WSV.Cars,$1 $+ ShareCarOwners)) {
    var %say.d = %say.d %shared
    var %say.p = %say.p %shared
  }
  if ($hget(WSV.Cars,$1 $+ CarPrices)) && ($WSV.carowners($1) == none) {
    var %say.d = %say.d %cost
    var %say.p = %say.p %cost
  }
  if ($prop == d) .return %say.d
  if ($prop == p) .return %say.p
}

36
mIRC/pawn Scripting / Re: WSV help
« on: October 14, 2008, 09:04:38 am »
Nice, but i prefer hash.
Who made this script?

37
mIRC/pawn Scripting / Re: Question about VRocker's DLL
« on: October 12, 2008, 02:09:12 pm »
Hmm, i fixed the setmarker function but know when i place a merker somewhere than i can't delete it:

Quote
WSV.removemarker $4-

It is the same method what i use for setmarker its work, but this ones not. The marker not disappear from the map when i use this command.

Edit:
set 7 <id> (removes marker from player)
set 11 <id> <colour> (show player marker and change colour)
set 16 <marker> <pos.x> <pos.y> <pos.z> (set icon and posation)

Hmm i noticed, the vcmp 0.3z does not containes icon delete command  :)

38
mIRC/pawn Scripting / Re: WSV CMDS
« on: October 12, 2008, 01:48:50 pm »
That is a really useless stuff

39
mIRC/pawn Scripting / Re: WSV place script..
« on: October 11, 2008, 11:01:00 pm »
Coord checker IF command:
Quote
if (* $+ [ Your Place ] $+ * iswm $WSV.loco($2)) {

Price checker IF command:
Quote
if ($WSV.money($2) >= Your price value) {

40
mIRC/pawn Scripting / Question about VRocker's DLL
« on: October 11, 2008, 10:54:45 pm »
I have a problem with VRocker's DLL
I made a command that checks the currently game time:

Quote
elseif (gametime == $3) {
WSV.say Current Game Time: $chr(91) $WSV.hour $+ : $+ $WSV.minute $chr(93)

But its not showing the real time:
Quote
<~[SkT]Tamas> !settime 15:45
<&Robocop> Admin [SkT]Tamas Changed time to: [ 15:45 ]
<~[SkT]Tamas> !gametime
<&Robocop> Current Game Time: [ 15:52 ]
<~[SkT]Tamas> !settime 12:20
<&Robocop> Admin [SkT]Tamas Changed time to: [ 12:20 ]
<~[SkT]Tamas> !gametime
<&Robocop> Current Game Time: [ 12:21 ]

+I have another question about the DLL's setmarker, removemarker and putmarker functions.

It is possible to set a player's marker to a Sunshine-Autos icon for example?
Because i know this is possible in Bakasan's DLL.
+How can i add a marker to the map when iam currently ingame?
I use this function:

Quote
alias WSV.onjoin {
WSV.setmarker 26 -1022.3336 -853.7759 24.3164

But it is possible to add a marker when iam allready connected to the server?
For example !addmarker 25 <coord> --> than that specific marker appear on the map.

Regards  :)

41
mIRC/pawn Scripting / Re: WSV CMDS
« on: October 10, 2008, 09:53:19 pm »
Done:

Quote
    elseif (engineoff == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      WSV.setvehicleengine $4 0
      $WSV.vehiclename($4) $chr(93) engine turned off
    }
    elseif (engineon == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      WSV.setvehicleengine $4 2
      $WSV.vehiclename($4) $chr(93) engine turned on
    }

42
mIRC/pawn Scripting / Re: counter strike mod for vcmp v.1 beta
« on: October 10, 2008, 03:35:32 pm »
LOL  :P

43
mIRC/pawn Scripting / Re: WSV CMDS
« on: October 10, 2008, 03:33:24 pm »
Heres the code:

Quote
    elseif (engineoff == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.setvehicleengine $4 0
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.msg $2 Vehicle $chr(91) $WSV.vehiclename($4) $chr(93) engine turned off
      else WSV.msg $2 This is not your vehicle!
    }
    elseif (engineon == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.setvehicleengine $4 2
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.msg $2 Vehicle $chr(91) $WSV.vehiclename($4) $chr(93) engine turned on
      else WSV.msg $2 This is not your vehicle!
    }

But vcmp 0.3z does not support the engineon function correctly. Anyway you can turn it on again, by entering the vehicle.

44
mIRC/pawn Scripting / Re: WSV script starting kicking..
« on: October 07, 2008, 09:04:30 am »
Just delete the kick section.
You can found it somewhere at rejoin alias:

45
mIRC/pawn Scripting / Re: Spawn Problem
« on: October 01, 2008, 04:43:42 pm »
Nope, i deleted it and its work fine for me. But yes, the best idea is to delete it from the script. Delete the coords from the txt file is the easier way.

Pages: 1 2 [3] 4 5 ... 9