• DarkRP: Default weapon for certain classes
    3 replies, posted
Hello, a question regarding the class default weapon. Is there any way to remove default weapons for a certain class? There is a zombie class I'm working on, how do I remove the pocket, keys, physgun and toolgun for that zombie class? Thanks :D.
From what I understand, most gamemodes do their loading out in... Surprise, the PlayerLoadout function! You may want to check the playerloadout function, then add in conditions, such as if not class zombie then blah blah.
[QUOTE=Bel Irkalli;35289262]From what I understand, most gamemodes do their loading out in... Surprise, the PlayerLoadout function! You may want to check the playerloadout function, then add in conditions, such as if not class zombie then blah blah.[/QUOTE] You are absolutely correct. That function is located in the sv_gamemode_functions.lua file, just ctrl + f for "GM:PlayerLoadout". A couple lines down from that you'll see the ply:Give("wephere") stuff. As Bel had said, just do something like "if not ply:Team() == TEAM_WHATEVER then". I'm sure you know what to do from there.
Ah, thank you guys so much. I couldn't find the player loadout before. You guys made my day easier!
Sorry, you need to Log In to post a reply to this thread.