[Ajuda] Grana de Roubo
#4

Код:
public RouboBanco(playerid)
{
	KillTimer(tempobanco);
	if(!PlayerToPoint(8.0,playerid,2144.4177,1641.5360,993.5761))
    {
        //SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto ao Banco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
		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);
       	GameTextForPlayer(playerid,"~r~Deu mole playboy...", 2500, 3);
       	Controle(playerid, 1);
       	KillTimer(RoubarThiagoAnim);
       	ClearAnimations(playerid);
        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no cofre do banco.");
        ProvocoBanco[playerid] = 0; roubando[playerid] = 0; roubobanco = 0; KillTimer(tempobanco); temporoubobanco = 0;
        return true;
    }
	ForPlayers(i)
	{
		new grana = 800 + random(3000);
		if(PlayerToPoint(10.0,i,2144.4177,1641.5360,993.5761))
		{
		    new var032=0;
			if (PlayerInfo[playerid][pLider] != 0) { var032 = PlayerInfo[playerid][pLider]; }
			else if (PlayerInfo[playerid][pMembro] != 0) { var032 = PlayerInfo[playerid][pMembro]; }
			if(ProvocoBanco[playerid] == 1)
            {
                //SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto ao Banco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
            	format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar o cofre do Banco! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
            	SendClientMessageToAll(GetPlayerColor(playerid), gstring);
            	GameTextForPlayer(playerid,"~g~Vai~w~ !~n~~g~Vai~w~ !~n~~g~Vai~w~ !", 2500, 3);
            	Controle(playerid, 1);
            	KillTimer(RoubarThiagoAnim);
            	ClearAnimations(playerid);
            	roubando[playerid] = 0; roubobanco = 0; ProvocoBanco[playerid] = 0;
			}
			if (PlayerInfo[i][pLider] == var032 || PlayerInfo[i][pMembro] == var032)
			{
				SetPlayerCriminal(i,255, "Assalto ao Banco");
				GivePlayerMoney(i, grana);
				format(gstring, sizeof(gstring), "Vocк e os %s roubaram R$%d do cofre do Banco!",NomeORG(playerid), grana);
            	SendClientMessage(i, COLOR_YELLOW, gstring);
			}
		}
	}
	return true;
}
Reply


Messages In This Thread
[Ajuda] Grana de Roubo - by Urubu_Rei - 28.04.2012, 20:14
Re: [Ajuda] Grana de Roubo - by Urubu_Rei - 29.04.2012, 13:49
Re: [Ajuda] Grana de Roubo - by Fernando Vinewood - 29.04.2012, 13:58
Re: [Ajuda] Grana de Roubo - by Urubu_Rei - 29.04.2012, 14:50
Re: [Ajuda] Grana de Roubo - by Urubu_Rei - 01.05.2012, 22:15
Re: [Ajuda] Grana de Roubo - by Felipe_Freeze - 01.05.2012, 22:42
Re: [Ajuda] Grana de Roubo - by Urubu_Rei - 03.05.2012, 23:31
Re: [Ajuda] Grana de Roubo - by Gutierrez_zikaloko - 04.05.2012, 01:47
Re: [Ajuda] Grana de Roubo - by Urubu_Rei - 04.05.2012, 02:13
Re: [Ajuda] Grana de Roubo - by Urubu_Rei - 04.05.2012, 02:17

Forum Jump:


Users browsing this thread: 1 Guest(s)