Mix the pickups! - 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: Mix the pickups! (
/showthread.php?tid=408452)
Mix the pickups! -
SaiB0T - 18.01.2013
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! ..
Re: Mix the pickups! -
Glad2BeHere - 18.01.2013
This is how to control pictures.... PS
tandard 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
Respuesta: Mix the pickups! -
SaiB0T - 18.01.2013
the problem is that the pickups are mixed.
Re: Mix the pickups! -
DaRk_RaiN - 18.01.2013
Use a checkpoint manager.
Or use sreamer plugin.
Although you could just use IsPlayerInRangeOfPoint to see if the player is in the right CheckPoint.
Re: Mix the pickups! -
Threshold - 18.01.2013
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.
Respuesta: Mix the pickups! -
SaiB0T - 18.01.2013
CreateDynamicPickup?
Re: Mix the pickups! -
Threshold - 18.01.2013
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
Re: Mix the pickups! -
RajatPawar - 18.01.2013
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!?
Re: Mix the pickups! -
Glad2BeHere - 18.01.2013
(facepalm) read the link man the link i showed u a link to read about pickups all u have to do iz look at