i dont know if this is the correct code but here it goes:
public OnPlayerDeath(playerid, killerid, reason)
{
VezesMorto[playerid]++;
new name[MAX_PLAYER_NAME];
new string[256];
//new dmessage[128];
//new deathreason[20];
new playercash;
new killerName[MAX_PLAYER_NAME];
new playerName[MAX_PLAYER_NAME];
new victimteam;
new Float
![Tongue](images/smilies/razz.gif)
x,Float
![Tongue](images/smilies/razz.gif)
y,Float
![Tongue](images/smilies/razz.gif)
z;
new killerteam;
new GTRID = GetPlayerTerritorio(playerid);
victimteam = gTeam[playerid];
killerteam = gTeam[killerid];
gPlayerSpawned[playerid] = 0;
GetPlayerName(playerid, name, sizeof(name));
PlayerInfo[playerid][pLocal] = 255;
GetPlayerPos(playerid, px, py, pz);
spawnado[playerid] = 0;
for(new x = 0; x <= MAX_PLAYERS; x++)
{
TextDrawHideForPlayer(x, MortoInfo[x]);
if(IsPlayerInFavela(x) || IsPlayerInBoca2(x) || IsPlayerInQuadra(x) || IsPlayerInPark(x)
|| IsPlayerInBoca1(x) || IsPlayerInBoca3(x) || IsPlayerInRiacho(x) || IsPlayerInIndustria(x)
|| IsPlayerInFonteSF(x) || IsPlayerInShoppingSF(x) || IsPlayerInPraiaSF(x)
|| IsPlayerInAeroSF(x) || IsPlayerInConstrucaoSF(x) || IsPlayerInRiacho(x)
|| IsPlayerInCasarao(x) || IsPlayerInEstacao(x))
{
format(string, sizeof(string), "%s%s ~w~(%s)~n~~n~~w~Matou~n~~n~%s%s ~w~(Morto %d vezes)",RandomTextColor[random(sizeof(RandomTextColor))], GetName(killerid), GetWeaponInformation(GetPlayerWeapon(killerid)), RandomTextColor[random(sizeof(RandomTextColor))], GetName(playerid), VezesMorto[playerid]);
TextDrawFormatShowForPlayer(x,MortoInfo[x],string);
}
}
if(TendoGuerra >= 1)
{
if(IsPlayerInGuerra(playerid) && IsPlayerInGuerra(killerid))
{
if(ExeXHam >= 1)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
ContHam += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ContExe += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(ExeXAlq >= 1)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ContAlq += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ContExe += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(HamXExe >= 1)
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ContExe += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
ContHam += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(HamXAlq >= 1)
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ContAlq += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
ContHam += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(AlqXExe >= 1)
{
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
ContExe += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ContAlq += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
if(AlqXHam >= 1)
{
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
ContHam += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
ContAlq += 1;
KenInfo[playerid][DBGuerra] = 1;
KenInfo[killerid][DBGuerra] = 1;
}
}
}
}
}
if(EntrounoEvento == 1)
{
GetPlayerName(playerid,killerName,sizeof(killerNam e));
GetPlayerName(playerid,playerName,sizeof(playerNam e));
format(xDString, sizeof(xDString), "[BRJOGOS] %s matou %s Arma:%d", killerName, playerName, reason);
SendClientMessageToAll(0x33FF00FF, xDString);
EntrounoEvento = 0;
}
if(JogadorNoEvento[playerid] != 1)
{
JogadorNoEvento[killerid] ++;
if(JogadorNoEvento[killerid] > VencedorDoEvento)
{
new killer[MAX_PLAYER_NAME];
VencedorDoEvento = killerid;
VencedorDoEvento = JogadorNoEvento[killerid];
GetPlayerName(killerid, killer, sizeof(killer));
}
return 1;
}
if(ProvocoCasarao[playerid] == 1)
{
GangZoneStopFlashForAll(GZCasarao);
GangZoneShowForAll(GZCasarao, 0xFFFFFF96);
GuerranoCasarao = 0;
ProvocoCasarao[playerid] = 0;
donocasarao = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraCasarao);
}
if(ProvocoRiacho[playerid] == 1)
{
GangZoneStopFlashForAll(GZRiacho);
GangZoneShowForAll(GZRiacho, 0xFFFFFF96);
GuerranoRiacho = 0;
ProvocoRiacho[playerid] = 0;
donoriacho = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraRiacho);
}
if(ProvocoIndustria[playerid] == 1)
{
GangZoneStopFlashForAll(GZIndustria);
GangZoneShowForAll(GZIndustria, 0xFFFFFF96);
GuerranaIndustria = 0;
ProvocoIndustria[playerid] = 0;
donoindustria = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraIndustria);
}
if(ProvocoEstacao[playerid] == 1)
{
GangZoneStopFlashForAll(GZEstacao);
GangZoneShowForAll(GZEstacao, 0xFFFFFF96);
GuerranaEstacao = 0;
ProvocoEstacao[playerid] = 0;
donoestacao = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraEstacao);
}
if(ProvocoFavela[playerid] == 1)
{
GangZoneStopFlashForAll(GZFavela);
GangZoneShowForAll(GZFavela, 0xFFFFFF96);
GuerranaFavela = 0;
ProvocoFavela[playerid] = 0;
donofavela = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFavela);
}
if(ProvocoQuadra[playerid] == 1)
{
GangZoneStopFlashForAll(GZQuadra);
GangZoneShowForAll(GZQuadra, 0xFFFFFF96);
GuerranaQuadra = 0;
ProvocoQuadra[playerid] = 0;
donoquadra = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraQuadra);
}
if(ProvocoBoca1[playerid] == 1)
{
GangZoneStopFlashForAll(GZBoca1);
GangZoneShowForAll(GZBoca1, 0xFFFFFF96);
GuerranoBoca1 = 0;
ProvocoBoca1[playerid] = 0;
donoBoca1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraBoca1);
}
if(ProvocoPark[playerid] == 1)
{
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
GuerranoPark = 0;
ProvocoPark[playerid] = 0;
donopark = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPark);
}
if(ProvocoBoca2[playerid] == 1)
{
GangZoneStopFlashForAll(GZBoca2);
GangZoneShowForAll(GZBoca2, 0xFFFFFF96);
GuerranoBoca2 = 0;
ProvocoBoca2[playerid] = 0;
donoBoca2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraBoca2);
}
if(ProvocoBoca3[playerid] == 1)
{
GangZoneStopFlashForAll(GZBoca3);
GangZoneShowForAll(GZBoca3, 0xFFFFFF96);
GuerranoBoca3 = 0;
ProvocoBoca3[playerid] = 0;
donoBoca3 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraBoca3);
}