SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 05/06/2009, 10:01 PM   #1
FreddeN
Huge Clucker
 
Join Date: May 2009
Posts: 370
Reputation: 0
Default [HELP] How can I get a pickup icon ingame?

I want a Health icon so players can run into it and get healed, also some Info icons, if a player goes in it, it will pop up a text that says "To enter, type /entersfpd" or something...

Thanks
FreddeN is offline  
Old 05/06/2009, 10:03 PM   #2
efeX
Big Clucker
 
Join Date: Jun 2009
Posts: 64
Reputation: 0
Default Re: [HELP] How can I get a pickup icon ingame?

Wiki.
AddStaticPickup
OnPlayerPickupPickup
GameTextForPlayer
efeX is offline  
Old 05/06/2009, 10:08 PM   #3
FreddeN
Huge Clucker
 
Join Date: May 2009
Posts: 370
Reputation: 0
Default Re: [HELP] How can I get a pickup icon ingame?

Quote:
Originally Posted by efeX
Wiki.
AddStaticPickup
OnPlayerPickupPickup
GameTextForPlayer
Alright, I have created it, but I cant get text on it...
FreddeN is offline  
Old 05/06/2009, 10:12 PM   #4
efeX
Big Clucker
 
Join Date: Jun 2009
Posts: 64
Reputation: 0
Default Re: [HELP] How can I get a pickup icon ingame?

Get PlayerToPoint function (search, i'm not on my comp with pawn)

Then say something like

pawn Code:
if (PlayerToPoint(5.0, playerid, thepickupX, thepickupY, thepickupZ))
{
   GameTextForPlayer(playerid, "You're touching me!", 3, 5) <- last 2 parameters are text style and time, wiki shows those under Script Resources
}
efeX is offline  
Old 05/06/2009, 10:15 PM   #5
Abernethy
Gangsta
 
Join Date: May 2009
Posts: 898
Reputation: -1
Default Re: [HELP] How can I get a pickup icon ingame?

I think you should use OnPlayerPickUpPickup myself. But if you're creating a Roleplay script, or editing, use PlayerToPoint.
Abernethy is offline  
Old 05/06/2009, 10:19 PM   #6
efeX
Big Clucker
 
Join Date: Jun 2009
Posts: 64
Reputation: 0
Default Re: [HELP] How can I get a pickup icon ingame?

Yeah, he could easily put it inside OnPlayerPickupPickup without the PTP also.. Just giving him 2 ways.
efeX is offline  
Old 05/06/2009, 11:41 PM   #7
Badger(new)
Huge Clucker
 
Badger(new)'s Avatar
 
Join Date: May 2008
Posts: 354
Reputation: 4
Default Re: [HELP] How can I get a pickup icon ingame?

also
pawn Code:
GameTextForPlayer(playerid, "You're touching me!", 3, 5)
wont last for 5 seconds.
pawn Code:
GameTextForPlayer(playerid, "You're touching me!", 3, 5000)
that will.
__________________
New profile- http://forum.sa-mp.com/member.php?u=170114
Badger(new) is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Ingame Bots?? And Then play them ingame? asdfgh98 Help Archive 2 16/12/2009 12:30 PM
about time and pickup icon. arachimi Help Archive 5 12/12/2009 06:48 PM
there is no pickup icon Medzmara Help Archive 3 24/10/2009 10:07 AM
Place Map Icon On Top Of Pickup ??? Alec24 Help Archive 8 23/03/2009 07:59 PM
Unknown Pickup Icon? ReV. Help Archive 3 20/03/2009 11:29 PM


All times are GMT. The time now is 03:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.