New teams
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. |
Re: New teams
PHP Code:
|
Re: New teams
-solved-
|
Re: New teams
|
Re: New teams
Quote:
Teams didn't matter and you could only kill a player that has different g_iPlayerTeam value. |
Re: New teams
Check for another plugin returning a different value.
|
Re: New teams
You should show us where you set the g_iPlayerTeam values because the problem is there, its not in this code
|
Re: New teams
Quote:
Quote:
|
Re: New teams
Quote:
I tried the exact code you posted with a simple command added to change players' teams and it worked just fine for me as well, aside from Code:
L 06/24/2018 - 01:39:19: [HAMSANDWICH] Wrong data type (data is of type entity) |
Re: New teams
SetHamParamFloat in TraceAttack and Killed are wrong.
|
All times are GMT -4. The time now is 09:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.