Author Topic: How to create checkpoint?  (Read 7733 times)

0 Members and 1 Guest are viewing this topic.

Offline capitanazo

  • Street Thug
  • *
  • Posts: 36
  • Chilean vcmp Master!
    • View Profile
How to create checkpoint?
« on: July 20, 2007, 07:20:46 pm »
How??

Offline Elited Fish

  • Street Thug
  • *
  • Posts: 15
    • View Profile
Re: How to create checkpoint?
« Reply #1 on: July 21, 2007, 05:36:50 am »
dont spam this mIRC Scripting forums with questions... >:(

Juppi

  • Guest
Re: How to create checkpoint?
« Reply #2 on: July 21, 2007, 09:54:11 pm »
dont spam this mIRC Scripting forums with questions... >:(

??? Isn't the idea of the forum to ask questions and deliver information you have...?


I don't know is it possible to create a checkpoint using mIRC. I think some kind of checkpoint system (or possibility to make races) is coming in 0.4, but i don't think that it is already in 0.3z (devs could know more...?)

In the race at checkpoint, the server should automatically check players location, which is a problem. There could be a way to create a finish, but then players should write a command to indicate they have finished (e.g. !finish). If you're using Tommis' GUS, first you have to save the finish area to vcmp.data.ini (e.g. COORDINATES=Finish ). Then you add the !finish command to the script. It could be something like this:

Code: [Select]
elseif (!finish iswm $2) {
    if ($vcmp.area(%a) != Finish) vcmp.say You are not in the finish area!
    else vcmp.say $vcmp.name(%a) has finished the race!
}

This is my idea for the race finish, the only problem is that the script don't check players location automatically, player has to indicate that him/herself by typing the finish command. You could do checkpoints similar way, but it adds work while racing, so it is not a good idea. Maybe someone else has better ideas.

Offline capitanazo

  • Street Thug
  • *
  • Posts: 36
  • Chilean vcmp Master!
    • View Profile
Re: How to create checkpoint?
« Reply #3 on: July 21, 2007, 10:13:16 pm »
=O thanks man  i using a ammu nation check point for create my race and use you command =D thanks bye and sorry for my english

Juppi

  • Guest
Re: How to create checkpoint?
« Reply #4 on: July 22, 2007, 08:53:10 pm »
No problemo :) I'm planning to make a race using commands like this myself. We'll see, if i get it ready... If someone have any ideas, they are welcome.. :P

Offline Falcon

  • VC:MP Developer
  • Wiseguy
  • *
  • Posts: 73
    • View Profile
Re: How to create checkpoint?
« Reply #5 on: July 23, 2007, 04:40:15 pm »
There is another way using a pickup, id 382 can only be picked up in vehicles.
So a simple check like this would enable a check point system

Code: [Select]
; $1 playerid
; $2 pickupid
; $3 picktype
on *:SIGNAL:vcmp.pickup:{
 if ($3 == 382) {
   ; player has got check point
   ; now respawn for next person
   vcmp.command spawn spawnpickup $2
   ; set position at checkpoint
   %pos = $calc(%pos + 1)
   vcmp.command adminsay bah is in %pos position
 }
}

Offline matthiasvegh

  • Street Thug
  • *
  • Posts: 40
  • =RA=Phil_Cassidy
    • View Profile
    • InternetDJ
Re: How to create checkpoint?
« Reply #6 on: July 24, 2007, 03:38:39 pm »
hmm, but is the vcmp.pickup event defined? it would work, when player gets to pickup they win, but.. i dunno. it prolly will work, coz i saw the money icon pickup somewhere, and if i picked it up, it showed my cash, so it prolly works.

if were talking bout pickups, is there a list with ALL pickups (ie.: money icon, adreanaline etc.. not just weps.)?? ???

Edit::: http://forum.vicecitymultiplayer.com/index.php?topic=138.0