/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
Re: /Nuke not working. -
can you just make it for me so i dont have to tweak it? i cant get it to work.