08.05.2014, 06:51
What the hell. It only works when I attack my enemy.
There is nothing wrong, right? My gTeam's and my SetPlayerTeam's aren't bugged at all. I am just surprised when I sometimes attack my enemy then boom! "DO NOT TEAM KILL!"
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hitid == gTeam[playerid] || hitid == GetPlayerTeam(playerid))
{
GameTextForPlayer(playerid, "~r~Do not teamkill!", 1000, 5);
return 0;
}
return 1;
}