25.06.2012, 02:52
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
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
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);
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; }