43
« on: June 28, 2008, 08:38:16 am »
sorry for double post,this is what i have up to now:
1.- elseif ($2 == !announce) $iif($hget(vcmp,loggedin. $+ %id) < 5,vcmp.adminmsg %id You must be Admin Level 5 or higher to attempt this command.,vcmp.gametext.all $3-)
This Works Fine,but im stuck with adding it to the echo commands,so i can "announce" from IRC.
;--- hop and higher commands
elseif ($1 == !announce) vcmp.gametext.all $3-
I obviosly have something wrong,but dont know what.
2.- time command doesnt work,ill try work on it more tomorrow i left it like this :
elseif ($2 == !time) vcmp.adminchat GMT + 1 Current Date/Time $asctime
4.- Very proud of this,all due to respect to bakasan but i would recommend this.
elseif ($2 == !getcar) {
if ($hget(vcmp,loggedin. $+ %id) < 5) vcmp.adminmsg %id You must be Admin Level 5 or higher to attempt this command.
else {
if ($vcmp.hgetcarid(%id) != 0) vcmp.adminmsg %id You must not be in a vehicle to use !getcar.
else {
if ((!$3) || ($3 > 200) || ($3 < 0)) vcmp.adminmsg %id Error: Invalid Car ID.
else {
vcmp.getloc $vcmp.hgetpos.x(%id) $vcmp.hgetpos.y(%id) $vcmp.hgetpos.z(%id) 0
vcmp.setcarloc $3 $vcmp.hgetpos.x(%id) $calc($vcmp.hgetpos.y(%id) + 3.5) $calc($vcmp.hgetpos.z(%id) - 1.0)
;vcmp.setcar %id $3
vcmp.adminmsg %id Got car $3 $+ !
}
Thanks in advance for the possible help . . .