Double-O-Objects
Today, I was bored, so I made an object streamer, because my server needed one.
I implented everything important.
♦ What does it do?
- Streaming objects, as much as you want
- Move objects
- Set objects pos
- Set objects rotation when 0.3 comes and SetPlayerObjectRot fixed is ;X
- Calculate the closest objects near you, when you use SetPlayerPos (if you don't lag too much)!
- Streaming objects in all or in one virtual world
♦ Functions:
CreateStreamObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:distance,worldid);//Create an object
DestroyStreamObject(objectid);//Destroy it
StreamObjects();//Stream the objects
StreamPlayerObjects(playerid,Float:x,Float:y,Float:z);//Stream it for one player
MoveStreamObject(objectid,Float:x,Float:y,Float:z,Float:speed);//Move a streamed object
StopStreamObject(objectid);//Stop moving a streamed object
DOO_SetPlayerPos(playerid,Float:x,Float:y,Float:z);//Use this instead of SetPlayerPos!!!
DOO_SetVehiclePos(vehicleid,Float:x,Float:y,Float:z);//Use this instead of SetVehiclePos!!!
SetStreamObjectRot(objectid, Float:rX, Float:rY, Float:rZ);//does not work in this version of SA-MP
SetStreamObjectPos(objectid, Float:x, Float:y, Float:z);//Set the pos of an object
SetObjectViewDistance(objectid,Float:distance);//Set the view distance
IsValidStreamObject(objectid);//Check if it is created
DOO_OnGameModeInit();//Start streaming - put it under OnGameModeInit
DOO_OnPlayerConnect(playerid);//Put this under OnPlayerConnect
DOO_OnPlayerDisconnect(playerid);//Put this under OnPlayerDisconnect
♦ Where can I download it?
- Here: Sendspace.com (.inc)
- Or here: Pastebin.com
Please report bugs and write a comment!
Have fun!
---
Sorry, dass es alles in Englisch ist, denn ich habe es zuerst im offiziellen Forum veröffentlicht und habe nun keine Lust mehr, es zu übersetzen ;X
MfG Double-O-Seven