05.09.2016, 15:59
Update v2.9.0:
- Updated function:
- Fixed function:
- New Support for FCNPC Plugin
- Added FCNPC Functions:
- Added FCNPC Functions (ColAndreas):
- Added FCNPC Functions (ColAndreas OR MapAndreas):
- Added FCNPC Functions (Streamer):
- Updated function:
Код:
CountPlayers(bool:isplayer=true,bool:isnpc=true);
PHP код:
bool:IsPlayerInPolygon(playerid,Float:points[],maxpoints = sizeof(points));
- Added FCNPC Functions:
PHP код:
bool:IsNPCInCircle(npcid,Float:x,Float:y,Float:radius);
bool:IsNPCInCylinder(npcid,Float:xA,Float:yA,Float:zA,Float:xB,Float:yB,Float:zB,Float:radius);
bool:IsNPCInCylinderEx(npcid,Float:x,Float:y,Float:minz,Float:maxz,Float:radius);
bool:IsNPCInSphere(npcid,Float:x,Float:y,Float:z,Float:radius);
bool:IsNPCInRectangle(npcid,Float:minx,Float:miny,Float:maxx,Float:maxy);
bool:IsNPCInCube(npcid,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz);
bool:IsNPCInPolygon(npcid,Float:points[],maxpoints = sizeof(points));
Float:GetPointInFrontOfNPC(npcid,&Float:tx,&Float:ty,Float:radius);
GetNPCOrientationPos(npcid,element_orientation:orientation,Float:distance,&Float:tx,&Float:ty,&Float:tz);
Float:GetNPCDistanceFromPoint(npcid,Float:x,Float:y,Float:z);
bool:IsNPCInRangeOfPoint(npcid,Float:range,Float:x,Float:y,Float:z);
Float:GetDistanceBetweenNPCs(npcid_a,npcid_b);
Float:GetNPCSpeed(npcid);
Float:GetNPCTargetAngle(npcid,Float:x,Float:y,&Float:rz=0.0);
Float:SetNPCTargetAngle(npcid,Float:x,Float:y,&Float:rz=0.0);
Float:GetNPCTargetNPCAngle(npcid,targetid,&Float:rz=0.0);
Float:SetNPCTargetNPCAngle(npcid,targetid,&Float:rz=0.0);
Float:GetNPCActorDistance(npcid,actorid);
Float:GetNPCVehicleDistance(npcid,vehicleid);
Float:GetNPCObjectDistance(npcid,objectid);
bool:GetNPCToPointVector(npcid,Float:tx,Float:ty,Float:tz,&Float:vx,&Float:vy,&Float:vz);
GetNPCRotatedVector(npcid,Float:tx,Float:ty,Float:tz,&Float:vx,&Float:vy,&Float:vz,bool:return_vector=true,Float:rx=0.0,Float:ry=0.0,Float:rz=0.0);
PHP код:
Float:GetPointInFrontOfNPCCol(npcid,&Float:tx,&Float:ty,Float:radius);
GetNPCCollisionFlags(npcid);
bool:IsBetweenNPCsIsWall(npcid,targetid);
bool:IsBetweenNPCToPointIsWall(npcid,Float:x,Float:y,Float:z);
GetNPCOrientationPosCol(npcid,element_orientation:orientation,Float:distance,&Float:tx,&Float:ty,&Float:tz);
PHP код:
bool:IsPointInWaterFrontOfNPC(npcid,Float:radius);
PHP код:
Float:GetNPCDynamicObjectDistance(npcid,objectid);
