06.05.2012, 23:38
Onde Aumento a potкncia da Bomba ain ?
pawn Код:
if(!strcmp(cmd,"/plantarbomba",true)){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Profissao") == Terrorista || dini_Int(file, "Profissao") == Yakuza || dini_Int(file, "aAdmin") == 1 || IsPlayerAdmin(playerid)){
new dinid,Float:x,Float:y,Float:z;
if(IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid,Vermelho,"(ERRO) Vocк nгo pode plantar uma bomba dentro do veiculo.");
return 1;
}
GetPlayerPos(playerid,x,y,z);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 50.0, 0, 0, 0, 0, 0);
SetTimerEx("CriarExplosao",5000,false,"fffdf",x,y,z,2,50.0);
dinid = CreateDynamicObject(1252,x,y,z-0.8,0,0,0);
SetTimerEx("DestruirObjeto",5000,false,"d",dinid);
GameTextForPlayer(playerid,"~r~BOMBA ~b~PLANTADA",1000,4);
return 1;
}
}
pawn Код:
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 50.0, 0, 0, 0, 0, 0); //Aqi ja tentei nгo deu nada '-'