SA-MP Forums Archive
I have a problem with boombox - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I have a problem with boombox (/showthread.php?tid=463418)



I have a problem with boombox - Kapone21 - 11.09.2013

When owner of boombox exit don't destroy him boombox
Код:
  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);
				}
			}
		}
	}
what's wrong?