17.07.2013, 17:23
OnPlayerDeath I am creating pickups like so
I assumed I could delete all of the pickups by doing
But this doesn't seem to work. What am I doing wrong? Any help will be appreciated.
pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
pDeathInfo[counter][pickupID] = CreatePickup(1254, 1, X, Y, Z, -1);
pDeathInfo[counter][playerID] = playerid;
pDeathInfo[counter][playerTeam] = GetPlayerTeam(playerid);
pDeathInfo[counter][killerWeapon] = GetPlayerWeapon(killerid);
counter++;
pawn Код:
for(new j = 0; j < MAX_PICKUPS; j++)
{
DestroyPickup(pDeathInfo[j][pickupID]);
}