#define MAX_PICK 100,
new PickID = 0;
new Pick[MAX_PICK];
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:Totx,Float:Toty,Float:Totz;
GetPlayerPos(playerid,Totx,Toty,Totz);
Pick[PickID] = CreatePickup(1254,0,Totx,Toty,Totz,-1);
PickID++;
return 1;
}
und beim destroyen
ocmd:destroy(playerid,params[])
{
SendClientMessageToAll(COLOR_BLUE,"/DestroyPickup:O");
for(new i = 0; i <MAX_PICK; i++)
{
DestroyPickup(Pick[i]);
}
return 1;
}
der letz erstellte Pickup verschwindet nur