DestroyObject doesn't work
#1

I have added the maps to the FS:

Код:


#include <a_samp>

#define FILTERSCRIPT

new tmpobjid;

public OnFilterScriptInit()
{
	print("////////////////////////////////////////////");
	print("Red County Roleplay Map by Intagaming loaded");
 	print("////////////////////////////////////////////");
	tmpobjid = CreateObject(19379,498.914,500.245,1879.925,0.000,90.000,0.000,300.000);
	SetObjectMaterial(tmpobjid, 0, 14832, "lee_stripclub", "Strip_wood_floor", 0);
	tmpobjid = CreateObject(19379,498.909,509.861,1879.925,0.000,90.000,0.000,300.000);
	SetObjectMaterial(tmpobjid, 0, 14832, "lee_stripclub", "Strip_wood_floor", 0);
	tmpobjid = CreateObject(19451,504.223,509.883,1881.759,0.000,0.000,0.000,300.000);
	SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
	return 1;
}

public OnFilterScriptExit()
{
	DestroyObject(tmpobjid);
	print("All maps has been deleted.");
	return 1;
}
But when i unload the FS, the objects doesn't disappear. How to fix this ?
Reply


Messages In This Thread
DestroyObject doesn't work - by meocahat - 17.07.2015, 11:36
Re: DestroyObject doesn't work - by SoFahim - 17.07.2015, 11:44
AW: DestroyObject doesn't work - by Kaliber - 17.07.2015, 11:49
Re: AW: DestroyObject doesn't work - by SoFahim - 17.07.2015, 11:58
Re: DestroyObject doesn't work - by PrinceKumar - 17.07.2015, 12:29
Re: DestroyObject doesn't work - by meocahat - 17.07.2015, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)