hallo wenn ich ein Pickup betrete passiert alles nur das was es soll nicht ich finde keinen fehler aber trozenm kommtz beim todpickup das medic zueg unw.
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == medicheil)
{
heilt1 = SetTimerEx("heil1", 7000, 0, "d", playerid);
heilt2 = SetTimerEx("heil2", 14000, 0, "d", playerid);
heilt3 = SetTimerEx("heil3", 21000, 0, "d", playerid);
}
else if(pickupid == lvpdeinliefern)
{
SetPlayerPos(playerid,205.1727,178.5437,1003.0334);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid,181.4317);
}
else if(pickupid == lvpdraus)
{
if(pInfo[playerid][team] == 1)
{
SetPlayerPos(playerid,2271.1641,2448.7551,3.5313);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,188.9986);
}
}
else if(pickupid == cargopickup)
{
if(pInfo[playerid][team] == 7)
{
GivePlayerWeapon(playerid,46,1);
}
}
return 1;
}