Pickup - 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: Pickup (
/showthread.php?tid=352214)
Pickup -
StrangeLove - 18.06.2012
How not to destroy the pickup after getting it? It should be still there.
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MyPickup)
{
GivePlayerWeapon(playerid, 10, 20);
return 1;
}
return 1;
}
Re: Pickup -
Kindred - 18.06.2012
You don't want the pickup to be removed when you walk over it? Change the pickup type to 1, which makes it so it does not disappear (unless destroyed, of course)
Re: Pickup -
ViniBorn - 18.06.2012
DestroyPickup will destroy permanently
Re: Pickup -
tiernantheman - 18.06.2012
Quote:
Originally Posted by MrSurfur1
How not to destroy the pickup after getting it? It should be still there.
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == MyPickup) { GivePlayerWeapon(playerid, 10, 20); return 1; } return 1; }
|
For MyPickup the CreatePickup You need to set it to a different type so that it dosent go away. Check this and click on it and on that you will see The Pickup Spawn Type. Thats what you need to change.
https://sampwiki.blast.hk/wiki/CreatePickup Click on "The Pickup Spawn Type" and it will re-direct you to the spawn types.
Re: Pickup -
StrangeLove - 18.06.2012
Ok Thanks!
Re: Pickup -
StrangeLove - 19.06.2012
I have another question, let me ask in this thread instead of making a new thread because it's relevant to it.
How to make the pickup visible to a specific team? I got the same code up there.
Re: Pickup -
Kindred - 19.06.2012
Pretty sure you can't make a player see a pickup, while others can't. The pickup is made for everyone, so you can't.
Correct me if I'm wrong.
Re: Pickup -
StrangeLove - 19.06.2012
Oh ok thanks