How can i do !getall?
HELP!!!
thnx
note:GUS
			
			
			
				try this:
elseif ($2 == !getall) {
vcmp.say Getting all players to Admin %name
var %a = 0
while (%a < 20) {
if ($vcmp.name(%a) != Unkown) vcmp.setlocation %a $vcmp.location(%id)
!inc %a
}
}
			
			
			
				Yeh, Just noticed a typo in there Thij, not sure if anyone else will do so I've just corrected your typo. ;)
elseif ($2 == !getall) {
  vcmp.say Getting all players to Admin %name
  var %a = 0
  while (%a < 20) {
    if ($vcmp.name(%a) != Unknown) vcmp.setlocation %a $vcmp.location(%id)
    !inc %a
  }
}
			
			
			
				ohh thnx again! ;D ;D
			
			
			
				just for the info: What was the typo ???
			
			
			
				Hey thijn i have seen u u r posting useless replies all around the forum ...stop it....u will get ur 200 posts ..dont be so hurry about that..
Regards
Amenine
			
			
			
				useless? I just wanna know what i did wrong so i can learn lolz, The post u make is spamming....
So i can say to you: Stop spamming the forum (ooh and stop spamming my PM box to!)
			
			
			
				Quote from: thijn on December 21, 2008, 01:33:52 PM
just for the info: What was the typo ???
Hey Thij, You had Unkown instead of Unk
nown  ;)
			
 
			
			
				ooh  ;D Little typo :P
			
			
			
				There is one problem with this script.  It does not check vcmp.cmdcheck so you cannot put a restriction on what level players are allowed to use it.
Like this:
 }
  elseif ($2 == !getall) {
    if ($vcmp.cmdcheck(!getall,%id) == fail) !halt
    vcmp.say Getting all players to Admin %name
    var %a = 0
    while (%a < 20) {
      if ($vcmp.name(%a) != Unknown) vcmp.setlocation %a $vcmp.location(%id)
      !inc %a
    }
Only you must add !getall to vcmp.cmdlevel.ini and then put the minimum level of players that are allowed to use it.