Nuke: doesn't work
#1

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.
Reply
#2

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

Try explosion id 5
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)