My freegetcar command for sasan only for admins:
elseif ($2 == !freegetcar) {
if ($hget(vcmp,loggedin. $+ %id) < 10) vcmp.adminmsg %id You must be Admin Level 10 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.setloc %id $vcmp.hgetpos.x(%id) $vcmp.hgetpos.y(%id) $vcmp.hgetpos.z(%id) 0
vcmp.setcarloc $3 $vcmp.hgetpos.x(%id) $vcmp.hgetpos.y(%id) $vcmp.hgetpos.z(%id)
vcmp.setcar %id $3
vcmp.adminmsg %id Got car $3 $+ !
}
}
}
}
It needs to go under:
;--- handle in-game [chat] commands
on *:SIGNAL:vcmp.event.gamecmd {