[Plugin] Streamer Plugin

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

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

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
Reply

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

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

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

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

Is there a function like SelectDynamicObject?
Reply

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

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

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
Reply

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

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

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

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

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

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;
}
Reply

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)