16.08.2017, 13:18
(
Последний раз редактировалось AbyssMorgan; 16.08.2017 в 13:53.
)
Update v4.4.2:
- Update for FCNPC v1.7.4
- Fixed functions/callbacks
- Added support for FCNPC
- Added functions:
- Added IPL functions:
- IPL function example:
- IPL function example 2 (auto decode):
Video for SetVehicleSpeed:
https://www.youtube.com/watch?v=2YyP9EktcPU
- Update for FCNPC v1.7.4
- Fixed functions/callbacks
PHP код:
Tryg3D::GivePlayerDamage - call to all scripts: OnPlayerGiveDamage and OnPlayerTakeDamage
OnColAndreasRemoveBuilding - call to all scripts
PHP код:
Tryg3D::GivePlayerDamage
PHP код:
SetVehicleSpeed(vehicleid,Float:speed);
Float:GetCameraTargetDistance(Float:CamX,Float:CamY,Float:CamZ,Float:ObjX,Float:ObjY,Float:ObjZ,Float:FrX,Float:FrY,Float:FrZ);
IsPlayerAimingAt(playerid,Float:x,Float:y,Float:z,Float:radius);
//Explosion Damage Control support players/vehicles
//Player: Take/Give damage by weaponid 51, bodypart 3
//This function set player health to 765.0 before using explosion
CreateDynamicExplosionDMG(Float:x,Float:y,Float:z,type,Float:radius,worldid = -1,interiorid = -1,playerid = -1,Float:distance = 200.0,Float:damage=82.5,Float:vehicle_damage=82.5,byplayerid=INVALID_PLAYER_ID);
SendFakeDamageInRadius(weaponid,bodypart,Float:damage,Float:vehicle_damage,Float:x,Float:y,Float:z,Float:radius,worldid = -1,interiorid = -1,playerid = -1,byplayerid=INVALID_PLAYER_ID);
PHP код:
IPL_CreateObject(modelid,Float:x,Float:y,Float:z,Float:qx,Float:qy,Float:qz,Float:qw,Float:drawdistance=0.0);
IPL_CreateDynamicObject(modelid,Float:x,Float:y,Float:z,Float:qx,Float:qy,Float:qz,Float:qw,worldid=-1,interiorid=-1,playerid=-1,Float:streamdistance=STREAMER_OBJECT_SD,Float:drawdistance=STREAMER_OBJECT_DD,STREAMER_TAG_AREA areaid=STREAMER_TAG_AREA -1,priority=0);
Код:
714, veg_bevtree2, 0, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815, -1 IPL_CreateDynamicObject(714, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815);
PHP код:
#define ipl_extract_params(%1,%2,%3,%4,%5,%6,%7,%8) %1,%2,%3,%4,%5,%6,%7
#define ipl_decode(%0,%1,%2,%3) %0,ipl_extract_params(%3)
IPL_CreateDynamicObject(ipl_decode(714, veg_bevtree2, 0, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815, -1));
https://www.youtube.com/watch?v=2YyP9EktcPU