[Ajuda] Pickup sumir individualmente
#4

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.
Reply


Messages In This Thread
Pickup sumir individualmente - by blastdap - 16.07.2015, 16:26
Re: Pickup sumir individualmente - by Luucass - 16.07.2015, 16:27
Re: Pickup sumir individualmente - by zPain - 16.07.2015, 16:38
Re: Pickup sumir individualmente - by blastdap - 17.07.2015, 02:22

Forum Jump:


Users browsing this thread: 1 Guest(s)