General > Developers Corner
Ulx respawn command - ttt
bender180:
--- Code: ---for _, v in ipairs( target_plys ) do
v:SetRole(ROLE_DETECTIVE)
v:Give("weapon_ttt_wtester")
v:AddCredits("1")
end
--- End code ---
ambro:
--- Quote from: bender180 on March 28, 2013, 10:03:02 AM ---
--- Code: ---for _, v in ipairs( target_plys ) do
v:SetRole(ROLE_DETECTIVE)
v:Give("weapon_ttt_wtester")
v:AddCredits("1")
end
--- End code ---
--- End quote ---
Thats actually not the proper way of doing that.
Instead use,
v:SetDefaultCredits()
in place of the Give and AddCredits, this will provide the base credits for T/D respectively
[TET] Tobias:
--- Quote from: ambro on April 01, 2013, 10:49:37 PM ---Thats actually not the proper way of doing that.
Instead use,
v:SetDefaultCredits()
in place of the Give and AddCredits, this will provide the base credits for T/D respectively
--- End quote ---
Can you show me where to put the command. Every time I use it will make LUA errors.
Navigation
[0] Message Index
[*] Previous page
Go to full version