Author Topic: need help for a script  (Read 5134 times)

0 Members and 1 Guest are viewing this topic.

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
need help for a script
« on: January 13, 2010, 02:19:30 pm »
well i want to make a script for my server which you must use
!bank for example to create a marker (maybe dark red , or black dot on map (like the player ones)) then the newer players to vc (i have got many friends that started to play vcmp) can get there easily , and then when they touch the marker/pickup , the marker will delete itself. But the big problem is, i dont know how i can do this. which commands i need to use , which parameters , any new aliases?

Script base: FBS / mIRC

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: need help for a script
« Reply #1 on: January 14, 2010, 10:27:58 pm »
I have a hard time understanding what you said... I guess you want this command.

Code: [Select]
elseif ($3 == bank) vcmp.setmarker $1 1 vcmp.location($1,$2).x vcmp.location($1,$2).y vcmp.location($1,$2).z
1 is the marker id. It can be from 1 to 30, but not any higher I think.

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: need help for a script
« Reply #2 on: January 15, 2010, 08:01:48 am »
and how i can remove it later , if the player reaches the bank

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: need help for a script
« Reply #3 on: January 15, 2010, 03:50:45 pm »
Well there is a way to remove a marker since FBS uses the Vrockers DLL. Never tried it though.

Add this near the other aliases.

Code: [Select]
alias vcmp.removemarker !return $dll( " $+ $scriptdirvcmp.dll $+ ", RemoveMarker, $1- )
Then make a timer that detects if you're in the bank.

It should work something like this vcmp.removemarker $1 1






Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: need help for a script
« Reply #4 on: January 15, 2010, 04:21:06 pm »
and only one question left:

whats this?:

alias vcmp.setplayermarker !return $dll( " $+ $scriptdirvcmp.dll $+ ", SetPlayerMarker, $1- )

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: need help for a script
« Reply #5 on: January 15, 2010, 04:30:17 pm »
Its used to set a players icon color on the mini map.

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: need help for a script
« Reply #6 on: January 15, 2010, 04:55:49 pm »
should i use it like this

vcmp.setplayermarker $1 1 %x %y %z  ?

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: need help for a script
« Reply #7 on: January 15, 2010, 05:01:34 pm »
No its vcmp.setplayermarker $1 $2 1

1 can be from 0 to 11.



Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: need help for a script
« Reply #8 on: January 15, 2010, 05:09:30 pm »
as a marker or what?

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: need help for a script
« Reply #9 on: January 15, 2010, 05:21:55 pm »
it just sets the color of the dot you see on your radar.

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: need help for a script
« Reply #10 on: January 15, 2010, 05:23:31 pm »
which dot? the one of other players or what?

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: need help for a script
« Reply #11 on: January 15, 2010, 05:26:42 pm »
Its the player dot on the map. You can't see the color of your dot, only of others.
« Last Edit: January 15, 2010, 05:34:42 pm by Skirmant »

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: need help for a script
« Reply #12 on: January 15, 2010, 05:33:36 pm »
ah ok