new
Dinamite_dos_Roubos,
CofreAberto,
CofreFechado
;
public OnGameModeInit()
{
CofreFechado = CreateDynamicObject(2332, 2305.8000488281, -5, 26.200000762939, 0, 0, 90);
return 1;
}
CMD:roubar(playerid, params[])
{
//if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2306.5691,-5.1499, 26.7422)) return SendClientMessage(playerid,VERMELHO_BEM_CLARO ,"Vocк nгo estб no cofre do banco.");
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
Dinamite_dos_Roubos = CreateDynamicObject(1654, 2306.5691, -5.1499+0.4, 26.7422 -0.9, 0, 90, 0);
SetTimer("ExplosaoRoubo", 5000, false);
SendClientMessage(playerid,0xFFCB1FFF,"Dinamite acionada com sucesso, irб explodir em 7 Segundos.");
format(String, sizeof(String), "%s Acionou a dinamite que vai explodir em 7 segundos, se afastem-se! ", PlayerNick(playerid));
ProxDetector(10.0, playerid, String, ROXO_BEM_CLARO,ROXO_BEM_CLARO,ROXO_BEM_CLARO,ROXO_BEM_CLARO,ROXO_BEM_CLARO);
return true;
}
forward ExplosaoRoubo();
public ExplosaoRoubo()
{
CreateExplosion(2306.5691,-5.1499, 26.7422, 12, 10.0);
DestroyDynamicObject(Dinamite_dos_Roubos);
DestroyDynamicObject(CofreFechado);
CofreAberto = CreateDynamicObject(1829, 2306.1000976563, 5, 26.200000762939, 0, 0, 92);
SetTimer("SegundosRoubo", 15000, false);
return true;
}
forward SegundosRoubo();
public SegundosRoubo()
{
DestroyDynamicObject(CofreAberto);
CofreFechado = CreateDynamicObject(2332, 2305.8000488281, -5, 26.200000762939, 0, 0, 90);
return true;
}
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
Estб faltando parвmetros no CreateDynamicObject.
Os Parвmetros sгo: pawn Код:
|
CofreAberto = CreateDynamicObject(1829, 2306.1000976563, -5, 26.200000762939, 0, 0, 92);