Mix the pickups!
#1

hello, well the problem is that I mix the pickups, the example I have my system properties and giving money to die with a pickup, going for the money tells me what the properties, so I get to ALSO help other pickups etc nose as to not make me mix, thanks! ..
Reply
#2

This is how to control pictures.... PStandard English helps me to understand ... i think no replies because many probably don't understand all i understood was pickups so.... use the link below it will help
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
Reply
#3

the problem is that the pickups are mixed.
Reply
#4

Use a checkpoint manager.
Or use sreamer plugin.
Although you could just use IsPlayerInRangeOfPoint to see if the player is in the right CheckPoint.
Reply
#5

Try to put all pickups into one script rather than multiple scripts. It's not very likely for pickup ids to mix, because CreatePickup returns a pickup id, and there can only really be one of those. There can't be more than 1 pickup id 51 for example. Show us where you are introducing or giving a value to your pickupids, and show your OnPlayerPickUpPickup callback.
Reply
#6

CreateDynamicPickup?
Reply
#7

Make sure you're using the appropriate callback.

Код:
OnPlayerPickUpDynamicPickup(playerid, pickupid);
All the callbacks and streamer functions are in this thread: https://sampforum.blast.hk/showthread.php?tid=102865

Use OnPlayerPickUpDynamicPickup rather than OnPlayerPickUpPickup
Reply
#8

You can use streamer, it makes this extremely easy.
pawn Код:
new givemoneypickup = CreateDynamicPickup(....)
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
         if(pickupid == givemoneypickup)
         {    
                 //Your code like GivePlayerMoney
          }
          return 1;
}
Simple, huh!?
Reply
#9

(facepalm) read the link man the link i showed u a link to read about pickups all u have to do iz look at
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)