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


Messages In This Thread
Nuke: doesn't work - by WThieves - 24.12.2009, 12:18
Re: Nuke: doesn't work - by LarzI - 24.12.2009, 12:23
Re: Nuke: doesn't work - by Dark_Kostas - 24.12.2009, 12:25
Re: Nuke: doesn't work - by WThieves - 24.12.2009, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)