[QUOTE=Moja;21518588][url]http://wiki.garrysmod.com/?title=Code_Snippets_General#Making_a_Custom_SpawnMenu[/url][/QUOTE]
not what he asked for
OP why not just block them from doing anything other than spawning props unless they are admin
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnSWEP]Gamemode.PlayerSpawnSWEP [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnSENT]Gamemode.PlayerSpawnSENT [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnRagdoll]Gamemode.PlayerSpawnRagdoll [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnNPC]Gamemode.PlayerSpawnNPC [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnEffect]Gamemode.PlayerSpawnEffect [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
usage like so
[lua]
hook.Add("PlayerSpawnSWEP", "AdminOnlySWEPs", function( ply, class, wep )
return ply:IsAdmin()
end)
[/lua]
Run on server and sorry if I missed some hooks alot to look for
I already have the spawning of those things disabled, I just want to block the tabs from even showing up in the spawnmenu, unless you're an admin. :)
I dont think you can do that unless you remake spawnmenu
[QUOTE=|King Flawless|;21525409]I dont think you can do that unless you remake spawnmenu[/QUOTE]
It's possible, to remove the tabs.
[QUOTE=Cubar;21536188]It's possible, to remove the tabs.[/QUOTE]
Then tell him how...
[QUOTE=Cubar;21536188]It's possible, to remove the tabs.[/QUOTE]
Rated tool...because you're a tool.
Sorry, you need to Log In to post a reply to this thread.