Pickup id - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pickup id (
/showthread.php?tid=79556)
Pickup id -
Snyper - 29.05.2009
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".
Re: Pickup id -
mannu - 29.05.2009
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
Re: Pickup id -
Castle - 29.05.2009
Thanks Manu, Saved this...
Re: Pickup id -
Snyper - 29.05.2009
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..
Re: Pickup id -
Weirdosport - 29.05.2009
They're not callbacks. You need to paste them in the OnPlayerPickupPickup callback though.
Re: Pickup id -
Snyper - 29.05.2009
I don't understand I"m sorry.. Do you mean the entire P1 = CreateStreamPickup?
Re: Pickup id -
dice7 - 29.05.2009
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
}
}
Re: Pickup id -
Snyper - 29.05.2009
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.
Re: Pickup id -
Gamer007 - 29.05.2009
use type 23
Re: Pickup id -
Snyper - 30.05.2009
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.