[help] OnPlayerPickUpPickup ~ continous pickup
#1

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

Change respawn type to 2.
Ex:
pawn Код:
CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
Reply
#3

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.
Reply
#4

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. : )
Reply
#5

is there any type of player not in range kind of thing?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)