• Nutscript - A specific faction spawns with 500 health?
    8 replies, posted
How do i make it so a faction in nutscript spawns with 500 health, the faction name is FACTION_jugg
Run SetHealth() in PlayerSpawn
[QUOTE=gonzalolog;49599303]Run SetHealth() in PlayerSpawn[/QUOTE] Where can i find playerspawn?
Humm...I meant, a new hook
[QUOTE=gonzalolog;49599399]Humm...I meant, a new hook[/QUOTE] Oh, how would you makw that hook?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/hook/Add]hook.Add[/url]
I don't think that you should be asking on developer section about someone to code it for you, because that's the vicious cicle of people that asks for something, they just repeating "How do i do that" until everyone here writtes the whole code for them
[QUOTE=gonzalolog;49599531]I don't think that you should be asking on developer section about someone to code it for you, because that's the vicious cicle of people that asks for something, they just repeating "How do i do that" until everyone here writtes the whole code for them[/QUOTE] Nothing wrong with helping a newcomer. [CODE] hook.Add( "PlayerSpawn", function( ply ) ply:SetHealth( 500 ) end ) [/CODE] Untested, but should work.
[QUOTE=JohnnyAppleCS;49599638]Nothing wrong with helping a newcomer. [CODE] hook.Add( "PlayerSpawn", function( ply ) ply:SetHealth( 500 ) end ) [/CODE] Untested, but should work.[/QUOTE] Okay thanks, so i just dp this in the faction lua file?
Sorry, you need to Log In to post a reply to this thread.