pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:px,Float:py,Float:pz;
new NomePlayerMatou[MAX_PLAYER_NAME];
new NomePlayerMorreu[MAX_PLAYER_NAME];
GetPlayerName(killerid, NomePlayerMatou, sizeof(NomePlayerMatou));
GetPlayerName(playerid, NomePlayerMorreu, sizeof(NomePlayerMorreu));
PlayerInactivity[playerid] = 0;
gPlayerSpawned[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
TextDrawShowForPlayer(playerid, forum[playerid]);
TextDrawShowForPlayer(playerid, BGS[playerid]);
TextDrawShowForPlayer(playerid, TextDrawdeData[playerid]);
TextDrawShowForPlayer(playerid, TextDrawdeHora[playerid]);
SetPlayerChatBubble(playerid, ".", COLOR_RED, 1, 1);
GetPlayerPos(playerid, px, py, pz);
spawnado[playerid] = 0;
RemovePlayerAttachedObject(playerid,4);
KillTimer(TempoContagem[playerid]);
SendDeathMessage(killerid,playerid,reason);
if (gPlayerTerminal[playerid] != 0)
{
BusrouteEnd(playerid);
}
if(PlayerPaintballing[killerid] == 0 && IsPlayerInFavela(playerid) == 0 && IsPlayerInSkate(playerid) == 0
&& IsPlayerInEstacao(playerid) == 0 && IsPlayerInCasarao(playerid) == 0 && IsPlayerInHotel(playerid) == 0 && IsPlayerInFloresta(playerid) == 0 && IsPlayerInChuck(playerid) == 0)
{
SetPlayerCriminal(killerid, 255, "Assassinato");
PlayerInfo[killerid][pKills] += 1;
}
if ( fkill [ playerid ] < 3 ) fkill[playerid]++ , SetTimerEx ( "MenosFKill" , 1000 , false , "d" , playerid ) ;
else
{
new string23 [ 128 ] , nome23 [ MAX_PLAYER_NAME ] ;
GetPlayerName ( playerid , nome23 , sizeof ( nome23 ) ) ;
format ( string23 , sizeof ( string23 ) ,"%s[ID:%d] Foi Kickado Por Supeita de Fake-Kill!." , nome23 , playerid ) ;
SendClientMessageToAll ( -1 , string23 ) , Kick(playerid);
}
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;
}
}
}
if(WantedPoints[playerid] >= 1)
{
new price = WantedPoints[playerid] * 100;
if(PlayerInfo[killerid][pMembro] == 1 || PlayerInfo[killerid][pLider] == 1)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Militar.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
PlayerInfo[playerid][pDina] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
SetPlayerChatBubble(playerid, ".", COLOR_RED, 1, 1);
}
if(PlayerInfo[killerid][pMembro] == 2 || PlayerInfo[killerid][pLider] == 2)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 3;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na HQ B.O.P.E.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
PlayerInfo[playerid][pDina] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
SetPlayerChatBubble(playerid, ".", COLOR_RED, 1, 1);
}
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 7;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos no Exйrcito.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDina] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
SetPlayerChatBubble(playerid, ".", COLOR_RED, 1, 1);
}
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 4;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Civil.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDina] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
SetPlayerChatBubble(playerid, ".", COLOR_RED, 1, 1);
}
if(PlayerInfo[killerid][pMembro] == 23 || PlayerInfo[killerid][pLider] == 23)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 8;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Interpol.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDina] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
SetPlayerChatBubble(playerid, ".", COLOR_RED, 1, 1);
}
if(PlayerInfo[killerid][pMembro] == 11 || PlayerInfo[killerid][pLider] == 11)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 5;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Federal.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDina] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
SetPlayerChatBubble(playerid, ".", COLOR_RED, 1, 1);
}
}
if(IsACop(killerid))
{
if(ProvocoLot[playerid] == 1)
{
format(gstring, sizeof(gstring), "Oficial %s[%d] Evitou um Roubo na Loterica e Ganhou R$ 5000 Como Prкmio!", NomePlayerMatou,killerid);
SendClientMessageToAll(GetPlayerColor(killerid), gstring);
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loterica! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoLot[playerid] = 0; roubando[playerid] = 0; roubolot = 0; KillTimer(tempolot); temporoubolot = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
GivePlayerMoneyEx(killerid, 500);
}
if(ProvocoBanco[playerid] == 1)
{
format(gstring, sizeof(gstring), "Oficial %s[%d] Evitou um Roubo no Banco e Ganhou R$ 5000 Como Prкmio!", NomePlayerMatou,killerid);
SendClientMessageToAll(GetPlayerColor(killerid), gstring);
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre do Banco! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoBanco[playerid] = 0; roubando[playerid] = 0; roubobanco = 0; KillTimer(tempobanco); temporoubobanco = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
GivePlayerMoneyEx(killerid, 500);
}
if(ProvocoLoja1[playerid] == 1)
{
format(gstring, sizeof(gstring), "Oficial %s[%d] Evitou um Roubo a Loja de Armas 1 e Ganhou R$ 5000 Como Prкmio!", NomePlayerMatou,killerid);
SendClientMessageToAll(GetPlayerColor(killerid), gstring);
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loja de Armas 1! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoLoja1[playerid] = 0; roubando[playerid] = 0; rouboloja1 = 0; KillTimer(tempoloja1); temporouboloja1 = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
GivePlayerMoneyEx(killerid, 500);
}
if(ProvocoLoja2[playerid] == 1)
{
format(gstring, sizeof(gstring), "Oficial %s[%d] Evitou um Roubo a Loja de Armas 2 e Ganhou R$ 5000 Como Prкmio!", NomePlayerMatou,killerid);
SendClientMessageToAll(GetPlayerColor(killerid), gstring);
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loja de Armas 2! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoLoja2[playerid] = 0; roubando[playerid] = 0; rouboloja2 = 0; KillTimer(tempoloja2); temporouboloja2 = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
GivePlayerMoneyEx(killerid, 500);
}
if(ProvocoPrefe[playerid] == 1)
{
format(gstring, sizeof(gstring), "Oficial %s[%d] Evitou um Roubo ao Puteiro e Ganhou R$ 5000 Como Prкmio!", NomePlayerMatou,killerid);
SendClientMessageToAll(GetPlayerColor(killerid), gstring);
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar do Puteiro! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoPrefe[playerid] = 0; roubando[playerid] = 0; rouboprefe = 0; KillTimer(tempoprefe); temporouboprefe = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
GivePlayerMoneyEx(killerid, 500);
}
if(Provocoteste[playerid] == 1)
{
format(gstring, sizeof(gstring), "Oficial %s[%d] Evitou um Roubo na 24/7 da DP e Ganhou R$ 5000 Como Prкmio!", NomePlayerMatou,killerid);
SendClientMessageToAll(GetPlayerColor(killerid), gstring);
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da 24/7 da DP! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
Provocoteste[playerid] = 0; roubando[playerid] = 0; rouboteste = 0; KillTimer(tempolot); temporouboteste = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
GivePlayerMoneyEx(killerid, 500);
}
}
if(PrimeiroChuck[playerid] == 1)
{
if(PlayerInfo[killerid][pTrazerChucky] == 1)
{
format(gstring, sizeof(gstring), "[Evento] Player %s Matou %s e Transformo no Chuck Norris!", NomePlayerMatou,NomePlayerMorreu);
SendClientMessageToAll(0xFF0000FF, gstring);
PlayerInfo[playerid][pTrazerChucky] = 1;
PrimeiroChuck[playerid] = 0;
GivePlayerWeapon(killerid, 38, 9999999);
GivePlayerWeapon(killerid, 27, 9999999);
GivePlayerWeapon(killerid, 30, 9999999);
SetPlayerSkin(killerid,264);
SetPlayerArmour(killerid, 200);
SetPlayerHealth(killerid, 100);
SetPlayerColor(killerid,0xFF0000FF);
PrimeiroChuck[killerid] = 1;
}
}
if(PlayerInfo[playerid][pTrazerChucky] == 1)
{
format(gstring, sizeof(gstring), "[Evento] Player %s Matou %s no Evento Chuck Norris e Ganhou R$200!", NomePlayerMatou,NomePlayerMorreu);
SendClientMessageToAll(0xFF0000FF, gstring);
PlayerInfo[playerid][pTrazerChucky] = 1;
GivePlayerMoneyEx(killerid, 200);
if(LimiteChuck == 0)
{
format(gstring, sizeof(gstring), "[Evento] Player %s Matou %s e Transformo no Chuck Norris!", NomePlayerMatou,NomePlayerMorreu);
SendClientMessageToAll(0xFF0000FF, gstring);
GivePlayerWeapon(playerid, 38, 9999999);
GivePlayerWeapon(playerid, 27, 9999999);
GivePlayerWeapon(playerid, 30, 9999999);
SetPlayerSkin(playerid,264);
SetPlayerArmour(playerid, 200);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,0xFF0000FF);
LimiteChuck = 1;
PrimeiroChuck[playerid] = 1;
PlayerInfo[playerid][pTrazerChucky] = 1;
return 1;
}
}
if(ProvocoBanco[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre do Banco! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoBanco[playerid] = 0; roubando[playerid] = 0; roubobanco = 0; KillTimer(tempobanco); temporoubobanco = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
}
if(ProvocoLot[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Lotйrica! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoLot[playerid] = 0; roubando[playerid] = 0; roubolot = 0; KillTimer(tempolot); temporoubolot = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
}
if(ProvocoLoja1[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loja de Armas 1! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoLoja1[playerid] = 0; roubando[playerid] = 0; rouboloja1 = 0; KillTimer(tempoloja1); temporouboloja1 = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
}
if(ProvocoLoja2[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loja de Armas 2! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoLoja2[playerid] = 0; roubando[playerid] = 0; rouboloja2 = 0; KillTimer(tempoloja2); temporouboloja2 = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
}
if(ProvocoPrefe[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre do Puteiro! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
ProvocoPrefe[playerid] = 0; roubando[playerid] = 0; rouboprefe = 0; KillTimer(tempoprefe); temporouboprefe = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
}
if(Provocoteste[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da 24/7 da DP! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
Provocoteste[playerid] = 0; roubando[playerid] = 0; rouboteste = 0; KillTimer(tempoloja1); temporouboteste = 0;
RemovePlayerAttachedObject(playerid,4);
ClearAnimations(playerid);
KillTimer(TempoContagem[playerid]);
}
if(ProvocoCasarao[playerid] == 1)
{
GangZoneStopFlashForAll(GZCasarao);
GangZoneShowForAll(GZCasarao, 0xFFFFFF96);
GuerranoCasarao = 0;
ProvocoCasarao[playerid] = 0;
donocasarao = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraCasarao);
}
if(ProvocoHotel[playerid] == 1)
{
GangZoneStopFlashForAll(GZPosto);
GangZoneShowForAll(GZPosto, 0xFFFFFF96);
GuerranoHotel = 0;
ProvocoHotel[playerid] = 0;
donoHotel = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraHotel);
}
if(ProvocoFloresta[playerid] == 1)
{
GangZoneStopFlashForAll(GZFloresta);
GangZoneShowForAll(GZFloresta, 0xFFFFFF96);
GuerranoFloresta = 0;
ProvocoFloresta[playerid] = 0;
donoFloresta = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFloresta);
}
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(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
donoskate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(TendoGuerra != 0)
{
new org = GetPlayerOrg(playerid);
if(org == 6 || org == 15 || org == 3)
{
GetPlayerName(killerid,kickname,sizeof(kickname));
format(gstring,sizeof(gstring),"{e33b86}Atenзгo:{16de34} %s ID:[%d]{e33b86} cometeu DB em{16de34} %s {e33b86}Nгo serб kickado por estar em guerra!",kickname,killerid,PlayerName(playerid));
printf("%s", gstring);
}
}
if(GetPlayerState(killerid) == 2)
{
GetPlayerName(killerid,kickname,sizeof(kickname));
format(gstring,sizeof(gstring),"Atenзгo: [%d]%s cometeu DB em %s e foi kickado !.",killerid,kickname,PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,gstring);
Kick(killerid);
}
if(reason == 36)
{
if(IsPlayerConnected(killerid))
{
format(gstring, 128, "AdmAviso: [%d]%s usou Bazuka =2= em %s.",killerid,PlayerName(killerid),PlayerName(playerid));
ABroadCast(COLOR_YELLOW,gstring,1);
printf("%s", gstring);
}
}
if(reason == 26)
{
if(IsPlayerConnected(killerid))
{
format(gstring, 128, "AdmAviso: [%d]%s usou 12 Cano cerrado em %s.",killerid,PlayerName(killerid),PlayerName(playerid));
ABroadCast(COLOR_YELLOW,gstring,1);
printf("%s", gstring);
}
}
if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_Nenhum;
}
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_GRAD2, "Morreram do outro lado da linha....");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
if(PlayerPaintballing[playerid] != 0)
{
PlayerPaintballKills[killerid] ++;
if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
{
PaintballWinner = killerid;
PaintballWinnerKills = PlayerPaintballKills[killerid];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerPaintballing[i] != 0)
{
format(gstring, sizeof(gstring), "* %s estб em 1є com %d Kills.",PlayerName(killerid),PaintballWinnerKills);
SendClientMessage(i, COLOR_WHITE, gstring);
}
}
}
}
}
if(PlayerInfo[playerid][pHeadValue] > 0)
{
if(IsPlayerConnected(killerid))
{
if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLider] == 8 || PlayerInfo[killerid][pMembro] == 8 || PlayerInfo[killerid][pLider] == 26 || PlayerInfo[killerid][pMembro] == 26)
{
if(GoChase[killerid] == playerid)
{
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
format(gstring,128,"{00FF00}<<Vocк foi morto por contrato pelo hitman %s no valor de %d e nгo foi DM!>>",PlayerName(killerid),PlayerInfo[playerid][pHeadValue]);
SendClientMessage(playerid, COLOR_YELLOW, gstring);
format(gstring,128,"<< Algum Hitman Cumpriu o contrato em %s e Recebeu $%d >>",PlayerName(playerid),PlayerInfo[playerid][pHeadValue]);
SendClientMessageToAll(COLOR_YELLOW, gstring);
GameTextForPlayer(killerid, "~w~Contrato ~r~Cumprido", 5000, 1);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
}
NaPorraDoEvento[playerid] = false;
return 1;
}
Lambrando: Este GM й da NET ? Sim, й da net.