Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Javi on October 12, 2009, 03:27:50 PM

Title: LastManStanding [FBS, WIP]
Post by: Javi on October 12, 2009, 03:27:50 PM
Hya all,
I've been working on some LastManStanding (Simple) for FBS, this isn't working right now, for me.
What it does:

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!
      }   
    }
Title: Re: LastManStanding [FBS, WIP]
Post by: TLK.NicoArin on October 12, 2009, 10:35:56 PM
Nice work forze but u forgot to put the !join cmd....
Title: Re: LastManStanding [FBS, WIP]
Post by: Javi on October 12, 2009, 10:53:41 PM
Thanks, but the !join CMD is included  :P
Title: Re: LastManStanding [FBS, WIP]
Post by: Greg on October 13, 2009, 04:13:07 AM
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(http://imgserv.info/img_str/20091013_38372507.gif) hef_lms.rar (http://www.sendspace.com/file/1hayow)

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

Regards,
Greg
Title: Re: LastManStanding [FBS, WIP]
Post by: [AoD]NC on October 13, 2009, 03:18:19 PM
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
Title: Re: LastManStanding [FBS, WIP]
Post by: Javi on October 13, 2009, 06:11:29 PM
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?
Title: Re: LastManStanding [FBS, WIP]
Post by: Lucky_Killer on October 13, 2009, 09:09:13 PM
 LMS for WSV :D  ::)
Title: Re: LastManStanding [FBS, WIP]
Post by: [AoD]NC on October 13, 2009, 09:21:33 PM
Quote from: Forze on October 13, 2009, 06: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?
Title: Re: LastManStanding [FBS, WIP]
Post by: Javi on October 13, 2009, 09:31:29 PM
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?
Title: Re: LastManStanding [FBS, WIP]
Post by: Greg on October 14, 2009, 12:25:48 AM
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
Title: Re: LastManStanding [FBS, WIP]
Post by: Javi on October 14, 2009, 04:19:30 PM
Wrote for me? Working for all scripts?
Defenitely, you rock!
Title: Re: LastManStanding [FBS, WIP]
Post by: [XT]ariel[X] on October 14, 2009, 09:10:11 PM
tranks forze, greg I love :$ :D
Title: Re: LastManStanding [FBS, WIP]
Post by: gta5 on October 17, 2009, 04:37:50 AM
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
Title: Re: LastManStanding [FBS, WIP]
Post by: Greg on October 17, 2009, 09:45:28 AM
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
Title: Re: LastManStanding [FBS, WIP]
Post by: [AoD]NC on October 17, 2009, 12:39:25 PM
Quote from: Forze on October 13, 2009, 09: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.
Title: Re: LastManStanding [FBS, WIP]
Post by: thijn on October 17, 2009, 01:06:24 PM
Quote from: [AoD]NC on October 17, 2009, 12:39:25 PM
Quote from: Forze on October 13, 2009, 09: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
Wrong, Wrong and Wrong.
Just see this (http://forum.vicecitymultiplayer.com/index.php?topic=1371.0) post from Rulk and u see thats its not necessary to use a new language and server.
Title: Re: LastManStanding [FBS, WIP]
Post by: Javi on October 17, 2009, 01:13:16 PM
I have already got that :P
What I want is to start learning some SQ  :-\
Title: Re: LastManStanding [FBS, WIP]
Post by: [AoD]NC on October 17, 2009, 09:19:36 PM
Wait a minute! :P
SQ = Squirrel or SQL? :@
Title: Re: LastManStanding [FBS, WIP]
Post by: thijn on October 18, 2009, 06:04:49 PM
I guess he mean SQL.
Title: Re: LastManStanding [FBS, WIP]
Post by: MrAcmering on October 26, 2009, 10:07:30 PM
NICE WORK GREG!!!!!!!!!!!!!!!
Title: Re: LastManStanding [FBS, WIP]
Post by: Edward_RD on October 27, 2009, 04:34:42 AM
Hya  all..

Greg ........... My dad :P

a bug ... If I am fighting in ur LMS, when I type /q  ... continue start the LMS , so never can finish the LMS xD..

Good Clasic LMS  O::: ......