PHP Code:
public OnPlayerDeath(playerid, killerid, reason)
{
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);
}
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?
Simple help
Aucun commentaire:
Enregistrer un commentaire