Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --outputChatBox("#00ff00[Z-E]#FFFFFF Script de dropeo activado, usa /drop para utilizarlo", getRootElement(),255, 255, 255, true)
- addCommandHandler("drop", function(thePlayer)
- x, y, z = getElementPosition(thePlayer)
- arma = getPedWeapon (thePlayer)
- municion = getPedTotalAmmo(thePlayer)
- nombre = getWeaponNameFromID (arma)
- if arma > 1 then
- takeWeapon(thePlayer, arma)
- takeWeaponAmmo (thePlayer, arma, municion )
- pickup = createPickup(x, y+2, z, 2, arma, 0, municion)
- outputChatBox("#00ff00[Z-E]#FFFFFF Has soltado el arma "..nombre, thePlayer, 255, 255, 255, true)
- else
- end
- addEventHandler("onPickupUse", pickup, function (thePlayer)
- arma = getPedWeapon (thePlayer)
- municion = getPedTotalAmmo(thePlayer,arma,municion)
- dar = giveWeapon (thePlayer, arma, municion)
- destruir = destroyElement(source)
- limpiar()
- end)
- end)
- function limpiar ()
- destroyElement(pickup)
- end
- setTimer(limpiar,30000,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement