Platin Posted February 23, 2015 Posted February 23, 2015 Hola, un ayudita rápida con un script fácil, me dice que thePlayer no es un Ped. serverside function quitarArmas1(thePlayer) if getElementType ( thePlayer ) == "player" then detectar = setTimer(function ( thePlayer ) arma = getPedWeapon (thePlayer) if arma == 38 or arma == 37 or arma == 36 or arma == 35 or arma == 4 or arma == 16 or arma == 17 or arma == 18 or arma == 39 or arma == 40 then takeWeapon( thePlayer, 38 ) takeWeapon( thePlayer, 37 ) takeWeapon( thePlayer, 36 ) takeWeapon( thePlayer, 35 ) takeWeapon( thePlayer, 4 ) takeWeapon( thePlayer, 16 ) takeWeapon( thePlayer, 17 ) takeWeapon( thePlayer, 18 ) takeWeapon( thePlayer, 39 ) takeWeapon( thePlayer, 40 ) outputChatBox("* #FFFFFF¡No se permiten #FF0000Armas Destructoras #FFFFFFen una #FFFF00Boss Fight#FFFFFF!", thePlayer , 255, 0, 0, true) end end, 500, 0) end end línea del error: arma = getPedWeapon (thePlayer) Desde ya, muchas gracias https://www.proyectomila.net @platin
Tomas Posted February 23, 2015 Posted February 23, 2015 function quitarArmas1(thePlayer) if getElementType ( thePlayer ) == "player" then detectar = setTimer(function () arma = getPedWeapon (thePlayer) if arma == 38 or arma == 37 or arma == 36 or arma == 35 or arma == 4 or arma == 16 or arma == 17 or arma == 18 or arma == 39 or arma == 40 then takeWeapon( thePlayer, 38 ) takeWeapon( thePlayer, 37 ) takeWeapon( thePlayer, 36 ) takeWeapon( thePlayer, 35 ) takeWeapon( thePlayer, 4 ) takeWeapon( thePlayer, 16 ) takeWeapon( thePlayer, 17 ) takeWeapon( thePlayer, 18 ) takeWeapon( thePlayer, 39 ) takeWeapon( thePlayer, 40 ) outputChatBox("* #FFFFFF¡No se permiten #FF0000Armas Destructoras #FFFFFFen una #FFFF00Boss Fight#FFFFFF!", thePlayer , 255, 0, 0, true) end end, 500, 0) end end Currently developing for International Gaming Community - Join us!
Platin Posted February 23, 2015 Author Posted February 23, 2015 function quitarArmas1(thePlayer) if getElementType ( thePlayer ) == "player" then detectar = setTimer(function () arma = getPedWeapon (thePlayer) if arma == 38 or arma == 37 or arma == 36 or arma == 35 or arma == 4 or arma == 16 or arma == 17 or arma == 18 or arma == 39 or arma == 40 then takeWeapon( thePlayer, 38 ) takeWeapon( thePlayer, 37 ) takeWeapon( thePlayer, 36 ) takeWeapon( thePlayer, 35 ) takeWeapon( thePlayer, 4 ) takeWeapon( thePlayer, 16 ) takeWeapon( thePlayer, 17 ) takeWeapon( thePlayer, 18 ) takeWeapon( thePlayer, 39 ) takeWeapon( thePlayer, 40 ) outputChatBox("* #FFFFFF¡No se permiten #FF0000Armas Destructoras #FFFFFFen una #FFFF00Boss Fight#FFFFFF!", thePlayer , 255, 0, 0, true) end end, 500, 0) end end ¿Gracias? lol https://www.proyectomila.net @platin
Tomas Posted February 23, 2015 Posted February 23, 2015 Funciona o no? Currently developing for International Gaming Community - Join us!
Platin Posted February 23, 2015 Author Posted February 23, 2015 Funciona o no? Copiaste lo mismo que puse. Creo que flasheaste. https://www.proyectomila.net @platin
Tomas Posted February 23, 2015 Posted February 23, 2015 Nope, compara las lineas 4. Currently developing for International Gaming Community - Join us!
Calculador Posted February 24, 2015 Posted February 24, 2015 Creo que te podría ser más útil usar la función: takeAllWeapons
Platin Posted February 24, 2015 Author Posted February 24, 2015 (edited) Nope, compara las lineas 4. Ah, ni se notaba. No me sirvio igual, pero gracias. Creo que te podría ser más útil usar la función: takeAllWeapons Eso no me va a ayudar, no quiero que pelen sin armas contra un boss, quiero que pelen sin miniguns, ni cuchillos, etc. EDIT: Si funciono, edite la linea incorrecta, gracias Tomas, siempre ayudandome Edited February 24, 2015 by Guest https://www.proyectomila.net @platin
Tomas Posted February 24, 2015 Posted February 24, 2015 De nada Currently developing for International Gaming Community - Join us!
Recommended Posts