25.12.2016, 22:32
(
Последний раз редактировалось AbyssMorgan; 16.09.2017 в 07:29.
)
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:
- 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:
- Added extended functions:
- Added callback:
- Renamed functions:
- Updated function:
Update SAOI_FileManager v1.4.0:
- Updated commands:
- Added commands:
Screenshots for latest updates:
http://imgur.com/a/H1HaQ
Example Code:
Download:
SAOI
Good luck
- 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(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
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);
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();
PHP код:
OnSAOIRemovedBuildingsForPlayer(playerid,buildings);
PHP код:
IsSAOISlotFree -> SAOI_IsSlotFree
FindFreeSAOIID -> SAOI_GetFreeID
Код:
bool:GetSAOILoadData(SAOI:index,name[],&object_cnt=0,&material_cnt=0,&material_text_cnt=0,&load_time=0,&active_tick=0,&removed_object=0);
- Updated commands:
PHP код:
/saoi
/saoiinfo
PHP код:
/addrbinfo - adds descriptions of removed buildings
/delrbinfo - removes descriptions of removed buildings
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);
SAOI
Good luck
![Cheesy](images/smilies/biggrin.png)