Not working. Is this is correct?
#1

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(playerid > MAX_PLAYERS || issuerid > MAX_PLAYERS || playerid == INVALID_PLAYER_ID || issuerid == INVALID_PLAYER_ID) return 1;
if(PlayerInfo[playerid][pMember] == 8 && weaponid == 34 && bodypart == 9)
    {
        SetPlayerHealth(playerid, 0.0);
    }
return 1;
}
its a part of the code. This function only not working.
Reply
#2

What exactly are you trying to do by checking playerid > MAX_PLAYERS || issuerid > MAX_PLAYERS?
Reply
#3

Probably because PlayerInfo[playerid][pMember] isn't equal to 8
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)