16.07.2015, 16:38
pawn Код:
static deathPickup[MAX_PLAYERS];
forward deleteDeathPickup(playerid);
public OnPlayerDeath(playerid, killerid, reason) {
static Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
deathPickup[playerid] = CreatePickup(model, type, x, y, z, -1);
SetTimerEx("deleteDeathPickup", 5000, 0, "i", playerid);
return 1;
}
public deleteDeathPickup(playerid) {
DestroyPickup(deathPickup[playerid]);
return 1;
}