Üdv áthoztam 1 függvény könyvtárat a hiv.forumrol
eredeti link:
http://forum.sa-mp.com/showthread.php?t=117920Készitõ : fallout
nativok
native F_CreateObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:vdist=0.0, bool:InstantUpdate=false);
native F_CreatePlayerObject(playerid, modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:vdist=0.0, bool:InstantUpdate=false);
native F_DestroyObject(objectid);
native F_PlayerObjectUpdate(playerid, Float:x, Float:y, Float:z);
native F_MoveObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx=0.0, Float:ry=0.0, Float:rz=0.0);
native F_StopObject(objectid);
native F_IsObjectMoving(objectid);
native F_AttachObjectToPlayer(objectid, playerid, Float:x, Float:y, Float;z, Float:rx, Float:ry, Float:rz);
native F_IsObjectCreated(objectid);
native F_IsObjectCreatedForPlayer(playerid, objectid);
native F_SetObjectPos(objectid, Float:x, Float:y, Float:z);
native F_GetObjectPos(objectid, &Float:x, &Float:y, &Float:z);
native F_SetObjectRot(objectid, Float:rx, Float:ry, Float:rz);
native F_GetObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);
native F_CountObjects();
native F_RefreshObjects(playerid);
native F_ObjectUpdateForAll();
Streamer config.
#define F_MAX_OBJECTS 1250
#define UpdateTime 1000
#define ObjectsToStream 800
#define StreamRange 500.0
#define DistanceBeforeUpdate 5.0
#pragma dynamic 30000
callback:
native F_OnObjectMoved(objectid);
INCLUDE :
http://solidfiles.com/d/14aeb2d71b/Create OBJECT :
F_CreateObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:vdist=0.0, bool:InstantUpdate=false);
Teszt Videok :
Sok Sikert hozzá!