10.05.2013, 15:47
Galera como faзo para a animaзгo do roubo fica se repetindo vбrias vezes, pq se na hora do roubo o player digita outra animaзгo, EX: /handsup, a animaзгo do roubo para, e ele consegue fika andando e talz no meio do roubo.
pawn Код:
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
SendClientMessageToAll(COLOR_WHITE, "|________________________________({FFD700}Roubo no Banco{BFC0C2})________________________________|");
format(string, sizeof(string), "%s e os %s estгo tentando roubar o cofre banco! ID:[%d]", playername, NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), string);
tempo(playerid);
PlayerInfo[giveplayerid][pDinamite] -= 1;
GetPlayerHealth(playerid, Health_Roubo);
SetPlayerHealth(playerid, 99999999);
SetTimerEx("DarLife", 3000, false, "i", playerid);
GetPlayerArmour(playerid, Armour_Roubo);
SetPlayerArmour(playerid, 99999999);
SetTimerEx("DarArmour", 3000, false, "i", playerid);
CreateExplosion(2141.30005, 1642.30005, 993, 12, 1.0);
SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
SendClientMessage(playerid, COLOR_GRAD5, "Espere 70 segundos para terminar de roubar o banco.");
WantedPoints[playerid]+=2;
SetPlayerCriminal(playerid,255, "Tentativa de Roubo ao Banco");
roubando[playerid] = 1;
ProvocoBanco[playerid] = 1;
roubobanco = 1;
temporoubobanco = 1;
SetPlayerPos(playerid, 2141.30005, 1642.30005, 993);
SetPlayerFacingAngle(playerid,356.5900);
ApplyAnimationEx(playerid,"BOMBER","BOM_Plant", 4.0, 1, 0, 0, 1, 0);
SetTimer("Aroubo", 1800000, 0);
tempobanco = SetTimerEx("RouboBanco", 70000, 0, "i", playerid);
SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
return 1;
}