on player pickup : help - 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)
+--- Thread: on player pickup : help (
/showthread.php?tid=594628)
on player pickup : help -
shadow177 - 21.11.2015
Guys I m having a problem...
I made a pick but its not working fully
The 3d text appears.
Dynamicpickup object also appears but
The game text that should be appear on player pickup is not working
Code :
Www.Pastebin.com/nL155ZbQ
Pls help
Re: on player pickup : help -
AbyssMorgan - 21.11.2015
PHP код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid){
if(pickupid == pickup[7]){
GameTextForPlayer(playerid, "~w~bla bla bla", 5000, 5);
}
return 1;
}
Re: on player pickup : help -
PrO.GameR - 21.11.2015
https://sampwiki.blast.hk/wiki/PickupTypes
Your pickup type is 0:
0
The pickup does not always display. If displayed, it can't be picked up and does not trigger OnPlayerPickUpPickup and it will stay after server shutdown.
Change it's type to 1 and destroy it when picked up
Re: on player pickup : help -
shadow177 - 21.11.2015
Thanx. pro.gamer
And also abyss morgan
But the problem was that is told by the pro.gamer.
Thnx for solution m8