Giter VIP home page Giter VIP logo

sampsharp-streamer's Introduction

Streamer wrapper for SampSharp

AppVeyor

A wrapper of the popular SA-MP streamer plugin for SampSharp.

sampsharp-streamer's People

Contributors

agustinibanez00 avatar aleksejskovalcuks avatar duydang2311 avatar eidorian avatar ikkentim avatar ldami avatar somedevil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sampsharp-streamer's Issues

DynamicObject.Edit doesn't work

public virtual void Edit(GtaPlayer player)
{
    AssertNotDisposed();

    Native.EditPlayerObject(player.Id, Id);
}

should use streamer's EditObject.

Add support for streamer 2.9.5

Changes in streamer 2.9.4/2.9.5:

native RemoveDynamicObjectMaterial(STREAMER_TAG_OBJECT:objectid, materialindex);
native RemoveDynamicObjectMaterialText(STREAMER_TAG_OBJECT:objectid, materialindex);
forward Streamer_OnItemStreamIn(type, STREAMER_ALL_TAGS:id, forplayerid); //forplayerid added
forward Streamer_OnItemStreamOut(type, STREAMER_ALL_TAGS:id, forplayerid); //forplayerid added
native Streamer_RemoveIntData(type, STREAMER_ALL_TAGS:id, data);
native Streamer_HasIntData(type, STREAMER_ALL_TAGS:id, data);
native Streamer_HasArrayData(type, STREAMER_ALL_TAGS:id, data);

Various streamer errors

*** Streamer Plugin: Streamer_SetFloatData: Invalid data specified
*** Streamer Plugin: Streamer_GetFloatData: Invalid data specified

Also, after i edit a DynamicObject as a Player, the position coordinates are invalid.

Callbacks PickedUp does not work

Initialize:

PickedUp += CPickup_PickedUp;

Callbacks:

// heritable class  : DynamicPickup

private void CPickup_PickedUp(object sender, PlayerEventArgs e)
{
 // doesn't work
}

public override void OnPickedUp(PlayerEventArgs e)
{
 // doen't work
}

Pickup types tested: 1, 21, 23

PlayerEditEventArgs.EditObjectResponse

...is redundant since PlayerEditEventArgs.Response is the used property and PlayerEditEventArgs.EditObjectResponse is always EditObjectResponse.Cancel

SetMaterialText passes forecolor and backcolor as RGBA rather than ARGB.

Workaround:

    public new void SetMaterialText(int materialid, string text, ObjectMaterialSize materialSize = ObjectMaterialSize.X256X128, string fontface = "Arial", int fontsize = 24, bool bold = true, Color fontcolor = default(Color), Color backcolor = default(Color), ObjectMaterialTextAlign textalignment = ObjectMaterialTextAlign.Center)
    {
        StreamerNative.SetDynamicObjectMaterialText(this.Id, materialid, text, materialSize, fontface, fontsize, bold, fontcolor.ToInteger(ColorFormat.ARGB), backcolor.ToInteger(ColorFormat.ARGB), ObjectMaterialTextAlign.Center);
    }

Streamer.Update() not working on 0.10.0

I don't know if theres another way to update streamer world for a player on 0.10.0, if someone knows please tell me, btw, I keep it working on 0.9.0 (I reverted update).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.