Chaz-CR Posted June 30, 2013 Posted June 30, 2013 Hola quiero saber como hacer para que estos mensajes sean solo para el player y no para todos los players del server. Cuando alguno llega donde salen esos textos, todos los players lo ven en el DxDraw aca la parte de los mensajes! addEvent("youMustBeInCar", true) function drawIt() failed = "Tienes qe estar en un vehiculo para tunearlo / You must be in Vehicle to do this" exports["drawData"]:outputDraw(failed, 255, 0, 0) end addEventHandler("youMustBeInCar", root, drawIt) addEvent("yourVehicleIsTuned", true) function drawIt2() succeed = "Vehiculo tuneado! / Vehiculo tuned!" exports["drawData"]:outputDraw(succeed, 0, 255, 0) end addEventHandler("yourVehicleIsTuned", root, drawIt2) ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Castillo Posted June 30, 2013 Posted June 30, 2013 La funcion: "outputDraw" del recurso "drawData" que argumentos tiene? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Chaz-CR Posted June 30, 2013 Author Posted June 30, 2013 Es el drawData de OGF pero lo encripto y no puedo ver lo unico que dejo para modificar fue esto! drawSize = get( "dxtextsize" ) function serverSettings (theplayer) triggerClientEvent ( theplayer, "settings", theplayer, drawSize ) end addEvent ( "getServerSettings", true ) addEventHandler ( "getServerSettings", root, serverSettings ) Y el meta ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Castillo Posted June 30, 2013 Posted June 30, 2013 Creo que el script no tiene para que solo se envie a un jugador. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Chaz-CR Posted June 30, 2013 Author Posted June 30, 2013 De acuerdo ni modo. Gracias! ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Castillo Posted June 30, 2013 Posted June 30, 2013 Igual, podrias crear tu propia funcion. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Chaz-CR Posted June 30, 2013 Author Posted June 30, 2013 Si vere si en vez de eso, hago un Shout para el player cuando pase por el marker! ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
NodZen Posted June 30, 2013 Posted June 30, 2013 Es el drawData de OGF pero lo encripto y no puedo ver Entonces es robado? ------------------------------------------------------------------------------------------ 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
Chaz-CR Posted June 30, 2013 Author Posted June 30, 2013 Es publico... ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Sasu Posted June 30, 2013 Posted June 30, 2013 Puedes ejecutarlo desde server side solo para un jugador. Por ejemplo: --Server addEventHandler("onVehicleEnter", root, function(player) local name = getVehicleNameFromId(getElementModel(source)) triggerClientEvent(player, "onRequestDraw", player, "Has entrado al vehiculo "..name) end ) --Client addEvent("onRequestDraw", true) addEventHandler("onRequestDraw", root, function(text) exports["drawData"]:outputDraw(text, 0, 255, 0) end ) Esto hara que cuando un jugador entre a un vehiculo, le informe el nombre del vehiculo en color verde ( 0, 255, 0 ). Espero te ayude! State: Inactive
Chaz-CR Posted July 2, 2013 Author Posted July 2, 2013 Gracias Sasuke puDe crear uno parecido a ese! ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Recommended Posts