106
mIRC/pawn Scripting / Re: Script Help
« on: August 02, 2008, 02:26:40 am »
This isn't work too
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.
Anyway its work fine but if i insert command suc: /c goto [SRS]Tomi it says invalid ID, if i repleace the ($vcmp.hgetname($3) to: ($vcmp.nameid($3) its still not work and also the server teleport me to golf stage if i use name instead number..
elseif (($2 == goto) && ($vcmp.loggedin($1) > 4)) {
if ($vcmp.hgetname($3) == $null) vcmp.adminmsg $1 Error: Invalid ID.
else {
if ($hget(vcmp,loggedin. $+ $1) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg $1 You can't transfer someone higher level admin than you. }
else { vcmp.adminchat Transfering:[ [ $vcmp.hgetname($1) ] ] to:[ [ $vcmp.hgetname($3) ] ] | vcmp.setloc $1 $vcmp.hgetpos.x($3) $vcmp.hgetpos.y($3) $vcmp.hgetpos.z($3) 0 }
}
}
;--- misc aliases
;--- account shite
;--- Vote Kick Alias'
alias vcmp.votes !return $iif($readini(vcmp.votes.ini,VOTES,$vcmp.hgetname($1)),$v1,0)
alias vcmp.vkick {
if ($vcmp.votes($1) >= 2) {
!writeini -n vcmp.votes.ini VOTES $vcmp.hgetname($1) 3
vcmp.adminchat Kicking $vcmp.hgetname($1) - Reason: Vote - Kicked $+ , By Admin: $iif($2,$v1,Unknown)
vcmp.kick $1
hdel ToKick $1
}
else {
!writeini -n vcmp.votes.ini VOTES $vcmp.hgetname($1) $calc($vcmp.votes($1) + 1)
vcmp.adminchat $vcmp.votes($1) $+ /3 votes recieved!
}
}
on *:SIGNAL:vcmp.event.part:{
if ($hget(ToKick,$2) == voting) {
vcmp.adminchat Vote Kick cancelled for $2 $+ , Reason: Left the server!
!writeini -n vcmp.votes.ini VOTES $2 0
remini vcmp.votes.ini VOTES $2
hdel ToKick $2
hfree VoteKick
hdel VotedTable $2
.signal vcmp.event.delplayer $1 $2
if (%echolevel > 0) vcmp.echo 3**03 $1 $2 03left the game. $vcmp.quitreason($3)
}
on *:SIGNAL:vcmp.event.kill:{The server show this message:
if ($vcmp.deathreason($4) == Drive-By) {
vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Drive - By $chr(93)
vcmp.kick2 %idk
vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname(%idk) ] Reason:[ Drive-By ]
}
var %namek = $strip($vcmp.nickcolor($1)), %named = $strip($vcmp.nickcolor($3)), %idk = $vcmp.nameid(%namek), %idd = $vcmp.nameid(%named), %spawnkill = $vcmp.config.checkforspawnkill(%idd,%idk)
vcmp.validweapon %idk $4
vcmp.killingspree.process %idk %idd
if ($vcmp.acct.exists(%namek) != 0) { vcmp.addkill %namek | vcmp.addweaponstat %namek $4 }
if ($vcmp.acct.exists(%named) != 0) vcmp.addkilled %named
if (%echolevel > 1) vcmp.echo 04** $1 04killed $3 04 $par($vcmp.deathreason($4))
if (($vcmp.isplayerspawned(%idk)) && (%spawnkill != $null)) vcmp.cmd.killplayer %idk Spawnkilling.
.signal vcmp.event.handledeath %idd
}
** Auto - Kick Player:[ ] Reason:[ Drive - By ]
elseif (($1 == !say) || ($1 == !chat)) vcmp.adminchat || $+ $nick $+ || $2-
elseif (($1 == !anothertestsaycommand) || ($1 == !atsc)) vcmp.adminchat || $+ $nick $+ || $2-