[HELP] How can I get a pickup icon ingame?
#1

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

Wiki.
AddStaticPickup
OnPlayerPickupPickup
GameTextForPlayer
Reply
#3

Quote:
Originally Posted by efeX
Wiki.
AddStaticPickup
OnPlayerPickupPickup
GameTextForPlayer
Alright, I have created it, but I cant get text on it...
Reply
#4

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

Then say something like

pawn Код:
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
}
Reply
#5

I think you should use OnPlayerPickUpPickup myself. But if you're creating a Roleplay script, or editing, use PlayerToPoint.
Reply
#6

Yeah, he could easily put it inside OnPlayerPickupPickup without the PTP also.. Just giving him 2 ways.
Reply
#7

also
pawn Код:
GameTextForPlayer(playerid, "You're touching me!", 3, 5)
wont last for 5 seconds.
pawn Код:
GameTextForPlayer(playerid, "You're touching me!", 3, 5000)
that will.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)