How can i set my Deaths player model for my deathrun server.
thanks in advance
Remove this line in the init.lua
[code]
ply:SetModel( mdl or table.Random( rModels ) )
[/code]
Replace it with this:
[code]
if ply:Team() == TEAM_RUNNER then
ply:SetModel( mdl or table.Random( rModels ) )
elseif ply:Team()== TEAM_DEATH then
ply:SetModel( "yourmodelhere" )
return
end
[/code]
[QUOTE=Swiftone;41133895]Remove this line in the init.lua
[code]
ply:SetModel( mdl or table.Random( rModels ) )
[/code]
Replace it with this:
[code]
if ply:Team() == TEAM_RUNNER then
ply:SetModel( mdl or table.Random( rModels ) )
elseif ply:Team()== TEAM_DEATH then
ply:SetModel( "yourmodelhere" )
return
end
[/code][/QUOTE]
Thank you it worked :D. now any ideas on how to add guns to the maps?
Thats in the map, you can code weapons in but it takes a bit of knowledge and you need to put the cords per map.
If you find basic SWEPS just place them in your deathrun/entities/weapons folder I believe the GM will spawn them in most maps.
Dose any one know how to make this perm so if player has a player model from pointshop and they on death they get the death player model?
[QUOTE=nathan3197;52079613]Dose any one know how to make this perm so if player has a player model from pointshop and they on death they get the death player model?[/QUOTE]
Nice 4 year bump.
Anyway, in the Pointshop player model code, check if the player is on the runners team, and only set the model if he is
[QUOTE=JasonMan34;52080508]Nice 4 year bump.
Anyway, in the Pointshop player model code, check if the player is on the runners team, and only set the model if he is[/QUOTE]
is this in the items/playermodel/theplayermodel.ula
ir some where else
im very new to lua coding can i have some example of doing this?
Sorry, you need to Log In to post a reply to this thread.