[Include] San Andreas Object Image Loader
#15

Update SAOI v1.5.0:

- Fixed Issues: When loading a file saoi fails, withdraw it rently objects from the file.
- Fixed Issues: Added debug information when the file could not perform parsing.

- Added support for:
PHP код:
RemoveBuildingForPlayer(playeridmodelidFloat:fXFloat:fYFloat:fZFloat:fRadius); 
- Issues with RemoveBuildingForPlayer:
When a saoi file is unloaded, online players will not see again removed buildings.
They see them only after re-entering the server.

- Added function:
PHP код:
SAOI:SaveRemoveBuilding(const name[],modelid,Float:x,Float:y,Float:z,Float:radius); 
- Added extended functions:
PHP код:
SAOI_GetFreeRemoveBuildingID();
SAOI_RemoveBuilding(SAOI:index,modelid,Float:x,Float:y,Float:z,Float:radius);
SAOI_GetRemoveBuilding(remove_id,&SAOI:index,&modelid,&Float:x,&Float:y,&Float:z,&Float:radius);
SAOI_DropRemoveBuildings(SAOI:index);
SAOI_OnErrorCleanup(SAOI:index,object_count);
SAOI_RemoveBuildingsForPlayer(playerid);
SAOI_UpdateBuildingsForPlayer(playerid,SAOI:index);
SAOI_CountRemovedBuildings();
SAOI_GetMemoryLoaded(); 
- Added callback:
PHP код:
OnSAOIRemovedBuildingsForPlayer(playerid,buildings); 
- Renamed functions:
PHP код:
IsSAOISlotFree -> SAOI_IsSlotFree
FindFreeSAOIID 
-> SAOI_GetFreeID 
- Updated function:
Код:
bool:GetSAOILoadData(SAOI:index,name[],&object_cnt=0,&material_cnt=0,&material_text_cnt=0,&load_time=0,&active_tick=0,&removed_object=0);
Update SAOI_FileManager v1.4.0:

- Updated commands:
PHP код:
/saoi
/saoiinfo 
- Added commands:
PHP код:
/addrbinfo adds descriptions of removed buildings
/delrbinfo removes descriptions of removed buildings 
Screenshots for latest updates:
http://imgur.com/a/H1HaQ

Example Code:
PHP код:
SetSAOIPositionFlag(MY_SAOI_FILE,1283.3323,1192.4436,10.8008,0.0000,0,0);
//LV-LOT Old Gate
RemoveBuildingForPlayer(playerid,8311,1277.0,1206.8,12.9,1.0);
RemoveBuildingForPlayer(playerid,8312,1277.0,1206.8,12.9,1.0);
//LV-LOT Back Gate (VW:0 INT:0 PID:-1 SD:300)
CreateDynamicObject(987,1297.4541016,1203.0205078,12.2528601,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(987,1277.3867188,1214.8486328,12.4097986,0.0000000,0.0000000,270.0000000,0,0,-1,300);
CreateDynamicObject(8210,1257.5048828,1333.0727539,12.8196115,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(8210,1257.5050049,1277.4987793,12.8196115,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(8210,1257.5263672,1242.4189453,12.8196115,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(987,1277.3303223,1202.8143311,12.4097986,0.0000000,0.0000000,179.9945068,0,0,-1,300);
CreateDynamicObject(987,1277.3872070,1214.8476562,9.8203125,0.0000000,0.0000000,270.0000000,0,0,-1,300);
CreateDynamicObject(987,1297.4501953,1203.0195312,9.6706142,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(3499,1277.7170410,1214.4118652,13.1937933,0.0000000,0.0000000,341.0000000,0,0,-1,300);
CreateDynamicObject(3499,1297.4271240,1214.4118652,13.1937933,0.0000000,0.0000000,340.9991455,0,0,-1,300);
CreateDynamicObject(3499,1297.4267578,1214.4111328,13.1937933,0.0000000,0.0000000,340.9936523,0,0,-1,300);
CreateDynamicObject(3499,1296.4063721,1214.4118652,13.1937933,0.0000000,0.0000000,340.9991455,0,0,-1,300);
CreateDynamicObject(3499,1278.7363281,1214.4111328,13.1937933,0.0000000,0.0000000,340.9936523,0,0,-1,300);
CreateDynamicObject(987,1277.3300781,1202.8134766,9.6706142,0.0000000,0.0000000,179.9945068,0,0,-1,300);
CreateDynamicObject(987,1269.4555664,1202.8150635,12.4097986,0.0000000,0.0000000,179.9945068,0,0,-1,300);
CreateDynamicObject(8210,1257.5247803,1230.4199219,12.8196115,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(987,1269.4550781,1202.8144531,9.6706142,0.0000000,0.0000000,179.9945068,0,0,-1,300); 
Download:
SAOI

Good luck
Reply


Messages In This Thread
San Andreas Object Image Loader - by AbyssMorgan - 05.10.2016, 19:00
Re: San Andreas Object Image Loader - by Eoussama - 05.10.2016, 19:02
Re: San Andreas Object Image Loader - by ExTaZZ69 - 05.10.2016, 19:15
Re: San Andreas Object Image Loader - by AbyssMorgan - 26.10.2016, 16:16
Re: San Andreas Object Image Loader - by N0FeaR - 30.10.2016, 17:19
Re: San Andreas Object Image Loader - by n0minal - 30.10.2016, 17:34
Re: San Andreas Object Image Loader - by AbyssMorgan - 30.10.2016, 17:37
Re: San Andreas Object Image Loader - by n0minal - 30.10.2016, 18:09
Re: San Andreas Object Image Loader - by AbyssMorgan - 30.10.2016, 18:17
Re: San Andreas Object Image Loader - by AbyssMorgan - 08.11.2016, 21:17
Re: San Andreas Object Image Loader - by AbyssMorgan - 04.12.2016, 13:58
Re: San Andreas Object Image Loader - by Dayrion - 05.12.2016, 06:15
Re: San Andreas Object Image Loader - by Chaprnks - 24.12.2016, 16:38
Re: San Andreas Object Image Loader - by AbyssMorgan - 24.12.2016, 16:54
Re: San Andreas Object Image Loader - by AbyssMorgan - 25.12.2016, 22:32
Re: San Andreas Object Image Loader - by Chaprnks - 26.12.2016, 05:06
Re: San Andreas Object Image Loader - by AbyssMorgan - 20.01.2017, 19:43
Re: San Andreas Object Image Loader - by AbyssMorgan - 04.02.2017, 18:10
Re: San Andreas Object Image Loader - by AbyssMorgan - 11.02.2017, 12:38
Re: San Andreas Object Image Loader - by AbyssMorgan - 05.03.2017, 16:57
Re: San Andreas Object Image Loader - by AbyssMorgan - 26.03.2017, 06:29
Re: San Andreas Object Image Loader - by AbyssMorgan - 24.04.2017, 16:30
Re: San Andreas Object Image Loader - by AbyssMorgan - 04.09.2017, 13:58
Re: San Andreas Object Image Loader - by Xeon™ - 04.09.2017, 14:00
Re: San Andreas Object Image Loader - by Dokins - 04.09.2017, 21:26
Re: San Andreas Object Image Loader - by AbyssMorgan - 18.11.2017, 08:12

Forum Jump:


Users browsing this thread: 1 Guest(s)