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!

[Clockwork]Primary Needs v1.1

Discussion in 'Plugins' started by Arbiter329, Apr 10, 2013.

  1. Re: [Clockwork]Primary Needs v1.0

    No it wouldn't. Just set their needs to not be 0.
     
  2. Re: [Clockwork]Primary Needs v1.0

    How would I be able to disable the plug in for certain ranks, like DvL+ and OTA?
     
  3. ZeMysticalTaco

    ZeMysticalTaco yo i'm a taco have some lunch Clockwork Customer

    Re: [Clockwork]Primary Needs v1.0

    Probably get the check is combine rank whatever hook, and make it return false or some shit. iunno.
     
  4. Re: [Clockwork]Primary Needs v1.0

    Do you know where I can get the code to look up rank?
     
  5. ZeMysticalTaco

    ZeMysticalTaco yo i'm a taco have some lunch Clockwork Customer

    Re: [Clockwork]Primary Needs v1.0

    It's somewhere in the framework, I'll see if I can find it, One minute.

    Edit:
    Code:
    function Schema:IsCombineFaction(faction)
    	return (faction == FACTION_MPF or faction == FACTION_OTA);
    end;
    This should be it, Either that or it's to get if the faction is a combine faction.

    Edit2: Oh you meant to get their rank.

    Code:
    -- A function to check if a player is a Combine rank.
    function Schema:IsPlayerCombineRank(player, rank, realRank)
    	local name = player:Name();
    	local faction = player:GetFaction();
    	
    	if (self:IsCombineFaction(faction)) then
    		if (type(rank) == "table") then
    			for k, v in ipairs(rank) do
    				if (self:IsPlayerCombineRank(player, v, realRank)) then
    					return true;
    				end;
    			end;
    		elseif (rank == "EpU" and !realRank) then
    			if (string.find(name, "%pSeC%p") or string.find(name, "%pDvL%p")
    			or string.find(name, "%pEpU%p")) then
    				return true;
    			end;
    		else
    			return string.find(name, "%p"..rank.."%p");
    		end;
    	end;
    end;
    
    -- A function to get a player's Combine rank.
    function Schema:GetPlayerCombineRank(player)
    	local faction = player:GetFaction();
    	
    	if (faction == FACTION_OTA) then
    		if (self:IsPlayerCombineRank(player, "OWS")) then
    			return 0;
    		elseif (self:IsPlayerCombineRank(player, "EOW")) then
    			return 1;
    		else
    			return 2;
    		end;
    	elseif (self:IsPlayerCombineRank(player, "RCT")) then
    		return 0;
    	elseif (self:IsPlayerCombineRank(player, "04")) then
    		return 1;
    	elseif (self:IsPlayerCombineRank(player, "03")) then
    		return 2;
    	elseif (self:IsPlayerCombineRank(player, "02")) then
    		return 3;
    	elseif (self:IsPlayerCombineRank(player, "01")) then
    		return 4;
    	elseif (self:IsPlayerCombineRank(player, "OfC")) then
    		return 6;
    	elseif (self:IsPlayerCombineRank(player, "EpU", true)) then
    		return 7;
    	elseif (self:IsPlayerCombineRank(player, "DvL")) then
    		return 8;
    	elseif (self:IsPlayerCombineRank(player, "SeC")) then
    		return 9;
    	elseif (self:IsPlayerCombineRank(player, "SCN")) then
    		if (!self:IsPlayerCombineRank(player, "SYNTH")) then
    			return 10;
    		else
    			return 11;
    		end;
    	else
    		return 5;
    	end;
    end;
    That should be it.
     
  6. B-S

    B-S No Artwork.1

    Re: [Clockwork]Primary Needs v1.0

    Does anyone know what plugins conflict with Primary Needs?
     
  7. Arbiter329

    Arbiter329 Owner of Arc-Factory Roleplay

    Re: [Clockwork]Primary Needs v1.0

    None that I know of.
     
  8. Dub

    Dub Guest

    Re: [Clockwork]Primary Needs v1.0

    Primary needs brings amazing Dark RP to Clockwork so you can fall asleep in combat as the Commander of the entire Combine forces.

    Amazing plugin.

    (Seriously, fix 'dat.)
     
  9. B-S

    B-S No Artwork.1

    Re: [Clockwork]Primary Needs v1.0

    Hm, strange because I installed it properly and everything that it needs but in the CW plugin menu it's not displayed and not only that but it doesn't work, I'd really like to use it so I need a solution.
     
  10. Re: [Clockwork]Primary Needs v1.0

    Enter -condebug into your server's command line, restart the server, and paste the contents of the generated console.log file (located in the server's garrysmod directory) to pastebin.com

    After you have done so, copy the URL of the paste and include it in your reply.
     
  11. B-S

    B-S No Artwork.1

    Re: [Clockwork]Primary Needs v1.0

    http://pastebin.com/WNbNere7
     
  12. B-S

    B-S No Artwork.1

    Re: [Clockwork]Primary Needs v1.0

    Bump
     
  13. Arbiter329

    Arbiter329 Owner of Arc-Factory Roleplay

    Re: [Clockwork]Primary Needs v1.0

    Just released V1.1, which is just the same but formatted for the latest version of Clockwork.

    If you're having trouble getting the plugin to work, delete it and use the new version instead. (Download link in OP has been updated.)
     
  14. B-S

    B-S No Artwork.1

    Re: [Clockwork]Primary Needs v1.0

    It works fine, but the primary needs items dont work. The plugin doesn't even show up.
     
  15. B-S

    B-S No Artwork.1

    I really need this fixed, people are gonna be annoyed when they dont have the items to fix their hunger/thirst haha. :)
     
  16. Tonttunator

    Tonttunator Umm...what?

    Dont double post, anyways
    I liked the plugin, really neat! ;D
     
  17. B-S

    B-S No Artwork.1

    Still waiting for a fix on this.
     
  18. Arbiter329

    Arbiter329 Owner of Arc-Factory Roleplay

    The items plugin should be working, I did updated it. Any specific errors with it?
     
  19. B-S

    B-S No Artwork.1

    The plugin works, just not the actual ITEMS plugin. Did you update it a few days ago? its been a while since i downloaded your recent one and it didnt work. The items dont appear in game and the Plugin is not in the plugin list in game
     
  20. B-S

    B-S No Artwork.1

    I know this is a double post and its annoying for me and you that I keep asking but this fix for the items plugin is really needed..
     

Previous Readers (Total: 0)