Thread: [Solved] New teams
View Single Post
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 05-24-2018 , 07:52   New teams
Reply With Quote #1

I'm having trouble fixing this code, I want that friendlyfire to be forbidden. Right now, if I'm CT, I can only kill T players (default gameplay), but I don't want the CT&T teams to matter, only g_iPlayerTeam variable.
So basically, if I'm CT and someone from T is in team with me, I can't kill him, but I can kill the rest of the CT players that aren't in my team.

I haven't scripted for a long time so I might be missing something, thanks to whoever helps.
__________________

Last edited by edon1337; 06-25-2018 at 14:23. Reason: solved
edon1337 is offline