Quote:
Originally Posted by zPain
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; }
Basicamente, essa й a lуgica.
|
Eu tinha usado o pickup id em vez de playerid, irei testar essa logica ae, se der certo eu mando um recado, obrigado.