24.10.2012, 15:08
(
Last edited by EV007; 25/10/2012 at 02:45 PM.
)
pawn Code:
printf("%d",PlayersDamaged[issuerid][PlayerI[issuerid][PlayersHit]]);
if(PlayersDamaged[issuerid][idSlot[playerid][issuerid]] == playerid)
{
DamageIS[issuerid][playerid] += amount;
print("samedamager");
}
if(idSlot[playerid][issuerid] == -1)
{
DamageIS[issuerid][playerid] = amount;
PlayerI[issuerid][PlayersHit]++;
PlayerI[playerid][pDamagers]++;
idSlot[playerid][issuerid] = PlayerI[issuerid][PlayersHit];
PlayersDamaged[issuerid][PlayerI[issuerid][PlayersHit]] = playerid;
print("1dmger");
}
printf("Hitted player slot: %d",PlayersDamaged[issuerid][PlayerI[issuerid][PlayersHit]]);
EDIT:
pawn Code:
if(idSlot[playerid][issuerid] == -1)
{
// DamageIS[issuerid][playerid] = amount;
PlayerI[issuerid][PlayersHit]++;
PlayerI[playerid][pDamagers]++;
idSlot[playerid][issuerid] = PlayerI[issuerid][PlayersHit];
PlayersDamaged[issuerid][PlayerI[issuerid][PlayersHit]] = playerid;
print("1dmger");
}