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!

Make A Faction Spawn With A SWEP?

Discussion in 'Discussion' started by Knight, May 22, 2016.

  1. Code:
    function Schema:PlayerGiveWeapons(player)
       if (player:GetFaction() == FACTION_YOURFACTION) then
         Clockwork.player:GiveSpawnWeapon(player, "yourswep");
       end;
    end;
    
    The 'yourswep' name is usually the same as the folder name that includes the cl_init, init and shared files of the swep. Ofc change FACTION_YOURFACTION to vortigaunt or whatever.
     
  2. Where do you put that code?
     
  3. https://u.pomf.is/igujol.zip Download this plugin here, put it in your schema's plugin folder, and then put it in "sv_hooks.lua". Any lines of code that you need to add to the schema's main files you should put in this plugin instead. Its good practice.
     
  4. You can also put the vort swep on a flag if you want; msg me on steam and I will show you how.
     

Previous Readers (Total: 0)