• Welcome to Vice City Multiplayer.
 

Random Spawnz0r [FBS]

Started by creepers, August 05, 2009, 12:52:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

creepers

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
December 18, 2007
January 6, 2008

evil_night13

yeh nice1 creeps ;D, good to c snippets are coming back to teh forums  ;)

Obito

didn't u take that from wsv ?

creepers

Quote from: Obito on August 06, 2009, 03: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
December 18, 2007
January 6, 2008

Knucis

:o nice one Creepz! Didnt know u were a scripter.

creepers

lol im not much of a scripter, i just know how to do all these stuff :P
December 18, 2007
January 6, 2008

[AoD]NC

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.