Mixters Posted October 11, 2012 Posted October 11, 2012 (edited) Hola, quiero saber si me podrían ayudar con algo simple. que podría usar para que al disparar a un jugador te quite las armas ¿ayudan?. gracias.. Edited October 12, 2012 by Guest Scripter: 5% / 100% En Conocimientos.
Castillo Posted October 11, 2012 Posted October 11, 2012 Te las quite o te cambie de slot a 0? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Mixters Posted October 12, 2012 Author Posted October 12, 2012 Te las quite o te cambie de slot a 0? que cambie los slot a 0 Scripter: 5% / 100% En Conocimientos.
Castillo Posted October 12, 2012 Posted October 12, 2012 addEventHandler ( "onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( hitElement and getElementType ( hitElement ) == "player" ) then setPedWeaponSlot ( localPlayer, 0 ) end end ) Proba eso. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Mixters Posted October 12, 2012 Author Posted October 12, 2012 (edited) Proba eso. ok, Gracias!. ya mismo lo pruebo Edited October 12, 2012 by Guest Scripter: 5% / 100% En Conocimientos.
Mixters Posted October 12, 2012 Author Posted October 12, 2012 lo he probado pero al parecer solo me cambia el arma, si cambio con ''q'' y ''e'' la puedo volver a poner Scripter: 5% / 100% En Conocimientos.
Mixters Posted October 12, 2012 Author Posted October 12, 2012 Te las quite o te cambie de slot a 0? creo que seria mejor que las quite, ya que cambiando los slot no funciono Scripter: 5% / 100% En Conocimientos.
NodZen Posted October 12, 2012 Posted October 12, 2012 (edited) Bueno pues para que quite todas las armas tienes que usar getElementData --Para saber quien le disparo entonces alli quitas el arma takeAllWeapons --para quitar las armas Edited October 12, 2012 by Guest ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Mixters Posted October 12, 2012 Author Posted October 12, 2012 gracias, próbare Scripter: 5% / 100% En Conocimientos.
Mixters Posted October 12, 2012 Author Posted October 12, 2012 tengo problemas con el orden, Podrias ayudarme ? Scripter: 5% / 100% En Conocimientos.
Castillo Posted October 12, 2012 Posted October 12, 2012 Bueno pues para que quite todas las armas tienes que usar getElementData --Para saber quien le disparo entonces alli quitas el arma takeAllWeapons --para quitar las armas getElementData? es un chiste supongo. -- client side: addEventHandler ( "onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( hitElement and getElementType ( hitElement ) == "player" ) then triggerServerEvent ( "takeWeapons", localPlayer ) end end ) -- server side: addEvent ( "takeWeapons", true ) addEventHandler ( "takeWeapons", root, function ( ) takeAllWeapons ( source ) end ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Mixters Posted October 12, 2012 Author Posted October 12, 2012 MUCHISIMAS GRACIAS SOLID ! Scripter: 5% / 100% En Conocimientos.
NodZen Posted October 12, 2012 Posted October 12, 2012 Supones mal. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Castillo Posted October 12, 2012 Posted October 12, 2012 MUCHISIMAS GRACIAS SOLID ! De nada. @NOD: No tiene sentido mencionar esa funcion, el que disparo el arma es el cliente. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
NodZen Posted October 12, 2012 Posted October 12, 2012 Bueno yo le dije por si usa zombies o slothBots. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Castillo Posted October 12, 2012 Posted October 12, 2012 Talvez no le entendiste, porque lo que el queria es que cuando un jugador le dispara a otro, le quite el arma al que disparo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
NodZen Posted October 12, 2012 Posted October 12, 2012 ok! ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Recommended Posts