• how can I make players spawn with a certain weapon?
    3 replies, posted
hi. on my ttt server i just got this script [url]http://coderhire.com/scripts/view/1112[/url] I want to make Traitors spawn with it. how can i do this?
Very simple, just edit the script and add the TTT loadout functionality. [url=Custom Weapons]http://ttt.badking.net/custom-weapon-guide[/url] [quote=TTT]The InLoadoutFor field is structured similar to CanBuy, in that it's a table of role identifiers. For those roles, the weapon is given automatically upon the beginning of the round. This is how Detectives get their DNA Scanner. The AK47 isn't default for anyone, so it's nil (could also leave it out)..[/quote] [lua]SWEP.InLoadoutFor = {ROLE_TRAITOR} [/lua] This would be the same way the DNA scanner is
where would i put this?
Change it in the shared.lua of the weapon (or since the update weapon_ttt_xxx.lua)
Sorry, you need to Log In to post a reply to this thread.