29.04.2012, 14:50
Код:
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; }