[help] OnPlayerPickUpPickup ~ continous 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: [help] OnPlayerPickUpPickup ~ continous pickup (
/showthread.php?tid=375461)
[help] OnPlayerPickUpPickup ~ continous pickup -
jeffery30162 - 07.09.2012
I create a pickup that opens a dialog with a few things you can select.
when im in the pickup it keeps reopening the dialog when I close it.
is there a way to only pickup the pickup once whithout making it disappear for other players?
Re: [help] OnPlayerPickUpPickup ~ continous pickup -
lamarr007 - 07.09.2012
Change respawn type to 2.
Ex:
pawn Код:
CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
Re: [help] OnPlayerPickUpPickup ~ continous pickup -
jeffery30162 - 07.09.2012
Its a dynamic pickup so it shows for everyone. not just for that player......
I do not want a player to be able to pick it up for another player can't pick it up.
Re: [help] OnPlayerPickUpPickup ~ continous pickup -
micol - 07.09.2012
on the top:
Код:
new buyer[MAX_PLAYERS];
onplayerpickupickup:
Код:
if(buyer[playerid] == 0 && pickupid == NAME_OF_YOUR_PICKUP)
{
buyer[playerid] = 1;
//rest of code
}
return 0;
}
Of course in ondialogresponse you must add when he clicked LMB then buyer must be on 0
like this
Код:
buyer[playerid] = 0;
Gretting, micol. : )
Respuesta: [help] OnPlayerPickUpPickup ~ continous pickup -
jeffery30162 - 07.09.2012
is there any type of player not in range kind of thing?