SA-MP Forums Archive
Nuke: doesn't work - 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: doesn't work (/showthread.php?tid=115496)



Nuke: doesn't work - WThieves - 24.12.2009

I wanted to make a script that kills all players on the server with an explosion but why doesn't this work:
Quote:

public Nuked(playerid, params[])
{
new pName[24], string[256], Float:X, Float:Y, Float:Z;
GetPlayerName(playerid, pName, sizeof(pName));
if(PlayerInfo[playerid][pAdmin] < 133 return false;

for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, X, Y, Z);
CreateExplosion(X, Y, Z+1, 7, 10.0);
CreateExplosion(X+1, Y, Z, 7, 10.0);
CreateExplosion(X, Y+1, Z, 7, 10.0);
CreateExplosion(X+1, Y, Z, 7, 10.0);
GameTextForAll("~w~DIE!",2000,3);
}
}
return 1;
}

The command /nuke works and the countdown does to but this doesn't do anything.


Re: Nuke: doesn't work - LarzI - 24.12.2009

Explosions doesn't show up? :S
Show us how you call the function


Re: Nuke: doesn't work - Dark_Kostas - 24.12.2009

Try explosion id 5


Re: Nuke: doesn't work - WThieves - 24.12.2009

Quote:
Originally Posted by lrZ^ aka LarzI
Explosions doesn't show up? :S
Show us how you call the function
What do you mean? because i think thats missing :S