Код:
if(GetPVarType(playerid, "pDynamicBB"))
{
DestroyDynamicObject(GetPVarInt(playerid, "pDynamicBB"));
DestroyDynamic3DTextLabel(Text3D:GetPVarInt(playerid, "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);
}
}
}
}