Anti Team-Kill Problem
#10

Use SetPlayerTeam in order to put someone in a team;
Use in
PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
     if(
hittype==BULLET_HIT_TYPE_PLAYER//hit a player
               
if(GetPlayerTeam(playerid)==GetPlayerTeam(hitid)) //the same team
                           
return 0;       // block the shot
     
return 1;

Reply


Messages In This Thread
Anti Team-Kill Problem - by xXdaeminoXx - 19.04.2016, 17:12
Re: Anti Team-Kill Problem - by zPain - 19.04.2016, 17:14
Re: Anti Team-Kill Problem - by Saliim - 19.04.2016, 19:14
Re: Anti Team-Kill Problem - by F1N4L - 19.04.2016, 20:19
Re: Anti Team-Kill Problem - by xXdaeminoXx - 19.04.2016, 20:23
Re: Anti Team-Kill Problem - by F1N4L - 19.04.2016, 20:27
Re: Anti Team-Kill Problem - by xXdaeminoXx - 19.04.2016, 20:37
Re: Anti Team-Kill Problem - by F1N4L - 19.04.2016, 20:50
Re: Anti Team-Kill Problem - by xXdaeminoXx - 19.04.2016, 21:01
Re: Anti Team-Kill Problem - by AdrianG - 20.04.2016, 00:22

Forum Jump:


Users browsing this thread: 1 Guest(s)