12.12.2012, 17:14
pawn Код:
#include <a_samp>
new Moneys;
new Cashdrop1;
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerMoney(playerid) > 0)
{
Moneys = GetPlayerMoney(playerid)/5;
ResetPlayerMoney(playerid);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
Cashdrop1 = CreatePickup(1550,4,x,y,z-0.8);
}
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Cashdrop1) GivePlayerMoney(playerid,Moneys), DestroyPickup(Cashdrop1);
return 1;
}
i got this one https://sampforum.blast.hk/showthread.php?tid=156722 and it shows(moneybag) the half of it in the ground the other above
Thanks, Sorry for bad english.