Plate Posted April 23, 2013 Posted April 23, 2013 Hola tengo una duda si se puede hacer esto function destroyThePickup(thePickup) if (isElement(thePickup)) then if (source == thePickup) then setTimer(destroyElement, 1000, 1, thePickup) end end end addEventHandler("onPickupHit", getRootElement(), destroyThePickup) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
MTA Team 0xCiBeR Posted April 23, 2013 MTA Team Posted April 23, 2013 Pues puede que te ande(al menos eso parece a simple vista)... Igualmente lo cambiaria asi: function destroyThePickup(thePickup) if isElement(thePickup) then if (source == thePickup) then setTimer(destroyElement, 1000, 1, thePickup) end end end addEventHandler("onPickupHit", getRootElement(), destroyThePickup) DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Plate Posted April 23, 2013 Author Posted April 23, 2013 Es que pregunte por que nose si el argumento thePickup existe lo demas anda ya lo testee Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Plate Posted April 23, 2013 Author Posted April 23, 2013 Ya lo solucione era muy simple :3 gracias por tu ayuda igual Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Sasu Posted April 23, 2013 Posted April 23, 2013 Por que no te fijas la wiki y ya ._.? State: Inactive
Plate Posted April 23, 2013 Author Posted April 23, 2013 Nose ! Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Recommended Posts