SA-MP Forums Archive
Icon - How do you add it ? - 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: Icon - How do you add it ? (/showthread.php?tid=122543)



Icon - How do you add it ? - Chivava - 22.01.2010

Hello i got 2 points that i need to add a simple icon when you gets near it it types
Material Pickup
And so on...

But this is the picture of how i want it to look alike..
Can anyone help me with how to add it ?



Re: Icon - How do you add it ? - Stig - 22.01.2010

AddStaticPickup( 1239, 2, 414.5717,2532.4011,16.5815);




Peace....


Re: Icon - How do you add it ? - J.W. - 22.01.2010

Quote:
Originally Posted by Stig
AddStaticPickup( 1239, 2, 414.5717,2532.4011,16.5815);




Peace....
Wrong, he want to show a message when a player is at the pickup.
__

I would suggest you to check those links

https://sampwiki.blast.hk/wiki/Pickup_help
https://sampwiki.blast.hk/wiki/Game_Object_ID_List
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
https://sampwiki.blast.hk/wiki/SendClientMessage



Re: Icon - How do you add it ? - Chivava - 22.01.2010

Found out how to add the icon just not how to make the text.


Re: Icon - How do you add it ? - SiJ - 22.01.2010

Quote:
Originally Posted by Chivava
Found out how to add the icon just not how to make the text.
use:

[pawn]
//set a timer:
public PickupCheck(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,pickupX,pi ckupY,pickupZ)
{
SendClientMessage(playerid......);
}
}


Re: Icon - How do you add it ? - Jakku - 22.01.2010

Quote:
Originally Posted by SiJ
Quote:
Originally Posted by Chivava
Found out how to add the icon just not how to make the text.
use:

[pawn]
//set a timer:
public PickupCheck(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,pickupX,pi ckupY,pickupZ)
{
SendClientMessage(playerid......);
}
}
Why not just use OnPlayerPickupPickUp?


Re: Icon - How do you add it ? - Chivava - 22.01.2010

Does it matter where i add those lines ? Just at Addstaticpickup ?