Garry's Mod

Garry's Mod

Murder
Herr Commander 2014 年 4 月 21 日 上午 7:56
How to add new weapon to murder carry(to take the people(FUN!!!)) form ttt
I found carry name weapon_zm_carry then I found a lua script where the murder geting knife
his name sv_player line namber 84 and I saw this
"function GM:PlayerLoadout(ply)

ply:Give("weapon_rp_hands")
-- ply:Give("weapon_fists")

if ply:GetMurderer() then
ply:Give("weapon_mu_knife")
end"
then I Add to "if ply:GetMurderer() then" this "ply:Give("weapon_zm_carry")"
and It look like this
"function GM:PlayerLoadout(ply)

ply:Give("weapon_rp_hands")
-- ply:Give("weapon_fists")

if ply:GetMurderer() then
ply:Give("weapon_mu_knife")
ply:Give("weapon_zm_carry")
end
"
I can't understand what i did wrong I put file "weapon_zm_carry" to "server\gamemodes\murderentities/weapons"
HELP ME
< >
目前顯示第 1-1 則留言,共 1
Noir 2014 年 7 月 11 日 上午 12:58 
Im really confused what you just asked lol.... For starters you should use pastebin for separate codes.Two, if your making a new weapons, go to the gamemode/ then murder/ then entities/ weapons/ make a similar folder name as weapon_mu_WEAPONNAME.... Then put the shared.lua of that weapon in there. Go back to the playerloadout and add ply:Give("weapon_muWEAPONNAME")
< >
目前顯示第 1-1 則留言,共 1
每頁顯示: 1530 50