• Welcome to Vice City Multiplayer.
 

LastManStanding [FBS, WIP]

Started by Javi, October 12, 2009, 02:27:50 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Javi

Hya all,
I've been working on some LastManStanding (Simple) for FBS, this isn't working right now, for me.
What it does:

  • Takes you to the LMS Position
  • Freezes you
  • Sets your HP to 100
  • Sets your Armour to 100
  • Counts down
  • Unfreezes
  • Begins

Here's the script, it would be fine if some of you guys could fix it  :P
}
  elseif ($3 == lms) {
    if (%lms == on) vcmp.say $1 ** LastManStanding already in progress!
    else {
      set %lms on
      timer 1 1 vcmp.say $1 ** LastManStanding has started! Type !join within 20 seconds.
      timer 1 20 set %lms off
    }
  }
  elseif ($3 == join) {
    if (%lms == on) vcmp.say $1 ** $vcmp.name($1, $2) has joined LastManStanding!
    else {
    vcmp.setlocation $1 $2 -754.187866 -1602.638916 23.734970
    vcmp.setarmour $1 $vcmp.name($1, $2) 100
    vcmp.sethealth $1 $vcmp.name($1, $2) 100
    vcmp.msg $1 $2 Taking you to LastManStanding. Enjoy!
      timer 1 1 vcmp.setcontrols $1 $vcmp.name($1, $2) 0
      timer 1 2 vcmp.say $1 LastManStanding starting in:
      timer 1 5 vcmp.say $1 ---- 1 ----
      timer 1 6 vcmp.say $1 ---- 2 ----
      timer 1 7 vcmp.say $1 ---- 3 ----
      timer 1 8 vcmp.say $1 ---- GO! ----
      timer 1 8 vcmp.setcontrols $1 $vcmp.name($1, $2) 1
  }
else {
      if (%lms == off) {
    vcmp.say $1 ** LastManStanding is not active!
      }   
    }

TLK.NicoArin

Nice work forze but u forgot to put the !join cmd....

Javi

Thanks, but the !join CMD is included  :P

Greg

#3
Hi Forze,

The first half of your snippet is not so bad, but in the second half are a lot of problems and in addition, you should create even the most important parts of the script, if you really wanna make a complete LMS.
Well, i think this would be not too easy for you yet, so, maybe try to use this one:  ;)

Quote hef_lms.rar

I hope you will be satisfied enough with that.  8)  ;)

Regards,
Greg

[AoD]NC

#4
Wow Greg, ur own LMS :P?

Anyway to Forze: u have forgot about some important things.
-weapon? [first set to 0, then to a specify]
-locations? only one? [ah cmon i have already hmm 70 :P ?]
-vcmp.setcontrols $1 $vcmp.name($1, $2) 1
U sure? Shouldnt it be $1 $2 0/1?

And u forgot about this, that LMS is working for many players. First, players type !join or whatever if they want join. After a few seconds, players who typed !join are teleported to the location etc. and fight.

In your script, you type join, it freezes you and unfreezes. And now i type join. I'm freezed and u not. U can shoot me, im freezed, know what i mean :P?

U should use a while loop.

Anyway Squirrel > mirc :P

Javi

Thank you soooo much Greg!  :D

NC, thanks. I guess I completely sux at scripting  :-[
I'll try to work on it. BTW how can I start working with SQ?

Lucky_Killer


[AoD]NC

Quote from: Forze on October 13, 2009, 05:11:29 PM
I guess I completely sux at scripting  :-[

Ah cmon, no one has learned scripting in 5 minutes. What u need is much practice + some ppl around who can anytime help you :).

QuoteBTW how can I start working with SQ?
U mean what to download or u wanna script now :P?

Javi

I'm lucky of having you (and other) near me. Nabs scripter needs help  :P

I mean, how do you write in SQ? Any software?

Greg

Hi again,

NC: This is not the LMS witch is working on my server, but its a public version of it, which i wrote yesterday for Forze.  :D
Btw. its completely fit for all scripts, which are based on VRocker's latest RCON DLL (v1.0.0.6)  8) ;)

Forze: Your welcome.  I hope this is, what you needed.  :)
Otherwise NC is right, learning any of programming languages, - and the usage of them - takes some time and thats not 1 or 2 day  :)
But if you need help, well, im here and just feel free to ask me. I would be glad to help you.  ;)

Regards,
Greg

Javi

Wrote for me? Working for all scripts?
Defenitely, you rock!

[XT]ariel[X]

Clic in image from enter in my web :D

gta5

I found a bug in it where if theres more than two people it will not end properly. I think maybe change this on the kill signal to:

elseif ($hget(lms, 0).item >= 3) hdel lms $vcmp.name($1, $2)

elseif ($hget(lms, 0).item >= 3) hdel lms $vcmp.name($1, $3)


but really im not sure, I couldn't seem to fix it :S. Great job though greg, it's a really nice script :D

Greg

Hi gta,

You are completely right  ;) , thanks a lot for reporting that bug.  :)
It was there because of a wrong copy-paste...  ;D
Sorry for it.  :D
Anyways, now i fixed it and updated the download link above ^^ .

Regards,
Greg

[AoD]NC

Quote from: Forze on October 13, 2009, 08:31:29 PM
I mean, how do you write in SQ? Any software?

SQ is something really different: a new server.exe, new config and Squirrel as programming lang [looks like hmm C or Pawn? :P]. Everything is other then you know now.

If you are interesting look on the LU forum:
http://forum.liberty-unleashed.co.uk/index.php?topic=250.0

Quotewhich i wrote yesterday for Forze.
Greg pr0 :P. A complete script in 1 day ;D.