public OnPlayerDeath(playerid, killerid, reason)
{
/*if(emguerra[playerid] == 1)
{
format(gstring, 128, "%s saiu da zona de guerra!", PlayerName(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
emguerra[playerid] = 0;
}*/
//new dmessage[128];
//new deathreason[20];
new Float
x,Float
y,Float
z;
PlayerInactivity[playerid] = 0;
//DropGrana(playerid);
gPlayerSpawned[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
GetPlayerPos(playerid, px, py, pz);
spawnado[playerid] = 0;
if (gPlayerTerminal[playerid] != 0)
{
BusrouteEnd(playerid);
}
if(PlayerPaintballing[killerid] == 0)
{
SetPlayerCriminal(killerid, 255, "Assasinato");
PlayerInfo[killerid][pKills] += 1;
}
if(TendoGuerra == 1 && IsPlayerInTerritorio(playerid) && IsPlayerInTerritorio(killerid))
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
Territorio[talmortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
Territorio[almortos] += 1;
}
}
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
Territorio[exemortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
Territorio[almortos] += 1;
}
}
if(PlayerInfo[killerid][pMembro] == 15 || PlayerInfo[killerid][pLider] == 15)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
Territorio[exemortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
Territorio[talmortos] += 1;
}
}
}