Tach,
Ich erhalte beim durchlaufen meines Pickups keine Deagle.
if(listitem == 2)
{
if(deaglepoint[playerid] == 0)
{
// Deagle Point erstellen
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
deaglepickup = AddStaticPickup(348, 1, x, y, z, 0);
deaglepoint[playerid]=1;
}
else if(deaglepoint[playerid] == 1)
{
// Entfernen
DestroyPickup(deaglepickup);
deaglepoint[playerid]=0;
}
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == armorpickup)
{
SetPlayerArmour(playerid, 100);
}
else if(pickupid == healpickup)
{
SetPlayerHealth(playerid, 100);
}
else if(pickupid == deaglepickup)
{
GivePlayerWeapon(playerid, 24, 900);
}
return 1;
}