SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 27/02/2010, 05:21 PM   #1
cozza123456
Gangsta
 
Join Date: Aug 2009
Posts: 583
Reputation: 0
Default /Nuke not working.

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
cozza123456 is offline  
Old 27/02/2010, 05:37 PM   #2
cozza123456
Gangsta
 
Join Date: Aug 2009
Posts: 583
Reputation: 0
Default Re: /Nuke not working.

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nuke for 30 kill streak Andy_McKinley Help Archive 4 06/07/2010 12:22 PM
problem: Uhm...radiation of a nuke Micko9 Help Archive 2 26/05/2010 09:02 PM
COD MW2 Nuke idea Timske Help Archive 2 07/04/2010 07:48 PM
need help with nuke-evolution theme WardenCS Everything and Nothing 2 30/12/2009 12:06 AM
Nuke: doesn't work WThieves Help Archive 3 24/12/2009 01:41 PM


All times are GMT. The time now is 05:45 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.