Simple help
#1

I created a money drop.

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    new 
Float:x,Float:y,Float:z;
    
ResetPlayerMoney(playerid);
      
GetPlayerPos(playerid,x,y,z);
    
cash CreatePickup(1212,3,x,y,z);
    
cash2 CreatePickup(1212,3,x+1,y,z);
    
cash3 CreatePickup(1212,3,x-1,y,z);
    
cash4 CreatePickup(1212,3,x,y+1,z);
    
cash5 CreatePickup(1212,3,x,y-1,z);

The problem is:

I pick the money up but after I died again, the money will stay in that position. So it has to be destroyed after picking it up.

Who can help me?
Reply
#2

Код:
public OnPlayerDeath(playerid, killerid, reason) 
{ 
    new Float:x,Float:y,Float:z; 
    ResetPlayerMoney(playerid); 
    GetPlayerPos(playerid,x,y,z); 
    return 1;
}
Reply
#3

Use type 8 instead of 3.
Reply
#4

nope type 8 is the sound id.
Reply
#5

What do you mean?
https://sampwiki.blast.hk/wiki/PickupTypes

Quote:

8 Disappears after pickup, but has no effect.

It is possible that the wiki is wrong though.
Reply
#6

Changing 3 to 8 doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)