Pickup id
#1

Does anyone know the command for Carlito's roleplay pickup streamer?

Right now I have things I transfered over to "CreateStreamPickup", but the callback (I think) is still set to "pickupid".
I don't know what's the name I should be replacing these "pickupid's".
Reply
#2

oh here are the pickup objects id's
  • Health 1240
    Armour 1242
    Info icon 1239
    Blue house 1273
    Green house 1272
    Cash 1212
    Adrenaline 1241
    Bribe 1247
    GTA III sign 1248
    Bomb from GTA III 1252
    Photo op 1253
    Skull 1254
    Money icon 1274
    Blue t-shirt 1275
    Save disk 1277
    2 Skulls 1313
    2 Players icon 1314
Reply
#3

Thanks Manu, Saved this...
Reply
#4

That's not what I meant really...

This is what I have :

Quote:

P1 = CreateStreamPickup(1550,3,2194.1262,-2542.4609,21.4924,50);
P2 = CreateStreamPickup(1550,3,304.8517,-1479.0131,24.5938,50);

and these are the (callbacks?) :

Quote:

if(pickupid == P1)
{
new string[128];
Moneybag[playerid] += 1;
GameTextForPlayer(playerid, "You have found a~n~~r~Money Bag~w~ worth ~g~100$!", 5000, 5);
format(string, sizeof(string), "[INFO:] You have found %d/35 Money Bags. Keep searching!", Moneybag[playerid]);
SendClientMessage(playerid, YELLOW, string);
GivePlayerCash(playerid, 100);
}
else if(pickupid == P2)
{
new string[128];
Moneybag[playerid] += 1;
GameTextForPlayer(playerid, "You have found a~n~~r~Money Bag~w~ worth ~g~100$!", 5000, 5);
format(string, sizeof(string), "[INFO:] You have found %d/35 Money Bags. Keep searching!", Moneybag[playerid]);
SendClientMessage(playerid, YELLOW, string);
GivePlayerCash(playerid, 100);
}

I don't really know what's wrong..

Reply
#5

They're not callbacks. You need to paste them in the OnPlayerPickupPickup callback though.
Reply
#6

I don't understand I"m sorry.. Do you mean the entire P1 = CreateStreamPickup?
Reply
#7

pawn Код:
public OnGamemodeInit()
{
  P1 = CreateStreamPickup(1550,3,2194.1262,-2542.4609,21.4924,50);
  P2 = CreateStreamPickup(1550,3,304.8517,-1479.0131,24.5938,50);
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == P1)
  {
  something
  }
if(pickupid == P2)
  {
  something else
  }
}
Reply
#8

That's what I do... but then I can't even pick up the icons. They're set to "2" so they get picked up and then you need to wait mabye 30 seconds for it to respawn.

The icons sit there, and I pick them up... with no affect.
Reply
#9

use type 23
Reply
#10

I'm using 13th's streamer pickup and installed it all into my GM and made the public "OnPlayerPickupStreamPickup".

I have my icons.. ex : Icon = CreateStreamPickup(1111,3,x,y,z,range); in the Gamemodeinit.

I've gotten alot of help so far, but now my icons aren't even working now. My icons don't get messed up with the other icons, but some of moneybag aren't rewarding me properly. My healthpacks don't even work properly either. I don't want to use the "23" either though because that would defeat the purpose of what I need "2" it for.

Edit: Do I really need to make the streamer an include? Parts of the Streamer are already built into the GM.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)