Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Script Showroom => Topic started by: creepers on August 05, 2009, 01:52:07 PM

Title: Random Spawnz0r [FBS]
Post by: creepers on August 05, 2009, 01:52:07 PM
well the script does is that you spawn at diff locs without changing your skin. it can prevent spawnkills
on *:SIGNAL:vcmp.player.spawn:{
  ; $1 = ServerID, $2 = PlayerID

  if ($FBS.pass($1, $2) != $null) && ($FBS.lin($1, $2) == 0) {
    $FBS.spawn.login($1, $2)
}

  !hadd -m SpawnedHash $vcmp.name($1, $2) has spawned at %loc $chr(93)

  var %chosen = $rand(0,howmanylocsyoudid)
    if (%chosen == 0) var %a = x y z, %loc = name of loc
    if (%chosen == 1) var %a = x y z, %loc = name of loc
    if (%chosen == etc..) var %a = x y z, %loc = name of loc
    vcmp.setlocation $1 $2 %a
    vcmp.say $1 >> $vcmp.name($1, $2) spawned at %loc

  !.signal vcmp.spawn $1-
}


you get the point on how to put it
Title: Re: Random Spawnz0r [FBS]
Post by: evil_night13 on August 05, 2009, 02:01:40 PM
yeh nice1 creeps ;D, good to c snippets are coming back to teh forums  ;)
Title: Re: Random Spawnz0r [FBS]
Post by: Obito on August 06, 2009, 04:12:23 AM
didn't u take that from wsv ?
Title: Re: Random Spawnz0r [FBS]
Post by: creepers on August 06, 2009, 11:24:16 AM
Quote from: Obito on August 06, 2009, 04:12:23 AM
didn't u take that from wsv ?
it wouldn't work quite nicely if i grabbed it from wsv. the idea was his i just made it FBS friendly. most of the stuff is from the randomloc command from FBS soo i didn't take the script from WSV, just the idea
Title: Re: Random Spawnz0r [FBS]
Post by: Knucis on August 06, 2009, 03:46:52 PM
:o nice one Creepz! Didnt know u were a scripter.
Title: Re: Random Spawnz0r [FBS]
Post by: creepers on August 07, 2009, 09:04:52 AM
lol im not much of a scripter, i just know how to do all these stuff :P
Title: Re: Random Spawnz0r [FBS]
Post by: [AoD]NC on August 07, 2009, 01:13:57 PM
Well, i made a similar random spawn fo FBS too, but it was months ago :P.

I suggest to do a command to enable or disable this ;). Cause if you got a 24h server, players wouldnt like always random spawns :P.