Arsilex Posted September 26, 2012 Share Posted September 26, 2012 addEventHandler("onClientPlayerJoin",getRootElement(), function () addEventHandler("onClientRender",getRootElement(),Mova) triggerEvent ( "onSpecialEvent", getRootElement()) end ) como hacer que estos eventos se ejecuten solo a la persona que acaba de entrar ? S: Link to comment
Renkon Posted September 26, 2012 Share Posted September 26, 2012 localPlayer en vez de getRootElement en los tres casos. Link to comment
BorderLine Posted September 26, 2012 Share Posted September 26, 2012 cambia el getRootElement de onClientPlayerJoin por getLocalPlayer() Link to comment
Arsilex Posted September 26, 2012 Author Share Posted September 26, 2012 no hace nada sigue sin aparecer cuando entro Link to comment
Alexs Posted September 26, 2012 Share Posted September 26, 2012 Postea las funciones. Link to comment
Arsilex Posted September 26, 2012 Author Share Posted September 26, 2012 addEvent ( "onSpecialEvent", true ) function specialEventHandler() Espanol = guiCreateButton(616,76,139,68,"",false) En = guiCreateButton(616,153,139,68,"",false) Ru = guiCreateButton(616,228,139,68,"",false) Br = guiCreateButton(616,298,139,68,"",false) pr = guiCreateButton(616,371,139,68,"",false) fr = guiCreateButton(616,448,139,68,"",false) guiSetAlpha(Espanol,0) guiSetAlpha(En,0) guiSetAlpha(Ru,0) guiSetAlpha(Br,0) guiSetAlpha(pr,0) guiSetAlpha(fr,0) addEventHandler ( "onClientGUIClick", Espanol, Es, false ) addEventHandler ( "onClientGUIClick", En, Ingles, false ) end addEventHandler ( "onSpecialEvent", root, specialEventHandler ) -- Direct X Drawing function Mova() dxDrawRectangle(547.0,63.0,275.0,467.0,tocolor(0,0,0,220),true) dxDrawImage(616.0,449.0,139.0,67.0,"images/fr.png",0.0,0.0,0.0,tocolor(255,255,255,255),true) dxDrawImage(616.0,376.0,141.0,63.0,"images/pr.png",0.0,0.0,0.0,tocolor(255,255,255,255),true) dxDrawImage(616.0,304.0,139.0,62.0,"images/br.png",0.0,0.0,0.0,tocolor(255,255,255,255),true) dxDrawImage(616.0,228.0,139.0,66.0,"images/ru.png",0.0,0.0,0.0,tocolor(255,255,255,255),true) dxDrawImage(616.0,153.0,139.0,65.0,"images/en.png",0.0,0.0,0.0,tocolor(255,255,255,255),true) dxDrawImage(616.0,76.0,139.0,67.0,"images/es.png",0.0,0.0,0.0,tocolor(255,255,255,255),true) end addEventHandler("onClientPlayerJoin", getLocalPlayer(), function () addEventHandler("onClientRender", getRootElement(), Mova) triggerEvent ( "onSpecialEvent", getRootElement()) end ) Link to comment
Arsilex Posted September 27, 2012 Author Share Posted September 27, 2012 alguen me ayuda o que? Link to comment
Recommended Posts