[Include] [INC] Carlton's Pickup Streamer - 23 functions | Smooth streaming.
#1

- Quick Chat -

Hello everyone, this is my 4th release, and i've been working on this streamer for about 3-4 days. I just wan't say something i've learned:

- Quick paragraph everyone should read -

I decided to quit making this project because I couldn't get it to work. I thought it was impossible. Then, I decided to go back to this project and do it again. I decided to not give up on what i'm doing. So the thing i'm saying is: "You can make anything you want, if you try your best"

Anyway, this streamer is very useful because of the amount of functions in it. Here's a list of the functions
- Functions -
Quote:
Originally Posted by The Pickup Streamer
/**
*
* Carlton's Pickup Streamer.
*
* @Author - Carlton
* @Copyright - 2010
* @Contact - Carltonr88@gmail.com | MSN & EMAIL
*
* Functions
* native IsAValidStreamedPickup(id);
* native DestroyStreamedPickup(id);
* native CreateStreamedPickup(id,ModelID,type,Float,Float :y,Float:z,VW,Float:range);
* native ToggleStreamedPickup(id, bool:Toggle);
* native ChangeStreamedPickupPos(id, Float, Float:y, Float:z);
* native ChangeStreamedPickupRange(id, Float:range);
* native ChangeStreamedPickupVW(id, VW);
* native ChangeStreamedPickupType(id, type);
* native ChangeStreamedPickupModel(id, ModelID);
* native OnPlayerEnterStreamedPickup(playerid, id);
* native OnPickupStreamerInit(playerid);
* native OnPickupStreamerExit(playerid);
* native ReloadStreamedPickups(playerid);
* native CountStreamedPickups();
* native DestroyAllStreamedPickups();
* native DisableAllStreamedPickups();
* native EnableAllStreamedPickups();
* native GetStreamedPickupModel(id);
* native GetStreamedPickupType(id);
* native GetStreamedPickupVW(id);
* native IsPlayerInAnyStreamedPickup(playerid);
* native IsPlayerInStreamedPickup(playerid, pickupid);
* native IsPlayerInStreamedPickupEx(playerid, pickupid); - Use to get range.
*
*/
All of the functions can easily be understood by simply reading the function names. So, I will not explain them one by one like my icon streamer. To install it, read below.

- Installation -
- In OnPlayerConnect add: OnPickupStreamerInit(playerid);
- In OnPlayerDisconnect add: OnPickupStreamerExit(playerid);
- Add
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
      if(IsAValidStreamedPickup(pickupid)) {
         OnPlayerEnterStreamedPickup(playerid, pickupid);
      }
      return 1;
}

forward OnPlayerEnterStreamedPickup(playerid, id);
public OnPlayerEnterStreamedPickup(playerid, id) {

}
Anywhere.
- Enjoy.

- Download -
http://pastebin.com/30d9U7gv

Enjoy, report any bugs that you find they will be fixed right away.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)