• Team Damage
    6 replies, posted
I have a question since I'm really bad at life. Is there a way in DarkRP to have the same team not do damage to each other, or to set multiple teams so they can't damage to eachother?
Dude, i'm bad at life too, thanks to 10k hours of playing (4k+ on gmod) :v: [url]http://wiki.garrysmod.com/page/GM/PlayerShouldTakeDamage[/url] Check if the entity (2nd arg) is a player and then compare teams of first player and second.
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PlayerShouldTakeDamage]GM/PlayerShouldTakeDamage[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/IsPlayer]Entity:IsPlayer[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/Team]Player:Team[/url]
You can't use Player:Team() because DarkRP sets jobs as teams (PLEASE CORRECT ME IF IM WRONG) He pretty much wants a custom DarkRP teammod, something you can really only get on Scripfodder.
[QUOTE=ROFLBURGER;50017466]You can't use Player:Team() because DarkRP sets jobs as teams (PLEASE CORRECT ME IF IM WRONG) He pretty much wants a custom DarkRP teammod, something you can really only get on Scripfodder.[/QUOTE] What other teams could he be referring to besides the dark RP jobs. unless he means like a party system if that's the case then OP needs to be more clear in what he wants
[QUOTE=ROFLBURGER;50017466]You can't use Player:Team() because DarkRP sets jobs as teams (PLEASE CORRECT ME IF IM WRONG) He pretty much wants a custom DarkRP teammod, something you can really only get on Scripfodder.[/QUOTE] You actually can its the same when you make a HUD that gets the team color for like when you change it the color changes it too.
[QUOTE=boxvader;50018133]What other teams could he be referring to besides the dark RP jobs. unless he means like a party system if that's the case then OP needs to be more clear in what he wants[/QUOTE] I thought he was referring to a party system. If he means jobs as in teams, then he can use the team check.
Sorry, you need to Log In to post a reply to this thread.