PDA

View Full Version : I have a problem with boombox


Kapone21
11/09/2013, 10:12 PM
When owner of boombox exit don't destroy him boombox :(

if(GetPVarType(playerid, "pDynamicBB"))
{
DestroyDynamicObject(GetPVarInt(playerid, "pDynamicBB"));
DestroyDynamic3DTextLabel(Text3D:GetPVarInt(player id, "pDynamicBBLabel"));
if(GetPVarType(playerid, "pDynamicBBArea"))
{
new string[128];
format(string, sizeof(string), "{FFFFFF}(({6699FF} Propietarul la Boombox (%s) s-a deconectat {FFFFFF}))", SenderName(playerid));
foreach(Player, i)
{
if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pDynamicBBArea")))
{
StopAudioEx(i);
SendClientMessage(i, COLOR_PURPLE, string);
}
}
}
}
what's wrong?