1
mIRC/pawn Scripting / Re: Make a teleport command-own command
« on: March 21, 2009, 10:35:54 am »
If you are using WSV, open script editor and look at all replace the GUS paramaters and alises with the WSV ones. It can't be very difficult.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
}
elseif ($2 == !dmarena) {
if ($vcmp.cmdcheck(!dmarena,%id) == fail) !halt
else {
vcmp.msg %id Taking you to the Death Match arena...
.timer 1 1 vcmp.setlocation %id axis axis axis
}
;-----------------------------
;------------SPAWN------------
;-----------------------------
alias vcmp.spawn.loc !return $gettok($vcmp.location($1,x),1,46) $+ , $+ $gettok($vcmp.location($1,y),1,46) $+ , $+ $gettok($vcmp.location($1,z),1,46)
}
alias vcmp.before.findskin {
;$1 == ID
;$2 == NAME
timer -m 1 1000 vcmp.findskin $1-
}
alias vcmp.findskin {
;$1 == ID
;$2 == NAME
if (Biker1 isin $vcmp.area($1)) {
!writeini -n vcmp.skin.ini SKINS $1 Biker-Boy
vcmp.msg $1 You spawned as a Biker-Boy.
}
elseif (Biker2 isin $vcmp.area($1)) {
!writeini -n vcmp.skin.ini SKINS $1 Biker-Buddy
vcmp.msg $1 You spawned as a Biker-Buddy.
}
elseif (Biker isin $vcmp.area($1)) {
!writeini -n vcmp.skin.ini SKINS $1 Biker
vcmp.msg $1 You spawned as a Biker.
}
}
}
on *:SIGNAL:vcmp.spawn:{
var %name = $1
var %id = $vcmp.getid($1)
timer -m 1 500 vcmp.before.findskin %id %name
}
echo @Server 5 $+ >> $2 spawned $+
if ($vcmp.setting.spawn == On) vcmp.say >> $1 spawned
if (($vcmp.pass(%id) != $null) && ($vcmp.lin(%id) != 1)) {
if ($vcmp.ip(%name) == $readini(vcmp.admin.ini,IPS,%name)) {
vcmp.say $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator)) %name Auto-Logged In (Admin Level: $vcmp.level(%id) $+ )
vcmp.msg %id You Auto Logged In - Nick-Name: %name $+ , Admin Level: $vcmp.level(%id) $+ , Status: $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator))
vcmp.timer.login %name off
!writeini -n vcmp.admin.ini LIN %name 1
!writeini -n vcmp.admin.ini IPS %name $vcmp.ip(%name)
}
else {
vcmp.announce %id PLEASE LOGIN TO THIS NICK-NAME
vcmp.msg %id You Must Login to this Nick-Name! Type: /c login <password>
vcmp.sethp %id 0
}
}