28.04.2015, 14:16
Vc quer que o K/D seja contado em qualquer morte? Por que no seu sistema, o K/D sу й contado nessa parte:
ou seja, as outras checagens de morte nгo adicionam ponstos em mortes ou kills.
eu colocaria essa parte:
logo abaixo de:
ficando:
Код:
if(InEvento[killerid] == 0 && Inx1A[killerid] == 0 && Inx1L[killerid] == 0 && InGaiola[killerid] == 0) { if(admtrampando[playerid] == 0 && helptrampando[playerid] == 0 && TempoONOFF[playerid] == 0) { if(PlayerInfo[playerid][pHorasON] == 0 && PlayerInfo[playerid][pLevel] <= 3 && PlayerInfo[playerid][pMembro] == 0 && PlayerInfo[playerid][pLider] == 0) { format(string, sizeof(string),"[AVISO] Vocк matou %s um Novato/Civil e por isso Perdeu -1 Ponto de [Matou/Kill] no RG.", Nome(playerid)); SendClientMessage(killerid, Vermelho, string); PlayerInfo[killerid][pMatou] -= 1; } else { PlayerInfo[killerid][pMatou] += 1; PlayerInfo[playerid][pMorreu] += 1; ChecaTempoExp(killerid); ChecaTempoExp(playerid); } } }
eu colocaria essa parte:
Код:
PlayerInfo[killerid][pMatou] += 1; PlayerInfo[playerid][pMorreu] += 1;
Код:
if(killerid != INVALID_PLAYER_ID) {
Код:
if(killerid != INVALID_PLAYER_ID) { PlayerInfo[killerid][pMatou]++; PlayerInfo[playerid][pMorreu]++; -------------------------- resto do cуdigo ---------------------------