1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Global PET flags/Operator PEts

Discussion in 'Programming' started by LeoMarr, Aug 22, 2013.

  1. Curious how I would go about making flags global on all of a persons characters, Also would like to know how to re-make the /chargivepet command that spencer had for Openaura as his gith is dead now.
     
  2. diablo1675

    diablo1675 Guest

    It's in the config files in-game: Starting Flags or something, look for it. You can then add in what you want, and any new character will be awarded these flags automatically.
     
  3. I don't want that, I want players I give PET flags to have it on all their characters. Not everyone having it. Thanks though
     
  4. diablo1675

    diablo1675 Guest

    So far, there's no plugin for that request. But I guess, if you put in the Plugins section, with a [REQUEST] infront of it, I'm sure someone will get back to you.
     
  5. Datzy

    Datzy Guest

    Spencer's /CharGivePet:
    Code:
    COMMAND = Clockwork.command:New("CharGivePet");
    COMMAND.tip = "Give or take ToolTrust and PhysGunTrust(pet Flags).";
    COMMAND.text = "<string Name>";
    COMMAND.access = "s";
    COMMAND.arguments = 1;
    
    -- Called when the command has been run.
    function COMMAND:OnRun(player, arguments)
    	local target = Clockwork.player:FindByID( arguments[1] );
    	
    	if (target) then
    		if (!Clockwork.player:HasFlags(target, "pet")) then
    			Clockwork.player:NotifyAll(player:Name().." gave AllTrusts to "..target:Name()..".");
    			Clockwork.player:GiveFlags(target, "pet")
    			target:SetData("phystrust", 1)
    			target:SetData("tooltrust", 1)
    			Clockwork.player:LightSpawn(target, true, true);
    		else
    			Clockwork.player:NotifyAll(player:Name().." gave AllTrusts to "..target:Name()..".");
    			Clockwork.player:TakeFlags(target, "pet")
    			target:SetData("phystrust", 0)
    			target:SetData("tooltrust", 0)
    			Clockwork.player:LightSpawn(target, true, true);
    		end
    	else
    		Clockwork.player:Notify(player, arguments[1].." is not a valid player!");
    	end;
    end;
    
    COMMAND:Register();
     
  6. That what I needed thanks!
     

Previous Readers (Total: 0)