17.07.2015, 11:36
I have added the maps to the FS:
But when i unload the FS, the objects doesn't disappear. How to fix this ?
Код:
#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;
}


