Toyota97 Posted July 29, 2012 Share Posted July 29, 2012 سلام عليكم شباب وش المشكلة هنا ؟ function refreshStats() if guiGetVisible(xxahmadLabel,true) then xxOSAMALabel(xxahmadLabel,"● Your IP : "..getPlayerIP (getLocalPlayer())) else guiSetText(xxahmadLabel,"● Your IP : "..getPlayerIP (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Link to comment
3NAD Posted July 29, 2012 Share Posted July 29, 2012 (edited) إلى سيرفر و حط أكواد الأي بيtrigger سو شنو وظيفته ؟ xxOSAMALabel وبعدين السطر الثالث function refreshStats() if guiGetVisible(xxahmadLabel,true) then xxOSAMALabel(xxahmadLabel,"● Your IP : "..getPlayerIP (getLocalPlayer())) else guiSetText(xxahmadLabel,"● Your IP : "..getPlayerIP (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Edited July 29, 2012 by Guest Link to comment
TAPL Posted July 29, 2012 Share Posted July 29, 2012 ذا سيرفر و أنت حاطه بالكلينت getPlayerIP Link to comment
top sniper Posted July 29, 2012 Share Posted July 29, 2012 (edited) client function refreshStats() if guiGetVisible(xxahmadLabel,true) then triggerServerEvent ( "regserver", getRootElement(), getLocalPlayer() ) else guiSetText(xxahmadLabel,"● Your IP :N/A) end end addEventHandler("onClientRender", getRootElement(), refreshStats) server function regserverf (playerr) triggerClientEvent ( playerr, "regclient", playerr, getPlayerIP ( playerr )) end addEvent( "regserver", true ) addEventHandler( "regserver", getRootElement(), regserverf ) client function regcf (playerrip) guiSetText(xxahmadLabel,"● Your IP : "..playerrip) end addEvent( "regclient", true ) addEventHandler( "regclient", getRootElement(), regscf ) Edited July 29, 2012 by Guest Link to comment
3NAD Posted July 29, 2012 Share Posted July 29, 2012 client function regcf (playerrip) if guiGetVisible(xxahmadLabel,true) then xxOSAMALabel(xxahmadLabel,"● Your IP : "..playerrip) end end addEvent( "regclient", true ) addEventHandler( "regclient", getRootElement(), regscf ) xxOSAMALabel ! why not guiSetText ? Link to comment
Tete omar Posted July 29, 2012 Share Posted July 29, 2012 طيب ليش يا تيوتا تسأل هنا وانا عندك في البيت !؟ Link to comment
top sniper Posted July 29, 2012 Share Posted July 29, 2012 client function regcf (playerrip) if guiGetVisible(xxahmadLabel,true) then xxOSAMALabel(xxahmadLabel,"● Your IP : "..playerrip) end end addEvent( "regclient", true ) addEventHandler( "regclient", getRootElement(), regscf ) xxOSAMALabel ! why not guiSetText ? ما انتبهت لاني ناسخ الكود حقة Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now