SA-MP Forums Archive
[Plugin] Streamer Plugin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Streamer Plugin (/showthread.php?tid=102865)



Re: [REL] Streamer Plugin v2.3.7 - kurta999 - 11.03.2010

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



Re: [REL] Streamer Plugin v2.3.7 - shady91 - 11.03.2010

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.


Re: [REL] Streamer Plugin v2.3.7 - [03]Garsino - 11.03.2010

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


Re: [REL] Streamer Plugin v2.3.7 - shady91 - 11.03.2010

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.


Re: [REL] Streamer Plugin v2.3.7 - Finn - 11.03.2010

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


Re: [REL] Streamer Plugin v2.3.7 - beckzy - 11.03.2010

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


Re: [REL] Streamer Plugin v2.3.7 - [03]Garsino - 12.03.2010

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


Re: [REL] Streamer Plugin v2.3.7 - [HUN]Gamestar - 12.03.2010

-


Re: [REL] Streamer Plugin v2.3.6 - [03]Garsino - 12.03.2010

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.
^



Re: [REL] Streamer Plugin v2.3.7 - ColdXX - 14.03.2010

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



Re: [REL] Streamer Plugin v2.3.7 - Incognito - 15.03.2010

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.


Re: [REL] Streamer Plugin v2.3.7 - [03]Garsino - 15.03.2010

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


Re: [REL] Streamer Plugin v2.3.7 - [HUN]Gamestar - 15.03.2010

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



Re: [REL] Streamer Plugin v2.3.7 - Incognito - 15.03.2010

[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.


Re: [REL] Streamer Plugin v2.3.7 - [03]Garsino - 15.03.2010

Oh, didnt know that, thanks for clearing up.


Re: [REL] Streamer Plugin v2.3.7 - CracK - 16.03.2010

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


Re: [REL] Streamer Plugin v2.3.7 - ColdXX - 17.03.2010

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


Re: [REL] Streamer Plugin v2.3.7 - armyoftwo - 18.03.2010

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


Re: [REL] Streamer Plugin v2.3.7 - FujiNNN - 18.03.2010

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?..


Re: [REL] Streamer Plugin v2.3.7 - [03]Garsino - 21.03.2010

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