[INFO]ICON
#7

pawn Код:
//at the top of the script
#define DEATH_TIMER 10000 // i seted it 10000 mileseconds (10 seconds) change it to the time you wish

new
    DeathPickup[500];

//under OnPlayerDeath
new Float:dPos[3];
GetPlayerPos(playerid, dPos[0], dPos[1], dPos[2]);
DeathPickup[playerid] = CreatePickup(model, type, dPos[0], dPos[1], dPos[2], Virtualworld);
SetTimerEx("RemoveDeathPickup",DEATH_TIMER,0,"i",playerid);

//somewhere in your script
forward RemoveDeathPickup(playerid);
public RemoveDeathPickup(playerid)
{
    DestroyPickup(DeathPickup[playerid]);
    return 1;
}
A quick code i made this should work

EDIT: I changed the "1" on timer to "0" so the timer is not repeated"
Reply


Messages In This Thread
[INFO]ICON - by TheBluec0de - 13.08.2011, 12:28
Re: [INFO]ICON - by PhoenixB - 13.08.2011, 12:31
Re: [INFO]ICON - by TouR - 13.08.2011, 12:31
Re: [INFO]ICON - by TheBluec0de - 13.08.2011, 12:33
Re: [INFO]ICON - by PhoenixB - 13.08.2011, 12:35
Re: [INFO]ICON - by TheBluec0de - 13.08.2011, 12:38
Re: [INFO]ICON - by TouR - 13.08.2011, 12:41
Re: [INFO]ICON - by PhoenixB - 13.08.2011, 12:42
Re: [INFO]ICON - by TheBluec0de - 13.08.2011, 12:47
Re: [INFO]ICON - by TouR - 13.08.2011, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)