SA-MP Forums Archive
[HELP]Need help with pickups - 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: [HELP]Need help with pickups (/showthread.php?tid=84942)



[HELP]Need help with pickups - [CK]Steel - 04.07.2009

I need some help over with the "i" thing that appears on RP servers in which when you go through them something will appear saying, "/enter". I need help, in which, How do I script it in so that the "i" will appear in the "x, y, z" location I prefer. And so that it shows up, "Type /enter to go inside". I'll appreciate if you can help me with this.

Thanks


Re: [HELP]Need help with pickups - saiberfun - 04.07.2009

well
Ontop of Script
new pu;

just use pu = CreatePickup(blah...) on OnFSInit
the id for the Infosign is
1239 - info icon

and then OnPlayerPickUpPickup
if(pickupid == pu)
{
ur function
}


Re: [HELP]Need help with pickups - [CK]Steel - 04.07.2009

Mhm, Kay thanks. But, I'll see what I can do though. I'll reply to see if it works.


Re: [HELP]Need help with pickups - Anarkien - 04.07.2009

This is for the pickup:
pawn Код:
public OnGameModeInit( )
{
  AddStaticPickup(1239, 2, x,y,z );
  return 1;
}
1239 = info icon
2 = "Pickupable, respawns after some time."
x,y,z = your coords

Read here too: https://sampwiki.blast.hk/wiki/GameTextForPlayer


Re: [HELP]Need help with pickups - [CK]Steel - 04.07.2009

Quote:
Originally Posted by Anarkien
This is for the pickup:
pawn Код:
public OnGameModeInit( )
{
  AddStaticPickup(1239, 2, x,y,z );
  return 1;
}
1239 = info icon
2 = "Pickupable, respawns after some time."
x,y,z = your coords

Read here too: https://sampwiki.blast.hk/wiki/GameTextForPlayer
Thank you. I wish we could +rep people lol. Well anyways, Yup. Thanks man.


how to get car location ? - martynas_jet - 09.07.2009

how to get car location? please help me


Re: [HELP]Need help with pickups - lavamike - 09.07.2009

Wouldn't you want to set the type to 23? (Pickupable, but doesn't disappear on pickup.)

If you use 2, it will disappear when you go up to it