Vice City Multiplayer
		VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Javi 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
 }
 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!
 }
 }
 
- 
				Nice work forze but u forgot to put the !join cmd....
			
- 
				Thanks, but the !join CMD is included  :P
			
- 
				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:  ;)
 
 (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
- 
				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
- 
				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?
- 
				 LMS for WSV :D  ::)
			
- 
				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 :).
 
 BTW how can I start working with SQ? U mean what to download or u wanna script now :P?
- 
				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?
- 
				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
- 
				Wrote for me? Working for all scripts?
 Defenitely, you rock!
- 
				tranks forze, greg I love :$ :D
			
- 
				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
- 
				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
- 
				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
 
 which i wrote yesterday for Forze.  Greg pr0 :P. A complete script in 1 day ;D.
- 
				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.
- 
				I have already got that :P
 What I want is to start learning some SQ  :-\
- 
				Wait a minute! :P
 SQ = Squirrel or SQL? :@
- 
				I guess he mean SQL.
			
- 
				NICE WORK GREG!!!!!!!!!!!!!!!
			
- 
				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::: ......