1- sansan has stuff like this:
alias vcmp.gametextpm.all vcmp.doforall vcmp.gametextpm $$1 $$2 $$3-
alias vcmp.gametext.all vcmp.doforall vcmp.gametext $$1 $$2-
alias vcmp.adminmsg.all vcmp.doforall vcmp.adminmsg $$1 $$2-
alias vcmp.team.gametextpm vcmp.team.doforall vcmp.gametextpm $$1 $$2 $$3-
alias vcmp.team.adminmsg vcmp.team.doforall vcmp.adminmsg $$1 $$2-
which should make it fairly easy to make some announce type commands such as:
elseif ($2 == !announce) vcmp.gametext.all $3-
after lookin at it closer, i realised u may need to edit the alias like this:
alias vcmp.doforall {
var %k = 0
while (%k < %max_players) {
if ($vcmp.nameid(%k) != $null) { $$1 %k $2- }
!inc %k
}
}
and
alias vcmp.gametext.all vcmp.doforall vcmp.gametext $$1-
alias vcmp.adminmsg.all vcmp.doforall vcmp.adminmsg $$1-
to get it to work correctly
obviously vcmp.adminmsg.all is a bit redundant, since u could just do vcmp.adminmsg ... those functions may not have been tested and were probably aimed more at sansan "modes" but should be close to working
2- ur code calls vcmp.adminchat twice technically
elseif ($2 == !time) vcmp.adminchat $currenttime
then the alias $currenttime also has it:
alias currenttime vcmp.adminchat $asctime(HH:mm)
so right off to prevent crashes or weirdness try just using:
elseif ($2 == !time) vcmp.adminchat $asctime(HH:mm)
as for the timezone for gmt+1 !time command, u might just try this:
elseif ($2 == !time) vcmp.adminchat $asctime(($calc($gmt + 3600),HH:mm)
$gmt + 3600 (the number of seconds in an hour - 60 * 60)
theres probably a better way but that should work i figure (not tested tho)
3- not sure what that is all about, some skins are flaky and dont always work correctly. generally if u use all skins below around 108, or all skins above 108, it usually works as expected.
4?-I managed to find out how to disable the auto-enter in vehicle when you do !getcar,but now it spawns on me,anyway of making it spawn a bit on one side,i think with a "sum" it would do the trick like add 5 to the coordinates or something.
elseif ($2 == !getcar) {
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)
[b];[/b] vcmp.setcar %id $3
vcmp.adminmsg %id Got car $3 $+ !
}
hmm maybe try
elseif ($2 == !getcar) {
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) $calc($vcmp.hgetpos.z(%id) + 1.5) 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 $+ !
}
to make the player kinda on top of the car or something..
or else maybe just something like
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) $calc($vcmp.hgetpos.y(%id) + 2.5) $vcmp.hgetpos.z(%id)
;vcmp.setcar %id $3
vcmp.adminmsg %id Got car $3 $+ !
}
hope that helps some