• Welcome to Vice City Multiplayer.
 

Admin command

Started by Punjabi, August 13, 2008, 11:30:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Punjabi

Hi
Can anyone tell me how to create admin command in wwhich only admin will be shown not admin level.
Tell me if anyone know this ------------>plz reply ???
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

szostol

What script? Own, sasan, gus, winlord?

Punjabi

Wsv script(Windlord)
Plz help :'(
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Force

WSV has an admins command already D:, just remove the part that says "Level:" if it does

Punjabi

From where i can delete --level---
From where?
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Windlord

Change the admins command to this ;)

  elseif (admin* iswm $3) {
    var %a = 0
    while (%a <= %maxplayers) {
      if ($WSV.levels(%a) > 0) && ($WSV.loggedin(%a)) {
        if (%b) var %b = %b , $WSV.nom(%a)
        elseif (!%b) var %b = $WSV.nom(%a)
      }
      inc %a
    }
    if (%b) vcmp.say $1 > Admins Online: %b
    else vcmp.say $1 > No Admins Are Currently Online
  }

Punjabi

GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Force

Wind is it just be or will that return everyone level 0 and over?

Windlord

That will return the admins online without their level tags.

Force

Well I know that  :D, I was more looking at:


if ($WSV.levels(%a) > 0)

GTA-Roloboy

Quote from: [SDT]F_T_F0RC3 on August 14, 2008, 03:58:12 PM
Well I know that  :D, I was more looking at:


if ($WSV.levels(%a) > 0)


I'm not sure the 0 will work well.
To be sure use:


if ($WSV.levels(%a) >= 1)