samedi 23 juillet 2016

Simple help

I created a money drop.

PHP Code:

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 ha to be destroyed after picking it up.

Who can help me?

Let's block ads! (Why?)



Simple help

Aucun commentaire:

Enregistrer un commentaire