• Welcome to Vice City Multiplayer.
 

How to create checkpoint?

Started by capitanazo, July 20, 2007, 05:20:46 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

capitanazo


Elited Fish

dont spam this mIRC Scripting forums with questions... >:(

Juppi

Quote from: Elited Fish on July 21, 2007, 03:36:50 AM
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:

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.

capitanazo

=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

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

Falcon

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


; $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
}
}


matthiasvegh

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