nuclear bomb
#1


I have this FS i downloaded from here somewhere, it didnt work, someone posted a fix but its deleted now. Can someone PLEASE show me why this isnt exploding.

Everything works, he plants the bomb, i can see the object but it does not explode.

If someone can fix this easily or write another one even easier this will be greatly appreciated...

Код:


  new Nuke;


  if(strcmp(cmd,"/nuketest",true)==0)
  {
	SpecialSmith[playerid] =1;
	HasNuke[playerid] =1;
	Nuked[playerid] =0;
	SendClientMessage(playerid, COLOR_ERROR, "Nuke keys given.. type /plantnuke then /detonate");
	return 1;
	}



  if(strcmp(cmd,"/plantnuke",true)==0)
  {
	if(SpecialSmith[playerid] == 0) {
  SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command");
  return 1;
  }
	if(HasNuke[playerid] == 0) {
	SendClientMessage(playerid, COLOR_ERROR, "You dont have a Nuke. You have to get one in the Army Base in LV");
	return 1;
	}
  if(Nuked[playerid] == 1) {
	SendClientMessage(playerid, COLOR_ERROR, "You have already used a Nuke");
	return 1;
	}
	new Float:x,Float:y,Float:z, Float:a;
	GetPlayerPos(playerid, x, y, z);
	GetPlayerFacingAngle(playerid, a);
	x += (2 * floatsin(-a, degrees));
	y += (2 * floatcos(-a, degrees));
 	ApplyAnimation(playerid, "BOMBER","BOM_Plant_In",4.0,0,0,0,0,0);
  Nuke = CreateObject(3786, x, y, z, 0, 0, 96);
  SendClientMessage(playerid,COLOR_NEO,"Nuke planted. Use /detonate to detonate.");
	SendClientMessageToAll(COLOR_RED, "-MATRIX- *!WARNING!* An Agent has planted a Nuclear bomb");
	PlantedNuke[playerid] =1;
	return 1;
	}



	if(strcmp(cmd,"/detonate",true)==0)
  {
	if(SpecialSmith[playerid] == 0) {
  SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command");
  return 1;
  }
  if(PlantedNuke[playerid] == 0) {
  SendClientMessage(playerid, COLOR_ERROR, "You have not planted a Nuclear bomb yet");
  return 1;
  }
  new Float:x,Float:y,Float:z;
	SendClientMessageToAll(COLOR_RED, "-MATRIX- *!WARNING!* Special Agent Smith has detonated a Nuke");
  SendClientMessage(playerid,COLOR_NEO,"Nuke detonation successfull");
	GetObjectPos(Nuke, x, y, z);
  CreateExplosion(x, y, z, 7, 10);
  CreateExplosion(x, y, z+3, 7, 10);
  CreateExplosion(x, y, z+6, 7, 10);
  CreateExplosion(x, y, z+9, 7, 10);
  CreateExplosion(x, y, z+12, 7, 10);
  CreateExplosion(x, y, z+15, 7, 10);
  CreateExplosion(x, y, z+18, 7, 10);
  CreateExplosion(x, y, z+21, 7, 10);
  CreateExplosion(x, y+7, z+21, 7, 10);
  CreateExplosion(x, y-7, z+21, 7, 10);
  CreateExplosion(x+7, y, z+21, 7, 10);
  CreateExplosion(x-7, y, z+21, 7, 10);
  CreateExplosion(x, y, z+24, 7, 10);
  CreateExplosion(x, y+10, z+24, 7, 10);
  CreateExplosion(x, y-10, z+24, 7, 10);
  CreateExplosion(x+10, y, z+24, 7, 10);
  CreateExplosion(x-10, y, z+24, 7, 10);
  CreateExplosion(x, y, z+27, 7, 10);
  CreateExplosion(x, y+7, z+27, 7, 10);
  CreateExplosion(x, y-7, z+27, 7, 10);
  CreateExplosion(x+7, y, z+27, 7, 10);
  CreateExplosion(x-7, y, z+27, 7, 10);
  CreateExplosion(x, y, z+30, 7, 10);
  CreateExplosion(x, y+3, z+30, 7, 10);
  CreateExplosion(x, y-3, z+30, 7, 10);
  CreateExplosion(x+3, y, z+30, 7, 10);
  CreateExplosion(x-3, y, z+30, 7, 10);
  DestroyObject(Nuke);
	SetWeather(44);
	Nuked[playerid] =1;
	return 1;
	}
Reply
#2

I found this by searching "matrix"....
Jason go on msn whenever you can I think I could help...
Reply
#3

You should probs look at the date

Quote:

June 09

Reply
#4

I saw the date lol... I know him so he would look at this post if he saw my name on it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)