SA-MP Forums Archive
/Nuke not working. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /Nuke not working. (/showthread.php?tid=130599)



/Nuke not working. - cozza123456 - 27.02.2010

Code:
if(!strcmp(cmd, "/nuke", true, 5))
		{
 		if (IsPlayerAdmin(playerid))
   	ID = strval(cmdtext[6]);
    if(IsPlayerConnected(ID))
    {
    GameTextForPlayer(ID,"~b~NUKED!",3000,4);
    new Float:X, Float:Y, Float:Z;
 	  GetPlayerPos(ID, X, Y, Z);
	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
  	  CreateExplosion(X,Y,Z,7,3.0);
	  CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
    CreateExplosion(X,Y,Z,7,3.0);
		}
 		return 1;
		}
is supposed to nuke the player (ID) but instead nukes the person who typed it! how do i fix it


Re: /Nuke not working. - cozza123456 - 27.02.2010

can you just make it for me so i dont have to tweak it? i cant get it to work.