• Death Console commands
    5 replies, posted
Hi i want if players dead console commands start for him
:what: I don't quite understand what you're trying to say. Can you clarify?
I want if players death console commands run for him
[QUOTE=Gloutoblop;52524137]I want if players death console commands run for him[/QUOTE] Okay.. If you're looking to run the console commands DIRECTLY AFTER the player dies, you should use: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PostPlayerDeath]GM:PostPlayerDeath[/url] Since this is serverside, you'll have to use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/ConCommand]Player:ConCommand[/url]. ex: [code] hook.Add( "PostPlayerDeath", "PostPlayerDeath.RunCommands", function( _Player ) _Player:ConCommand( "command_here" ) end) [/code]
[QUOTE=kpjVideo;52524164]Okay.. If you're looking to run the console commands DIRECTLY AFTER the player dies, you should use: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PostPlayerDeath]GM:PostPlayerDeath[/url] Since this is serverside, you'll have to use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/ConCommand]Player:ConCommand[/url]. ex: [code] hook.Add( "PostPlayerDeath", "PostPlayerDeath.RunCommands", function( _Player ) _Player:ConCommand( "command_here" ) end) [/code][/QUOTE] Thanks is work
Sorry, you need to Log In to post a reply to this thread.