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;
}
ApplyAnimationEx(playerid,"BOMBER","BOM_Plant", 4.0, 1, 0, 0, TEMPO, 0);
ApplyAnimationEx(playerid,"BOMBER","BOM_Plant", 4.0, 1, 0,CONGELAR, TEMPO, 0);
ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 1, 0);
Acho que nгo tem uma comunicaзгo de animes no SA-MP para aparecer para outros players.
|
ApplyAnimationEx(playerid,"BOMBER","BOM_Plant", 4.0, 1, 0,1, 70000, 0);
// TOPO DO GM
new TimerRoubo[MAX_PLAYERS];
forward TimerRoubo2(playerid);
// ONPLAYERCONNECT
TimerRoubo[playerid] = SetTimerEx("TimerRoubo2",1000,1,"i",playerid);
// ONPLAYERDISCONNECT
KillTimer(TimerRoubo[playerid]);
// ACABANDO DE ROUBAR
ClearAnimations(playerid);
// FIM DO GM
public TimerRoubo2(playerid)
{
if(roubando[playerid] == 1)
{
ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",5.0,1,0,0,0,0);
}
return 1;
}