Hello, I tried to add a console command to deathrun but it came up with console command not found:
[lua]concommand.Add( "force", force )
function force()
if ply:IsSuperAdmin() or ply:IsAdmin() then
ply:SetTeam( 3 )
else
print( "You are not super admin!" )
end
end
[/lua]
[editline]25th August 2014[/editline]
The team 3 is Runners
[code]concommand.Add( "force", force, function force(ply)
if ply:IsAdmin() then
ply:SetTeam( 3 )
else
print( "You are not super admin!" )
end
end)[/code]
Should work.
Thx
No problem.
If it doesn't work, add me on steam.
[url]http://steamcommunity.com/profiles/76561198056469034[/url]
well i see what you are doing there, But you are making a minor detour maybe it is easier for you to use this instead
[LUA]concommand.Add( "force", function(ply)
if ply:IsAdmin() then
ply:SetTeam( 3 )
else
print( "You are not super admin!" )
end
end)[/LUA]
And it might be easier not to SetTeams but to set NWInt's but that is just my opinion ; D Gl
Sorry, you need to Log In to post a reply to this thread.