Blockland Forums > Modification Help

command swtich

Pages: << < (3/5) > >>

Cubelands:


--- Quote from: Fluff-is-back on April 09, 2012, 04:55:05 PM ---
function serverCmdSetOrb(%client, %type)
{
    if(!%client.isAdmin)
      return;
   switch$(%type)
    {
         case "bubble":
              Particle.setBitmap("Add-ons/Client_InterAdminOrbs/bubble.cs");

         case "chunk":
              Particle.setBitmap("Add-ons/Client_InterAdminOrbs/chunk.cs");
         //etc
    }
}


--- End quote ---
thank you! and how I can test myself see at the orb?

Swollow:

You would have to do something like this
CameraParticleA.textureName = "Add-ons/Server_AdminOrbSwitch/bubble.png"
1. Particle is not defined you must use CameraParticleA which is the admin orb emmiter datablock
2. there is no "setBitmap" use texturename
3. you can't set a texture to a cs it must be a png
4. this will probably crash all the other people who don't have Client_InterAdminOrbs


datablock DecalData(AdminBubbleSwitch)
{
   textureName = "Add-Ons/Server_AdminOrbSwitch/Bubble.png";
};
Add it as a decal data so people don't crash and make sure its a Server mod not a Client




Brian Smithers:

well if he makes it a DecalData it'll download it for them

Swollow:


--- Quote from: Brian Smithers on April 09, 2012, 09:44:15 PM ---well if he makes it a DecalData it'll download it for them

--- End quote ---
he'll have to change it to a sever mod
Edit: added the decal data above ^^

Cubelands:


--- Quote from: swollow on April 09, 2012, 09:43:31 PM ---You would have to do something like this
CameraParticleA.textureName = "Add-ons/Client_InterAdminOrbs/bubble.png"
1. Particle is not defined you must use CameraParticleA which is the admin orb emmiter datablock
2. there is no "setBitmap" use texturename
3. you can't set a texture to a cs it must be a png
4. this will probably crash all the other people who don't have Client_InterAdminOrbs

--- End quote ---


--- Code: ---"CameraParticleA.textureName= ("./base/data/particle/anyname.png");
--- End code ---


--- Quote from: swollow on April 09, 2012, 09:47:19 PM ---he'll have to change it to a sever mod

--- End quote ---
I did that already.

Pages: << < (3/5) > >>

Go to full version