[HELP]Need help with pickups
#1

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
Reply
#2

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
}
Reply
#3

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

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
Reply
#5

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.
Reply
#6

how to get car location? please help me
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)