[Plugin] Streamer Plugin

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

Reply

OnPlayerWeaponShot didnt work on hunter shots
Reply

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

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

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

CreateDynamicPlayerObject

Thanks.
Reply

Код:
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
Reply

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

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

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??)
Reply

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

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

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

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
Код:

Reply

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

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

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

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

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

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)
Reply

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)