Hey,
mein Deathpickup erstellt sich einfach nicht..
hier mein komplettes system:
bei news:
new deathpickup[MAX_PLAYERS];
bei onplayerconnect:
deathpickup[playerid] = 999;
onplayerdeath:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new vworld = GetPlayerVirtualWorld(playerid);
new waffe, waffenname[32];
waffe = GetWeaponModelIDFromName(waffenname);
format(string,sizeof(string),"† %s †\nMörder: %s\n(%s)",SpielerName(playerid),SpielerName(killerid),aWeaponNames[waffe]);
Create3DTextLabel(string,COLOR_WHITE,x,y,z,10,vworld,0);
deathpickup[playerid] = CreatePickup(1254,1,x,y,z,vworld);
SetTimerEx("deathpickuptimer",1000*60*2,0,"i",playerid);
timer:
forward deathpickuptimer(playerid);
public deathpickuptimer(playerid)
{
DestroyPickup(deathpickup[playerid]);
}
Jemand eine Idee?
//Push