My anti team kill works when I attack my enemy
#1

What the hell. It only works when I attack my enemy.
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;
}
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!"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)