121
mIRC/pawn Scripting / Re: Config: Playerpos, Campos and Camlook
« on: July 10, 2008, 01:46:09 am »
Use /s or /save to save the coords XYZ
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.
$1 is for irc and $2 is for ingame
elseif ($2 == !checkhp) { $vcmp.checkcheat($3) }
elseif ($2 == !ban) {
if ($hget(vcmp,loggedin. $+ %id) < 5) { vcmp.adminmsg %id You must be Admin Level 5 or higher to attempt this command. | vcmp.kick %id }
else {
if ($vcmp.nameid($3) == $null) vcmp.adminmsg %id Error: Invalid ID.
else {
if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg %id You can't ban someone higher level admin than you... | vcmp.kick %id }
else { vcmp.ban $vcmp.nameid($3) $iif($4-,Reason: $4-) }
}
}
}
if ($hget(vcmp,loggedin. $+ %id) < 5)
if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3)))
$findtok(text,token,N,C)
Returns the position of the Nth matching token in text.
$findtok(a.b.c.d,c,1,46) returns 3
$findtok(a.b.c.d,e,1,46) returns $null
If you specify zero for N, it returns the total number of matching tokens.
Note: $findtokcs() is the case-sensitive version.