[Ajuda] ERRO
#5

forward Contagem(playerid);
public Contagem(playerid)
{
new string[128];
if(GetPVarInt(playerid,"Tempo") == 20)
{
if(Player[playerid][pFavela] == 1 || Player[playerid][pFavela] == 2 || Player[playerid][pFavela] == 3)
{
SendFormattedMessageToAll(COR_DOMINAR, "› A Facзгo 'CMD' dominou com sucesso a favela '%s' da '%s'.", GangZone[GetPVarInt(playerid,"GZAtacada")][GZName], GZDono[GetPVarInt(playerid,"GZAtacada")]);
GangZone[GetPVarInt(playerid,"GZAtacada")][GZColor] = COR_CMD;
JovemDominando[playerid] = 0;
GZDono[GetPVarInt(playerid,"GZAtacada")] = "CMD";
}
else if(Player[playerid][pFavela] == 4 || Player[playerid][pFavela] == 5 || Player[playerid][pFavela] == 6)
{
SendFormattedMessageToAll(COR_DOMINAR, "› A Facзгo 'LLL' dominou com sucesso a favela '%s' da '%s'.", GangZone[GetPVarInt(playerid,"GZAtacada")][GZName], GZDono[GetPVarInt(playerid,"GZAtacada")]);
GangZone[GetPVarInt(playerid,"GZAtacada")][GZColor] = COR_LLL;
JovemDominando[playerid] = 0;
GZDono[GetPVarInt(playerid,"GZAtacada")] = "LLL";
}
else if(Player[playerid][pFavela] == 7 || Player[playerid][pFavela] == 8 || Player[playerid][pFavela] == 9)
{
SendFormattedMessageToAll(COR_DOMINAR, "› A Facзгo 'TD3' dominou com sucesso a favela '%s' da '%s'.", GangZone[GetPVarInt(playerid,"GZAtacada")][GZName], GZDono[GetPVarInt(playerid,"GZAtacada")]);
GangZone[GetPVarInt(playerid,"GZAtacada")][GZColor] = COR_TCP;
JovemDominando[playerid] = 0;
GZDono[GetPVarInt(playerid,"GZAtacada")] = "TD3";
}
else if(Player[playerid][pFavela] == 10 || Player[playerid][pFavela] == 11 || Player[playerid][pFavela] == 12)
{
SendFormattedMessageToAll(COR_DOMINAR, "› A Facзгo 'MLC' dominou com sucesso a favela '%s' da '%s'.", GangZone[GetPVarInt(playerid,"GZAtacada")][GZName], GZDono[GetPVarInt(playerid,"GZAtacada")]);
GangZone[GetPVarInt(playerid,"GZAtacada")][GZColor] = COR_MLC;
JovemDominando[playerid] = 0;
GZDono[GetPVarInt(playerid,"GZAtacada")] = "MLC";
}
else if(Player[playerid][pBOPE] >= 1)
{
SendFormattedMessageToAll(COR_DOMINAR, "› A Coporaзгo da 'BOPE' pacificou com sucesso a favela '%s' da '%s'.", GangZone[GetPVarInt(playerid,"GZAtacada")][GZName], GZDono[GetPVarInt(playerid,"GZAtacada")]);
GangZone[GetPVarInt(playerid,"GZAtacada")][GZColor] = COR_BOPE;
JovemDominando[playerid] = 0;
GZDono[GetPVarInt(playerid,"GZAtacada")] = "BOPE";
}
else if(Player[playerid][pPMRJ] >= 1)
{
SendFormattedMessageToAll(COR_DOMINAR, "› A Coporaзгo da 'Policia Militar' pacificou com sucesso a favela '%s' da '%s'.", GangZone[GetPVarInt(playerid,"GZAtacada")][GZName], GZDono[GetPVarInt(playerid,"GZAtacada")]);
GangZone[GetPVarInt(playerid,"GZAtacada")][GZColor] = COR_PMRJ;
JovemDominando[playerid] = 0;
GZDono[GetPVarInt(playerid,"GZAtacada")] = "Policia Militar";
}
GivePlayerMoney(playerid, 200);
Player[playerid][pDinheiro] += 200;
GangZoneHideForAll(GangZonas[GetPVarInt(playerid,"GZAtacada")]);
GangZoneShowForAll(GangZonas[GetPVarInt(playerid,"GZAtacada")], GangZone[GetPVarInt(playerid,"GZAtacada")][GZColor]);
KillTimer(ContagemDominio[GetPVarInt(playerid,"GZAtacada")]);
ContagemDominio[GetPVarInt(playerid,"GZAtacada")] = 0;
SetPVarInt(playerid,"GZAtacada",-1);
SetPVarInt(playerid,"Tempo",0);
return 1;
}
else
{
SetPVarInt(playerid,"Tempo",GetPVarInt(playerid,"T empo")+1);
format(string,sizeof(string),"~r~~h~%i ~w~/ 20", GetPVarInt(playerid,"Tempo"));
GameTextForPlayer(playerid, string, 1500, 5);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
}
return 1;
}
Reply


Messages In This Thread
ERRO - by social - 05.07.2016, 00:29
Re: ERRO - by [BOPE]Seu._.Madruga - 05.07.2016, 00:30
Re: ERRO - by Carlos001 - 05.07.2016, 00:36
Re: ERRO - by moura98 - 05.07.2016, 00:36
Re: ERRO - by social - 05.07.2016, 01:02

Forum Jump:


Users browsing this thread: 1 Guest(s)