SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 17/05/2018, 07:39 PM   #5741
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 288
Reputation: 33
Default Re: Streamer Plugin

Code:
Streamer_RemoveArrayData(STREAMER_TYPE_3D_TEXT_LABEL, PlayerInfo[playerid], E_STREAMER_PLAYER_ID, playerid);
ball is offline   Reply With Quote
Old 17/05/2018, 08:20 PM   #5742
DeathCore
Banned
 
Join Date: Jul 2015
Posts: 86
Reputation: 0
Default Re: Streamer Plugin

Quote:
Originally Posted by ball View Post
Code:
Streamer_RemoveArrayData(STREAMER_TYPE_3D_TEXT_LABEL, PlayerInfo[playerid], E_STREAMER_PLAYER_ID, playerid);
Thank you so much!! , I don't see it but will others see it?
DeathCore is offline   Reply With Quote
Old 18/05/2018, 09:30 PM   #5743
DeathCore
Banned
 
Join Date: Jul 2015
Posts: 86
Reputation: 0
Default Re: Streamer Plugin

Quote:
Originally Posted by ball View Post
Code:
Streamer_RemoveArrayData(STREAMER_TYPE_3D_TEXT_LABEL, PlayerInfo[playerid], E_STREAMER_PLAYER_ID, playerid);
UPDATE: It didn't work, I don't see it anymore but the other players don't see it also!

UPDATE2: I think I've fixed it

Last edited by DeathCore; 19/05/2018 at 01:36 PM.
DeathCore is offline   Reply With Quote
Old 23/05/2018, 04:26 PM   #5744
Krass
Little Clucker
 
Join Date: Mar 2018
Posts: 5
Reputation: 0
Default Re: Streamer Plugin

in 2.9.3 STREAMER_OBJECT_DD = 0.0 ?
Krass is offline   Reply With Quote
Old 29/05/2018, 02:19 PM   #5745
RedGun2015
Huge Clucker
 
Join Date: Sep 2015
Posts: 248
Reputation: 0
Default Re: Streamer Plugin

BUG (i think)

I updated my streamer plugin (2.8.1) to the latest (2.9.3) and pickups under OnPlayerDeath doesn't apper/aren't created. I changed to 2.9.1 ..same, I changed back to 2.8.1 and pickups are created,fine.

You should fix this. I really want the latest version.

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        new Float:pos[3];
        GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
        pickup1[playerid] = CreateDynamicPickup(1241, 23, pos[0] + 2.0, pos[1] + 2.0, pos[2], 0, 0, INVALID_PLAYER_ID, 30.0);
        if(GetPlayerWeapon(playerid) == 24)
        {
            pickup2[playerid] = CreateDynamicPickup(348, 23, pos[0], pos[1], pos[2], 0, 0, INVALID_PLAYER_ID, 30.0);
            pickup2GUN[playerid] = 24;
        }  
    }
    return 1;
}

Last edited by RedGun2015; 08/06/2018 at 07:11 PM.
RedGun2015 is offline   Reply With Quote
Old 07/06/2018, 10:35 PM   #5746
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 288
Reputation: 33
Default Re: Streamer Plugin

Is there support for 0.3.DL version? Cause I got problems on switching virtual worlds and putting player in vehicle.

Code:
lVehicleID = CreateVehicle(411, lX, lY, lZ, lA);
SetVehicleVirtualWorld(lVehicleID, lWorldID);
SetPlayerVirtualWorld(lPlayerID, lWorldID);
SetPlayerInterior(lPlayerID, 0);
LinkVehicleToInterior(lVehicleID, 0);
PutPlayerInVehicle(lPlayerID, lVehicleID, 0);
On 0.3.DL doesn't work, on 0.3.7 works as it should.
ball is offline   Reply With Quote
Old 07/06/2018, 10:55 PM   #5747
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,478
Reputation: 525
Default Re: Streamer Plugin

Quote:
Originally Posted by ball View Post
Is there support for 0.3.DL version? Cause I got problems on switching virtual worlds and putting player in vehicle.

Code:
lVehicleID = CreateVehicle(411, lX, lY, lZ, lA);
SetVehicleVirtualWorld(lVehicleID, lWorldID);
SetPlayerVirtualWorld(lPlayerID, lWorldID);
SetPlayerInterior(lPlayerID, 0);
LinkVehicleToInterior(lVehicleID, 0);
PutPlayerInVehicle(lPlayerID, lVehicleID, 0);
On 0.3.DL doesn't work, on 0.3.7 works as it should.
Literally none of that should be affected by the streamer... What's it not doing, and what's going on?
Sew_Sumi is offline   Reply With Quote
Old 08/06/2018, 10:33 AM   #5748
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 288
Reputation: 33
Default Re: Streamer Plugin

Let's take code above for example, on version 0.3.7 it simply works, put me in vehicle, but on 0.3.DL function PutPlayerInVehicle returns 1, vehicle is created, but I can't see vehicle (virtual worlds are the same). When I change my virtual world by a command to 0 and go back to vehicle's world, it's fine, I see vehicles.

I think something is wrong with virtual worlds switching, because if I use default virtual world on version 0.3.DL (0), it works normally. On other worlds, situation repeats as posted above.
ball is offline   Reply With Quote
Old 08/06/2018, 11:05 AM   #5749
Infra
Big Clucker
 
Infra's Avatar
 
Join Date: Feb 2014
Location: Germany
Posts: 85
Reputation: 19
Default Re: Streamer Plugin

The problem is that everytime you change your virtual world your client checks if there are any models that you need to download for that virtual world. Nothing is streamed until OnPlayerFinishedDownloading is called. (even after it got called you need to add a slight delay to put the player in the vehicle...)

http://forum.sa-mp.com/showpost.php?...97&postcount=4

Has nothing to do with the streamer tho..
Infra is offline   Reply With Quote
Old 08/06/2018, 12:03 PM   #5750
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 288
Reputation: 33
Default Re: Streamer Plugin

Oh, that saved my day, thanks.
ball 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 11 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:23 AM.


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