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.6.1 - Kar - 16.11.2012

AttachPlayerObjectToPlayer doesn't work, its a native yes but it doesn't work..


Re: [REL] Streamer Plugin v2.6.1 - Kar - 17.11.2012

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
Yes.. but I'm saying its still in the function list and as I said, it doesn't work ...


Re: [REL] Streamer Plugin v2.6.1 - ikkentim - 17.11.2012

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
:O that a bit sad

Then either my a_object.inc is outdated or it hasn't been removed from it..


I hope Kalcor will make it work again in an upcoming version


Re: [REL] Streamer Plugin v2.6.1 - IstuntmanI - 17.11.2012

Yes, it's still a native function, but if you use it, in console will appear an error about it.


Re: [REL] Streamer Plugin v2.6.1 - Kyle - 19.11.2012

I know we have "GetPlayerVisibleDynamicRaceCP" - But what about multiple race CP's that a player has streamed?

There is no function to delete all the streamed CPs for player race CPs.


Re: [REL] Streamer Plugin v2.6.1 - MP2 - 20.11.2012

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
I know we have "GetPlayerVisibleDynamicRaceCP" - But what about multiple race CP's that a player has streamed?
Since when can you stream multiple race checkpoints..?


Re: [REL] Streamer Plugin v2.6.1 - IstuntmanI - 20.11.2012

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
I know we have "GetPlayerVisibleDynamicRaceCP" - But what about multiple race CP's that a player has streamed?

There is no function to delete all the streamed CPs for player race CPs.
Visible = what do you see, returns the CP ID that you see.

Quote:
Originally Posted by MP2
Посмотреть сообщение
Since when can you stream multiple race checkpoints..?
You can, but only one can be shown at a time, the closest one to you.


Re: [REL] Streamer Plugin v2.6.1 - steki. - 21.11.2012

Is there a function like SelectDynamicObject?


Re: [REL] Streamer Plugin v2.6.1 - rjjj - 21.11.2012

Quote:
Originally Posted by Stewie`
Посмотреть сообщение
Is there a function like SelectDynamicObject?
No, there is not :


Quote:
Originally Posted by Incognito
Посмотреть сообщение
No need. Just Use SelectObject, and OnPlayerSelectDynamicObject will be called if you select an object that's handled by the streamer.

I hope that I have helped .


Re: [REL] Streamer Plugin v2.6.1 - steki. - 21.11.2012

Quote:
Originally Posted by rjjj
Посмотреть сообщение
No, there is not :






I hope that I have helped .
Should I use a dynamic object handler or a SAMP object handler then?


Re: [REL] Streamer Plugin v2.6.1 - Coder_ - 21.11.2012

Hmm
pawn Код:
pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
include\streamer.inc(375) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
pawno\include\streamer.inc(397) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
pawno\include\streamer.inc(399) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
How to fix? I tried re-download but still have same errors :S


Re: [REL] Streamer Plugin v2.6.1 - Domain - 11.12.2012

Nice streamer. I using it long time And i love it.


Re: [REL] Streamer Plugin v2.6.1 - Unirom Shaw - 13.12.2012

E:\Game\SAMP Server\Folder Baru\pawno\include\streamer.inc(375) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
E:\Game\SAMP Server\Folder Baru\pawno\include\streamer.inc(397) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
E:\Game\SAMP Server\Folder Baru\pawno\include\streamer.inc(399) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

why im always get this error in any GM?


Re: [REL] Streamer Plugin v2.6.1 - SDraw - 13.12.2012

Quote:
Originally Posted by Unirom Shaw
Посмотреть сообщение
why im always get this error in any GM?
Because you haven't updated include files...


Re: [REL] Streamer Plugin v2.6.1 - ikkentim - 13.12.2012

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
All those are related to features added in 0.3e, go and update your server include files to that version.
I can't believe I have to quote Southclaw, meaning this post is visible on over 3 pages, making it unnecessary for people to ask those stupid questions they don't need to ask, as the answer is already somewhere in this topic!


Re: [REL] Streamer Plugin v2.6.1 - Kyle - 13.12.2012

Can you make it so you can destroy all player race checkpoints created. Whether they're visible or not. You can only destroy the checkpoints if you let them destroy ALL of them including every player.

I want it so you can destroy all race CPs for certain players.


Re: [REL] Streamer Plugin v2.6.1 - Kar - 13.12.2012

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Can you make it so you can destroy all player race checkpoints created. Whether they're visible or not. You can only destroy the checkpoints if you let them destroy ALL of them including every player.

I want it so you can destroy all race CPs for certain players.
pawn Код:
stock DestroyAllDynamicRaceCPsEx(playerid)
{
    if(playerid == INVALID_PLAYER_ID)
    {
        DestroyAllDynamicRaceCPs();
    }
    else
    {
        new upper_bound = Streamer_GetUpperBound(STREAMER_TYPE_RACE_CP), checkpointid;
        for( ; checkpointid < upper_bound; checkpointid++ )
        {
            if(!IsValidDynamicRaceCP(checkpointid)) continue;
            if(Streamer_IsInArrayData(STREAMER_TYPE_RACE_CP , checkpointid, E_STREAMER_PLAYER_ID, playerid))
            {
                TogglePlayerDynamicRaceCP(playerid, checkpointid, false); // just to make sure it's hidden
                Streamer_RemoveArrayData(STREAMER_TYPE_RACE_CP , checkpointid], E_STREAMER_PLAYER_ID, playerid);
            }
        }
    }
    return 1;
}



Re: [REL] Streamer Plugin v2.6.1 - Kyle - 14.12.2012

Quote:
Originally Posted by Kar
Посмотреть сообщение
pawn Код:
stock DestroyAllDynamicRaceCPsEx(playerid)
{
    if(playerid == INVALID_PLAYER_ID)
    {
        DestroyAllDynamicRaceCPs();
    }
    else
    {
        new upper_bound = Streamer_GetUpperBound(STREAMER_TYPE_RACE_CP), checkpointid;
        for( ; checkpointid < upper_bound; checkpointid++ )
        {
            if(!IsValidDynamicRaceCP(checkpointid)) continue;
            if(Streamer_IsInArrayData(STREAMER_TYPE_RACE_CP , checkpointid, E_STREAMER_PLAYER_ID, playerid))
            {
                TogglePlayerDynamicRaceCP(playerid, checkpointid, false); // just to make sure it's hidden
                Streamer_RemoveArrayData(STREAMER_TYPE_RACE_CP , checkpointid], E_STREAMER_PLAYER_ID, playerid);
            }
        }
    }
    return 1;
}
Incognito made one already for me, thanks.

Код:
Streamer_DestroyPlayerRaceCPs(playerid)
{
	for (new i = 1, j = Streamer_GetUpperBound(STREAMER_TYPE_RACE_CP); i < j; i++)
	{
		if (Streamer_IsInArrayData(STREAMER_TYPE_RACE_CP, i, E_STREAMER_PLAYER_ID, playerid))
		{
			DestroyDynamicRaceCP(i);
		}
	}
}



Re: [REL] Streamer Plugin v2.6.1 - Kar - 14.12.2012

but DestroyDynamicRaceCP destroys the cp for everyone, you said you wanted it to destroy it for the player only.


Re: [REL] Streamer Plugin v2.6.1 - Lorenc_ - 15.12.2012

Hi, does anyone have a function which removes all objects on a specific world ID? I've tried making it but failed. I'd greatly appreciate it.