Bug with my made boombox
#1

I made my first boombox system and works fully
but idk how to make it delete the boombox with /pickupboombox

Here is the object Creation Code

Код:
PlayerInfo[playerid][pBoombox] = CreateDynamicObject(2103, Positions[0][0], Positions[0][1], Positions[0][2]-0.9, 0, 0, 3.9700012207031);
Now how can i make it delete when i use /pickupboombox

i made a stock but i removed it as it not working all it does is remove the stream
so show me how to create the stock of removing it
or please do it for me on CMDickupboombox
not the object this is my stock

This is my cmd for pickups idk how ti make it remove the object please help me i need serious help
Код:
CMD:pickupboombox(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, GetPVarFloat(playerid, "DYN_Boombox_FLOAT_X"), GetPVarFloat(playerid, "DYN_Boombox_FLOAT_Y"), GetPVarFloat(playerid, "DYN_Boombox_FLOAT_Z")))
    {
        StopAudioStreamForPlayer(playerid);
        SendClientMessageEx(playerid, COLOR_YELLOW, "Boombox picked up successfully.");
        return 1;
    }
    return 1;
}
Reply
#2

I'm sure they probably have a function like:

pawn Код:
DestroyDynamicObject(PlayerInfo[playerid][pBoombox]);
Try that.
Reply
#3

Dude your a lifesaver +rep for u thanks bro

it also took me 4 hours to make the boombox system lol
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)