How do i make a pointshop only for death or only for runner and only equiped when they are one of they classes ?
There are quite a few ways of doing this, but may I ask why you want to do this or what you intend it to be like?
You could edit PS_PlayerSpawn (sv_player_extension.lua), PS_CanPerformAction (sv_player_extension.lua), or PlayerSpawn (init.lua)
Or you could even add a line to all items like
[lua]ITEM.Runner = false[/lua]
So if you can be more specific maybe I can help you out.
Like i want them 2 spawn with the weapon i dont know why i added pointshop in there truly sorry
In your shared.lua(?) in your GM:PlayerSpawn() function you could run an if statement to check his team
ex.
[code]function GM:PlayerSpawn(ply)
local DEATH_NUMBER=3
if ply:Team()==3 then
ply:StripWeapons()
ply:Give("weapon_something")
end
[/code]
I don't really understand the context that you're asking but that might work.
ok so when a death spawns i want them 2 have a weapon i set and runner a crowbar
Forgive me, it's in your GM:PlayerLoadout function in your init.lua file. I assume you are using Mr. Gash's Deathrun so this is directly from line 322.
[code]function GM:PlayerLoadout( ply )
ply:Give("weapon_crowbar")
end[/code]
change that to
[code]function GM:PlayerLoadout(ply)
local death = 2
local runner = 3
if ply:Team()== death then
ply:Give("custom_wep")
end
if ply:Team()==runner then
ply:Give("weapon_crowbar")
end
end[/code]
[QUOTE=Namdalaz;43831098]Forgive me, it's in your GM:PlayerLoadout function in your init.lua file. I assume you are using Mr. Gash's Deathrun so this is directly from line 322.
[code]function GM:PlayerLoadout( ply )
ply:Give("weapon_crowbar")
end[/code]
change that to
[code]function GM:PlayerLoadout(ply)
local death = 2
local runner = 3
if ply:Team()== death then
ply:Give("custom_wep")
end
if ply:Team()==runner then
ply:Give("weapon_crowbar")
end
end[/code][/QUOTE]
Ty you where a big help
Sorry, you need to Log In to post a reply to this thread.