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: AW: Streamer Plugin - IstuntmanI - 23.12.2014

Quote:
Originally Posted by axi92
Посмотреть сообщение
Is there a way to check if a rocket from a jet hits an streamed object?

I'v tried it with OnPlayerShootDynamicObject but it gave me no response.
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
Quote:
Description:

This callback is called when a player fires a shot from a weapon. Only bullet weapons are supported. Only passenger drive-by is supported (not driver drive-by, and not sea sparrow / hunter shots).




AW: Streamer Plugin - axi92 - 23.12.2014

OnPlayerWeaponShot didnt work on hunter shots


Re: Streamer Plugin - Pottus - 23.12.2014

There is really no way to directly detect something like that.


Re: Streamer Plugin - SWET - 31.12.2014

Hi. I have a problem with a zone, I would like to save postions on the server and save them to a dynamic array to use them as a function of CreateDynamicPolygon.
Код:
cmd(sel4, playerid, params[])
{

	new str2[256], iss;
	format(str2, sizeof(str2), "%f, %f %f, %f %f, %f %f, %f", PlayerInfo[playerid][pSelPos][0], PlayerInfo[playerid][pSelPos][1], PlayerInfo[playerid][pSelPos][2], PlayerInfo[playerid][pSelPos][3], PlayerInfo[playerid][pSelPos][4], PlayerInfo[playerid][pSelPos][5], PlayerInfo[playerid][pSelPos][6], PlayerInfo[playerid][pSelPos][7]);
	PlayerInfo[playerid][pSelSrng] = str2;
	printf("%s", PlayerInfo[playerid][pSelSrng]);
	iss = CreateDynamicPolygon(PlayerInfo[playerid][pSelSrng], -100.0, 100.0);
	new ipls = Streamer_CountItems(STREAMER_TYPE_AREA), ipl = GetDynamicPolygonPoints(iss, str2, sizeof(str2));
	
		printf("areas - %d, %d points", ipls, ipl);
	
	return 1;
}
This code creates a zone but that's zone does not work. I think that the positions of the array are read by the wrong features. How can I do to make it work? Help me ...


Re: Streamer Plugin - Luca12 - 12.01.2015

Is there in a streamer 2.7.4 function for creating dynamic object for player like

CreateDynamicPlayerObject

Thanks.


AW: Streamer Plugin - axi92 - 14.01.2015

Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
You can use the 10th parameter


Re: Streamer Plugin - Abagail - 14.01.2015

Quote:
Originally Posted by Luca12
Посмотреть сообщение
Is there in a streamer 2.7.4 function for creating dynamic object for player like

CreateDynamicPlayerObject

Thanks.
To be technically correct; dynamic objects ARE player objects. If you are talking about, making the object only visible for a certain player see the playerID parameter.


Re: Streamer Plugin - PaulDinam - 17.01.2015

I'm using the latest version and now whenever I start my server it suddenly crashes. Didn't happen with the previous version.

EDIT:
CreateDynamicPickup crashes my server now, tested it on a blank gamemode as well.

Another bug:
You have to move around slightly otherwise you won't see any 3d text labels that are attached to other players.


Re: Streamer Plugin - kurta999 - 17.01.2015

Are you using YSF? If yes, then try to remove it. If will work, then problem in YSF and i'll try to fix it. (Maybe problem with amx_Register hook??)


Re: Streamer Plugin - PaulDinam - 17.01.2015

I'm using four of YSI's includes which caused the crash.
y_va
y_hooks
y_commands
y_bit

And also:
After removing these includes I found out that pickups don't show up.

I'll be using 2.7.4 for now.


Re: Streamer Plugin - Crayder - 18.01.2015

Quote:
Originally Posted by PaulDinam
Посмотреть сообщение
I'm using four of YSI's includes which caused the crash.
y_va
y_hooks
y_commands
y_bit

And also:
After removing these includes I found out that pickups don't show up.

I'll be using 2.7.4 for now.
Not YSI, YSF. The plugin...


Re: Streamer Plugin - PaulDinam - 18.01.2015

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Not YSI, YSF. The plugin...
No, I don't. I would have said if I did use it.


Re: Streamer Plugin - RaeF - 18.01.2015

Why Streamer_UpdateEx crash?
// Inside on player request class
Streamer_UpdateEx(playerid,1761.0281, -1846.6010, 13.2184);
SetPlayerPos(playerid,-2150.0972,1901.4792,555.4389);
SetPlayerCameraPos(playerid, 1761.0281, -1846.6010, 13.2184);
SetPlayerCameraLookAt(playerid, 1760.3217, -1847.3002, 13.1983);

Код:
[11:22:27] [debug] Server crashed due to an unknown error
[11:22:27] [debug] Native backtrace:
[11:22:27] [debug] #0 015da26d in ?? () from plugins\streamer.dll
[11:22:27] [debug] #1 015d7b5b in ?? () from plugins\streamer.dll
[11:22:27] [debug] #2 015d74ba in ?? () from plugins\streamer.dll
[11:22:27] [debug] #3 004691b6 in ?? () from samp-server.exe
Код:




Re: Streamer Plugin - kurta999 - 18.01.2015

Are you using YSF or not? If yes, try without ysf please.


Re: Streamer Plugin - PaulDinam - 18.01.2015

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Are you using YSF or not? If yes, try without ysf please.
I said I don't use it, it's because of YSI's ver 4.0.


Re: Streamer Plugin - RaeF - 18.01.2015

If you're talking to me, I'am not using YSF
I use: sscanf, crashdetect, whirlpool, mysql, streamer.

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Are you using YSF or not? If yes, try without ysf please.



Re: Streamer Plugin - XXCrazyMan707XX - 19.01.2015

Not sure if this is bugged, but the response variable hardly ever outputs 1 when the save icon is clicked under OnPlayerEditDynamicObject. It outputs 2 and 0 though.

http://i.imgur.com/GkhUrXh.png

The last line in the image was when the saved icon was clicked.

EDIT:
It seems to have fixed itself.


Re: Streamer Plugin - Incognito - 19.01.2015

Quote:
Originally Posted by PaulDinam
Посмотреть сообщение
I'm using the latest version and now whenever I start my server it suddenly crashes. Didn't happen with the previous version.

EDIT:
CreateDynamicPickup crashes my server now, tested it on a blank gamemode as well.
This should be fixed. Please redownload.


Re: Streamer Plugin - Ari - 20.01.2015

Quote:
Originally Posted by XXCrazyMan707XX
Посмотреть сообщение
Not sure if this is bugged, but the response variable hardly ever outputs 1 when the save icon is clicked under OnPlayerEditDynamicObject. It outputs 2 and 0 though.

http://i.imgur.com/GkhUrXh.png

The last line in the image was when the saved icon was clicked.

EDIT:
It seems to have fixed itself.
Код:
0 - EDIT_RESPONSE_CANCEL   // player cancelled (ESC)
1 - EDIT_RESPONSE_FINAL    // player clicked on save
2 - EDIT_RESPONSE_UPDATE   // player moved the object (edition did not stop at all)



Re: Streamer Plugin - kurta999 - 20.01.2015

Oh, nice! Now works, i'm afraid that YSF caused this crash because I get a lot of crash in past which caused by YSF. (conflict with other plugins)

Static objects, per-player settable item count, VERY NICE