only nuking yourself
#5

pawn Код:
public Nuke()
{
    for(new i=0; i < 50; i++)
    {
        if(IsPlayerConnected(i))
        {
            new Float:X,Float:Y,Float:Z;
            GetPlayerPos(i,X,Y,Z);
            CreateExplosion(X,Y,Z,7,500000000000);
            CreateExplosion(X,Y,Z,6,5000);
            CreateExplosion(X,Y,Z,3,5000);
            CreateExplosion(X,Y,Z,7,500000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,500000000000000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,500000000);
            CreateExplosion(X,Y,Z,7,50000000000);
            CreateExplosion(X,Y,Z,7,1);
            CreateExplosion(X,Y,Z,7,1);
            CreateExplosion(X,Y,Z,7,100000000000);
            CreateExplosion(X,Y,Z,7,100000000000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,100000000000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,100000000000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            CreateExplosion(X,Y,Z,7,5000);
            SetTimer("Nend",5000,0);
            SendClientMessageToAll(COLOR_RED,"The nuclear bomb has been exploded!");
            TextDrawHideForAll(nuke);
        }
    }
    return 1;
}
"Return" actually 'kills' a callback, making it not go any further. In this case, it only shows the explosions for the first connected player, and then returning '1', which makes it not continue.
Reply


Messages In This Thread
nuke explosion only on user of the cmd - by Andy_McKinley - 07.07.2010, 12:23
Re: only nuking yourself - by Burridge - 07.07.2010, 12:25
Re: only nuking yourself - by Andy_McKinley - 07.07.2010, 12:32
Re: only nuking yourself - by Andy_McKinley - 08.07.2010, 07:02
Re: only nuking yourself - by Hiddos - 08.07.2010, 08:41
Re: only nuking yourself - by Andy_McKinley - 08.07.2010, 13:24
Re: only nuking yourself - by Carlton - 08.07.2010, 13:31
Re: only nuking yourself - by Andy_McKinley - 08.07.2010, 13:56

Forum Jump:


Users browsing this thread: 3 Guest(s)