[Ajuda] Pickup sumir individualmente
#3

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