11.10.2019, 14:22
Update v1.1.0:
- Added functions:
- Disabled force Missions::Generate(); on Missions::Init(); missions can respawn only 15 after server start or you can call Missions::Generate(); after you change Spawn areas
- Fixed some MISSION_ to MISSIONS_ definitions
- Example code updated
- Added functions:
PHP Code:
//return 0 if is failed spawn_validation (MISSIONS_TYPE_WOOD, MISSIONS_TYPE_DMGROUTE, MISSIONS_TYPE_PATROL, MISSIONS_TYPE_SCRAP)
//disabling verification may cause the server to freeze if no spawn is in the zone
Missions::SetSpawnRectangle(mission_type,Float:minx,Float:miny,Float:maxx,Float:maxy,bool:spawn_validation=true);
Missions::SetSpawnPolygon(mission_type,Float:points[],maxpoints=sizeof(points),bool:spawn_validation=true);
- Fixed some MISSION_ to MISSIONS_ definitions
- Example code updated