[Plugin] Streamer Plugin

Add this to streamer.inc and working with CreateObject

Код:
#define CreateObject CreateDynamicObject
#define DestroyObject DestroyDynamicObject
#define MoveObject MoveDynamicObject
#define StopObject StopDynamicObject
#define SetObjectPos SetDynamicObjectPos
#define GetObjectPos GetDynamicObjectPos
#define SetObjectRot SetDynamicObjectRot
#define GetObjectRot GetDynamicObjectRot
#define IsValidObject IsValidDynamicObject
Reply

Quote:
Originally Posted by kurta999
Add this to streamer.inc and working with CreateObject

Код:
#define CreateObject CreateDynamicObject
#define DestroyObject DestroyDynamicObject
#define MoveObject MoveDynamicObject
#define StopObject StopDynamicObject
#define SetObjectPos SetDynamicObjectPos
#define GetObjectPos GetDynamicObjectPos
#define SetObjectRot SetDynamicObjectRot
#define GetObjectRot GetDynamicObjectRot
#define IsValidObject IsValidDynamicObject
you could add that in your gamemode/filterscript no need for include as if he did add it like that then CreateObject won't work and they might need CreateObject.
Reply

Am I blind, or is there no ObjectAttach function? D:
Reply

Quote:
Originally Posted by [03
Garsino ]
Am I blind, or is there no ObjectAttach function? D:
i don't think so but thats another reson why CreateObject should not be defined to CreateDynamicObject etc. like kurta999 thinks.
Reply

OnPlayerLeaveDynamicArea doesn't get called when you destroy an area. I think it should.
Reply

Does this streamer use a sphere or cube for the streaming distance?
Reply

Quote:
Originally Posted by Shady91
Quote:
Originally Posted by [03
Garsino ]
Am I blind, or is there no ObjectAttach function? D:
i don't think so but thats another reson why CreateObject should not be defined to CreateDynamicObject etc. like kurta999 thinks.
Ok, in that case:

Suggestion: AttachDynamicObjectToPlayer
Reply

-
Reply

Quote:
Originally Posted by $ЂЯĢ
Quote:
Originally Posted by [03
Garsino ]
Any chance of implenting a vehicle streamer?
0.3a had player and vehicle streamer included by default. Having streamer in streamer would just slow down everything.
^
Reply

Not working for me ....
Код:
File or function is not found
Reply

Quote:
Originally Posted by Finn
OnPlayerLeaveDynamicArea doesn't get called when you destroy an area. I think it should.
The area no longer exists when you destroy it, thus why none of the callbacks associated with it will be called from that point forward.

Quote:
Originally Posted by BeckzyBoi
Does this streamer use a sphere or cube for the streaming distance?
It just uses the distance formula, which compares two points on a three-dimensional plane. Geometric shapes are not involved (that would certainly entail a lot of unnecessary computation).

Quote:
Originally Posted by [03
Garsino ]
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by [03
Garsino ]
Am I blind, or is there no ObjectAttach function? D:
i don't think so but thats another reson why CreateObject should not be defined to CreateDynamicObject etc. like kurta999 thinks.
Ok, in that case:

Suggestion: AttachDynamicObjectToPlayer
AttachPlayerObjectToPlayer was removed in 0.3a, so this is not possible.
Reply

Not Player object, I mean the regular objects created for everyone. I know it's possible since it works with the default CreateObject function.
Reply

Quote:
Originally Posted by ColdXX
Not working for me ....
Код:
File or function is not found
To server.cfg. On windows add:
Код:
plugins streamer
On Linux add:
Код:
plugins streamer.so
Reply

[03]Garsino: The object streamer updates per-player, so only player objects can be created. If you really want to attach an object to a player, you'll just need to use CreateObject and AttachObjectToPlayer yourself—sorry.

CrαcK (from the previous page): It looks like everything is there but the LODs from the binary IPL files, although I haven't checked every line. Out of curiosity, how did you compile that list? I can only assume that finding each LOD manually would take a very long time due to SA's strange format. I can probably make a small program to read from the files and parse relevant information, but I'll see about that later.
Reply

Oh, didnt know that, thanks for clearing up.
Reply

Quote:
Originally Posted by Incognito
CrαcK (from the previous page): It looks like everything is there but the LODs from the binary IPL files, although I haven't checked every line. Out of curiosity, how did you compile that list? I can only assume that finding each LOD manually would take a very long time due to SA's strange format. I can probably make a small program to read from the files and parse relevant information, but I'll see about that later.
I made scripts for getting information from all IPL files.
First one (makes unsorted list) - http://pastebin.com/6taHYgCt
Second (sorts everything, deletes unused ones) - http://pastebin.com/sRJDqNFa
Reply

it suposed to be fast and good right? well it doesnt work right for me IDK why:S
Reply

I must say, This is the best streamer i ever seen.
Reply

pawn Код:
new Text3D:ForSale3DTextLabel;

ForSale3DTextLabel = CreateDynamic3DTextLabel("For SALE!",COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez] +0.5 ,25.0,0,1,-1,-1,-1,100);
            CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], -1, -1, -1, 80);
its not displaying wth?..
Reply

pawn Код:
#include <a_samp>
#include <streamer>
#if defined FILTERSCRIPT
native Streamer_TickRate(10000);
native Streamer_MaxItems(10000);
native Streamer_VisibleItems(10000);
public OnFilterScriptExit()

#endif

public OnGameModeInit()
{
////////////////////////LSAIR///////////////////
    CreateDynamicObject(10244, -2078.720703125, -137.70269775391, 35.918731689453, 0, 350.07507324219, 226.2900390625);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}
There, you dont need the 'native' infront of CreateDynamicObject
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)