Pickup Help - 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 Help (
/showthread.php?tid=331233)
Pickup Help -
Dr - 04.04.2012
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
new file[256];
dini_IntSet(file, "Money", PlayerInfo[playerid][pMoney] += 60);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
DestroyPickup(pickupid);
return 1;
}
But the pickup isnt destroyed? Why?
Re: Pickup Help -
DeathTone - 04.04.2012
I think you gotta use
DestroyDynamicPickup(pickupid);
Re: Pickup Help -
FalconX - 04.04.2012
Quote:
Originally Posted by Dr
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid) { new file[256]; dini_IntSet(file, "Money", PlayerInfo[playerid][pMoney] += 60); ResetPlayerMoney(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]); DestroyPickup(pickupid); return 1; }
But the pickup isnt destroyed? Why?
|
because if you are using the streamer plugin and including it in your gamemode or filterscript you have to use the following function rather then using the default PickUp Destroying function.
pawn Код:
native DestroyDynamicPickup(pickupid);
-FalconX