• Welcome to Vice City Multiplayer.
 

!getall....

Started by BoySticK, December 20, 2008, 05:27:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BoySticK

How can i do !getall?
HELP!!!

thnx

note:GUS

thijn

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
}
}


Force

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
  }
}

BoySticK


thijn

just for the info: What was the typo ???


Amenine

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

thijn

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!)


Force

Quote from: thijn on December 21, 2008, 02:33:52 PM
just for the info: What was the typo ???

Hey Thij, You had Unkown instead of Unknown  ;)

thijn



[NoN]Toiletduck

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.