Is this stock..
#4

Ok, it is not the stock..

can anyone tell me why this ain't working then?

The code:

pawn Код:
forward BombEx(playerid);
public BombEx(playerid)
{
    new Float:Pos[3], Obj, rand = random(50000), pKilledN[ MAX_PLAYER_NAME ];
    SendClientMessage(playerid, -1, "Bomb planted, now wait for a tank to come here!");
    GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
    Obj = CreateObject(ObjID, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]-1, 0.0, 0.0, 0.0, 0.0);
    if(IsVehicleInRangeOfPoint( 432, 5.0, Pos[ 0 ], Pos [ 1 ], Pos[ 2 ] ))
    {
        for( new i = 0; i < MAX_PLAYERS; i++)
        {
            pMineV[ i ][ oMine ] = true;
            DestroyObject(Obj);
            GetPlayerName(i, pKilledN, MAX_PLAYER_NAME);
            SendDeathMessage(playerid, i, 53);
            CreateExplosion(Pos[ 0 ], Pos[ 1 ], Pos[ 2 ], 3, 3.0);
            SetPlayerHealth(i, 0);
            GameTextForPlayer(i, "Exploded by a mine!", 5000, 4);
            format(str, SOFS, "You've killed %s ! and got $%d", pKilledN, rand);
            SendClientMessage(playerid, -1, str);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Is this stock.. - by Strier - 23.05.2013, 07:07
Re: Is this stock.. - by KingHual - 23.05.2013, 07:08
Re: Is this stock.. - by Strier - 23.05.2013, 07:11
Re: Is this stock.. - by Strier - 23.05.2013, 07:16
Re: Is this stock.. - by KingHual - 23.05.2013, 07:19
Re: Is this stock.. - by Strier - 23.05.2013, 07:25
Re: Is this stock.. - by Strier - 23.05.2013, 07:29
Re: Is this stock.. - by KingHual - 23.05.2013, 07:33
Re: Is this stock.. - by Strier - 23.05.2013, 07:36
Re: Is this stock.. - by KingHual - 23.05.2013, 07:45

Forum Jump:


Users browsing this thread: 5 Guest(s)