16.06.2017, 20:24
Hey guys can someone help me and say why or solve it for me ? is not a big problem .. but i really don't know why is not working :-s
under public onplayergivedamage
nothing from type 1 and 2 is working... when i shot a team mate he still get's damage , can someone help me ?
under public onplayergivedamage
HTML Code:
new sameteam = HumanPlayer[playerid] == 1; new sameteamd = HumanPlayer[damagedid] == 1; Type 1: if(HumanPlayer[playerid] == 1 && HumanPlayer[damagedid] == 1) amount = 0; Type 2: if(HumanPlayer[playerid] == 1 && HumanPlayer[damagedid] == 1 && sameteam == sameteamd) amount = 0;