[Ajuda] Bomba
#1

Minha BOMBA QUANDO DIGITA O COMANDO /PBOMBA EXPLODE SO PRA UM LADO MAIS NAO SEI AS CORDENADAS DE TODOS OS LADOS QUERIA QUE EXPLODISSE MUITO FORTE ALGUEM ME AJUDA

Quote:

if(strcmp(cmd, "/pbomba", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLider] != 6 && PlayerInfo[playerid][pLider] != 15)
{
SendClientMessage(playerid, COR_EXE, "Vocк nao fas parte de uma organizaзao terrorista!.");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COR_EXE, "Nгo й possivel plantar bombas dentro de veiculos!.");
return 1;
}
if(PlayerPaintballing[playerid] != 0)
{
SendClientMessage(playerid,COR_EXE," Vocк nгo pode por bombas no evento!.");
return 1;
}
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COR_EXE," Vocк nгo pode usar bombas na cadeia!.");
return 1;
}
new dinid,Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 70.0, 0, 0, 0, 0, 0);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+1, y-11,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+2, y-12,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+3, y-13,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+4, y-14,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+5, y-15,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+6, y-16,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+7, y-17,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+8, y-18,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+9, y-19,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+10 ,y-20,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+11 ,y-21,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+12 ,y-22,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+13 ,y-23,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+14 ,y-24,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+15 ,y-28,z,2,500.7);
SetTimerEx("CriarExplosao",7000,false,"fffdf",x+16 ,y-26,z,2,500.7);
dinid = CreateObject(1252,x,y,z-0.8,0,0,0,0.0);
SetTimerEx("DestruirObjeto",8000,false,"d",dinid);
Tempopbomba[playerid] = GetTickCount();
SendClientMessage(playerid,COLOR_YELLOW,"Vocк plantou uma BOMBA saia de perto o mas rapido!!!.");
return 1;
}

Reply
#2

quem vai me ajudar '-'
Reply
#3

Caraca oque ser isto? Poderia apenas usar CreateExplosion, e logo podes aumentar o tamanho do raio, jб que йs isto que procuras.
pawn Код:
CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:radius);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)