Author Topic: LastManStanding [FBS, WIP]  (Read 10245 times)

0 Members and 2 Guests are viewing this topic.

Offline Javi

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 149
    • View Profile
LastManStanding [FBS, WIP]
« on: October 12, 2009, 04: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:
  • 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
Code: [Select]
}
  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

  • Guest
Re: LastManStanding [FBS, WIP]
« Reply #1 on: October 12, 2009, 11:35:56 pm »
Nice work forze but u forgot to put the !join cmd....

Offline Javi

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 149
    • View Profile
Re: LastManStanding [FBS, WIP]
« Reply #2 on: October 12, 2009, 11:53:41 pm »
Thanks, but the !join CMD is included  :P

Offline Greg

  • Street Thug
  • *
  • Posts: 19
  • VC-MP Server Admin
    • View Profile
Re: LastManStanding [FBS, WIP]
« Reply #3 on: October 13, 2009, 05: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
hef_lms.rar

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

Regards,
Greg
« Last Edit: August 21, 2010, 04:26:02 am by Greg »

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: LastManStanding [FBS, WIP]
« Reply #4 on: October 13, 2009, 04: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
« Last Edit: October 13, 2009, 04:20:23 pm by [AoD]NC »

Offline Javi

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 149
    • View Profile
Re: LastManStanding [FBS, WIP]
« Reply #5 on: October 13, 2009, 07: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?

Lucky_Killer

  • Guest
Re: LastManStanding [FBS, WIP]
« Reply #6 on: October 13, 2009, 10:09:13 pm »
 LMS for WSV :D  ::)

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: LastManStanding [FBS, WIP]
« Reply #7 on: October 13, 2009, 10:21:33 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 :).

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

Offline Javi

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 149
    • View Profile
Re: LastManStanding [FBS, WIP]
« Reply #8 on: October 13, 2009, 10: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?

Offline Greg

  • Street Thug
  • *
  • Posts: 19
  • VC-MP Server Admin
    • View Profile
Re: LastManStanding [FBS, WIP]
« Reply #9 on: October 14, 2009, 01: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

Offline Javi

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 149
    • View Profile
Re: LastManStanding [FBS, WIP]
« Reply #10 on: October 14, 2009, 05:19:30 pm »
Wrote for me? Working for all scripts?
Defenitely, you rock!

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: LastManStanding [FBS, WIP]
« Reply #11 on: October 14, 2009, 10:10:11 pm »
tranks forze, greg I love :$ :D
Clic in image from enter in my web :D

Offline gta5

  • Wiseguy
  • **
  • Posts: 54
    • View Profile
    • No1 Hosting
Re: LastManStanding [FBS, WIP]
« Reply #12 on: October 17, 2009, 05: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

Offline Greg

  • Street Thug
  • *
  • Posts: 19
  • VC-MP Server Admin
    • View Profile
Re: LastManStanding [FBS, WIP]
« Reply #13 on: October 17, 2009, 10: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

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: LastManStanding [FBS, WIP]
« Reply #14 on: October 17, 2009, 01:39:25 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

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