SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 06/12/2011, 02:15 AM   #2851
Dragony92
Banned
 
Join Date: Feb 2011
Location: Belgrade, Serbia
Posts: 484
Reputation: 60
Default Re: [REL] Streamer Plugin v2.5.2

Problem in Beta version, after relog they will see everything as you see, normal.. But thats not a solution...
Dragony92 is offline   Reply With Quote
Old 06/12/2011, 04:36 AM   #2852
junkbuster
Huge Clucker
 
junkbuster's Avatar
 
Join Date: Oct 2010
Posts: 250
Reputation: 2
Default Respuesta: Re: [REL] Streamer Plugin v2.5.2

Quote:
Originally Posted by Dragony92 View Post
Problem in Beta version, after relog they will see everything as you see, normal.. But thats not a solution...
Exactly but we can only wait..
junkbuster is offline   Reply With Quote
Old 06/12/2011, 12:20 PM   #2853
Dodus
Little Clucker
 
Join Date: Jul 2010
Posts: 49
Reputation: 1
Default Re: [REL] Streamer Plugin v2.5.2

Hey, who can rewrite this plugin, and add new function "GetDynamicObjectWorld", what return a object VirtualWorld? I need this. Or please direct me, how i can rewrite this plugin.

Thanks!
Dodus is offline   Reply With Quote
Old 06/12/2011, 12:41 PM   #2854
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 913
Reputation: 635
Default Re: [REL] Streamer Plugin v2.5.2

Try:

pawn Code:
Streamer_GetIntData(STREAMER_TYPE_OBJECT, gObjectID, E_STREAMER_WORLD_ID)
__________________
I don't play and have ANY interest in SA:MP anymore! Please do not ask for help, because I'm not going to reply.
kurta999 is offline   Reply With Quote
Old 06/12/2011, 01:03 PM   #2855
Dodus
Little Clucker
 
Join Date: Jul 2010
Posts: 49
Reputation: 1
Default Re: [REL] Streamer Plugin v2.5.2

@UP.
Doesn't works... :/ Any suggestions?
Dodus is offline   Reply With Quote
Old 06/12/2011, 03:20 PM   #2856
leong124
High-roller
 
leong124's Avatar
 
Join Date: Jun 2008
Location: Hong Kong, China
Posts: 1,496
Reputation: 134
Default Re: [REL] Streamer Plugin v2.5.2

Quote:
Originally Posted by Dodus View Post
@UP.
Doesn't works... :/ Any suggestions?
Replace gObjectID with the variable storing the ID of the object you want to check.
__________________
[KDT_MS]hk_shade

Sorry for my bad English and my weakness in expressing myself.
leong124 is offline   Reply With Quote
Old 07/12/2011, 12:03 AM   #2857
Dodus
Little Clucker
 
Join Date: Jul 2010
Posts: 49
Reputation: 1
Default Re: [REL] Streamer Plugin v2.5.2

Quote:
Originally Posted by leong124 View Post
Replace gObjectID with the variable storing the ID of the object you want to check.
Eh? I do it:

pawn Code:
new object_counts = CountDynamicObjects(),
        Float:x, Float:y, Float:z;

    foreach(object_id, object_counts)
    {
        GetDynamicObjectPos(object_id, x, y, z);
        if(IsPlayerInRangeOfPoint(playerid, 2.5, x, y, z))
        {
            new world = Streamer_GetIntData(STREAMER_TYPE_OBJECT, object_id, E_STREAMER_WORLD_ID);
            SendClientFormatMessage(playerid, COLOR_WHITE, "VirtualWorld obiektu: %d", world);
            return 1;
        }
    }

And this return 0 on the all of objects.
Dodus is offline   Reply With Quote
Old 07/12/2011, 10:11 AM   #2858
leong124
High-roller
 
leong124's Avatar
 
Join Date: Jun 2008
Location: Hong Kong, China
Posts: 1,496
Reputation: 134
Default Re: [REL] Streamer Plugin v2.5.2

Quote:
Originally Posted by Dodus View Post
Eh? I do it:

pawn Code:
new object_counts = CountDynamicObjects(),
        Float:x, Float:y, Float:z;

    foreach(object_id, object_counts)
    {
        GetDynamicObjectPos(object_id, x, y, z);
        if(IsPlayerInRangeOfPoint(playerid, 2.5, x, y, z))
        {
            new world = Streamer_GetIntData(STREAMER_TYPE_OBJECT, object_id, E_STREAMER_WORLD_ID);
            SendClientFormatMessage(playerid, COLOR_WHITE, "VirtualWorld obiektu: %d", world);
            return 1;
        }
    }

And this return 0 on the all of objects.
You can't use foreach in the case, as there is no array to store the object IDs:
pawn Code:
for(new object_id = 0, object_counts = CountDynamicObjects(), Float:x, Float:y, Float:z;object_id < object_counts;object_id++)
//Declare the variables inside the loop, unless you need to use them outside it.
{
    GetDynamicObjectPos(object_id, x, y, z);
    if(IsPlayerInRangeOfPoint(playerid, 2.5, x, y, z))
    {
        new world = Streamer_GetIntData(STREAMER_TYPE_OBJECT, object_id, E_STREAMER_WORLD_ID);
        SendClientFormatMessage(playerid, COLOR_WHITE, "VirtualWorld obiektu: %d", world);
        return 1;
    }
}
Note that if you specify the virtual parameter as -1 in CreateDynamicObject, it will say that the virtual world is -1, meaning that it appears in all virtual worlds.
__________________
[KDT_MS]hk_shade

Sorry for my bad English and my weakness in expressing myself.
leong124 is offline   Reply With Quote
Old 07/12/2011, 01:12 PM   #2859
!LukniS!
Little Clucker
 
Join Date: Dec 2011
Posts: 25
Reputation: 4
Default Re: [REL] Streamer Plugin v2.5.2

Can i use older versions on 0.3d?
!LukniS! is offline   Reply With Quote
Old 07/12/2011, 01:26 PM   #2860
leong124
High-roller
 
leong124's Avatar
 
Join Date: Jun 2008
Location: Hong Kong, China
Posts: 1,496
Reputation: 134
Default Re: [REL] Streamer Plugin v2.5.2

It is not recommended, since MoveDynamicObject will not work on 0.3d if you do so. 0.3d has some changes to MovePlayerObject that streamer uses, so you should update this plugin to 2.6.
__________________
[KDT_MS]hk_shade

Sorry for my bad English and my weakness in expressing myself.
leong124 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Checkpoint / Area sub-streamer for incognito's streamer plugin Pottus Includes 9 21/03/2014 06:31 PM
Need 3dtextlabel Streamer And Gangzone Streamer !! Please Help . Not streamer plugin . jame42 Scripting Help 4 30/05/2012 07:33 AM
Streamer plugin 0.3d rt-2 Plugin Development 7 05/12/2011 06:17 PM
Streamer Plugin Help! ColdXX Everything and Nothing 2 21/08/2010 10:28 PM
Streamer Plugin! ColdXX Help Archive 10 18/07/2010 12:47 PM


All times are GMT. The time now is 06:06 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.