nony Posted October 10, 2012 Share Posted October 10, 2012 السلام عليكم ورحمه الله وبركاته يا شباب وش الخطأ في كود الاي بي؟ PlayerIp = guiCreateLabel(10,200,300,20,'',false,GUIEditor_Tab[1]) guiLabelSetColor(PlayerIp,255,255,0) addEventHandler("onClientRender",root, function() guiSetText(PlayerIp,"Your IP : "..getPlayerIp(localPlayer)) end) Link to comment
Tete omar Posted October 10, 2012 Share Posted October 10, 2012 (edited) السلام عليكم ورحمه الله وبركاتهيا شباب وش الخطأ في كود الاي بي؟ PlayerIp = guiCreateLabel(10,200,300,20,'',false,GUIEditor_Tab[1]) guiLabelSetColor(PlayerIp,255,255,0) addEventHandler("onClientRender",root, function() guiSetText(PlayerIp,"Your IP : "..getPlayerIp(localPlayer)) end) getPlayerIp ? و كلنت ؟؟؟؟؟؟؟؟ جرب سيرفر addEvent("getIP",true) addEventHandler("getIP",root, function() local theIP=getPlayerIP(client) triggerClientEvent(client,"dd",client,theIP) end) كلنت PlayerIp = guiCreateLabel(10,200,300,20,'',false,GUIEditor_Tab[1]) guiLabelSetColor(PlayerIp,255,255,0) addEventHandler("onClientRender",root, function() triggerServerEvent("getIP",localPlayer) end) addEvent("dd",true) addEventHandler("dd",root, function(theIP) guiSetText(PlayerIp, "Your IP : " .. theIP) end) ملاحظة: لازم تحط اسم السكربت في قروب الادمن من لوحة الادمنية رح ل Manage acl بعدين Admin بعدين Add object بعدين حط resource.اسم سكربتك بس Edited October 10, 2012 by Guest Link to comment
Mr.T9 Posted October 10, 2012 Share Posted October 10, 2012 جرب PlayerIp = guiCreateLabel(8,190,320,18,"Your IP:",false,GUIEditor_Tab[1]) guiLabelSetColor(playerIPLabel,255,255,0) local ips = getElementData ( getLocalPlayer(), "IP" ,true) guiSetText ( playerIPLabel, "Your IP: "..tostring(ips).." " ) Link to comment
nony Posted October 10, 2012 Author Share Posted October 10, 2012 السلام عليكم ورحمه الله وبركاتهيا شباب وش الخطأ في كود الاي بي؟ PlayerIp = guiCreateLabel(10,200,300,20,'',false,GUIEditor_Tab[1]) guiLabelSetColor(PlayerIp,255,255,0) addEventHandler("onClientRender",root, function() guiSetText(PlayerIp,"Your IP : "..getPlayerIp(localPlayer)) end) getPlayerIp ? و كلنت ؟؟؟؟؟؟؟؟ جرب سيرفر addEvent("getIP",true) addEventHandler("getIP",root, function() local theIP=getPlayerIP(client) triggerClientEvent(client,"dd",client,theIP) end) كلنت PlayerIp = guiCreateLabel(10,200,300,20,'',false,GUIEditor_Tab[1]) guiLabelSetColor(PlayerIp,255,255,0) addEventHandler("onClientRender",root, function() triggerServerEvent("getIP",localPlayer) end) addEvent("dd",true) addEventHandler("dd",root, function(theIP) guiSetText(PlayerIp, "Your IP : " .. theIP) end) احسبها مثل السريال والاسم والبنق Link to comment
Mr.T9 Posted October 10, 2012 Share Posted October 10, 2012 جرب اللي اعطيتك مانت خسران شي Link to comment
Tete omar Posted October 10, 2012 Share Posted October 10, 2012 جرب اللي اعطيتك مانت خسران شي الي انت عاطيه خطاء Link to comment
Mr.T9 Posted October 10, 2012 Share Posted October 10, 2012 جرب اللي اعطيتك مانت خسران شي الي انت عاطيه خطاء كل احترامي لك شغال معاي Link to comment
nony Posted October 10, 2012 Author Share Posted October 10, 2012 جربتها كلها ماتشتغل Link to comment
Tete omar Posted October 10, 2012 Share Posted October 10, 2012 (edited) جربتها كلها ماتشتغل ملاحظة: لازم تحط اسم السكربت في قروب الادمن من لوحة الادمنيةرح ل Manage acl بعدين Admin بعدين Add object بعدين حط resource.اسم سكربتك بس Edited October 10, 2012 by Guest Link to comment
==>ҭᾄlᾄl Posted October 10, 2012 Share Posted October 10, 2012 كلنت triggerServerEvent("ip",localPlayer,localPlayer) addEvent("updateIP",true) addEventHandler("updateIP",root, function(IP) guiSetText(GUIEditor_Label[8],"Your IP : "..tostring(IP)) ---اسم اللبل GUIEditor_Label[8 end) سيرفر addEvent("ip",true) function ip(thePlayer) local IP = getPlayerIP(thePlayer) triggerClientEvent(source,"updateIP",source,IP) end addEventHandler("ip",root,ip) Link to comment
Tete omar Posted October 10, 2012 Share Posted October 10, 2012 كلنت triggerServerEvent("ip",localPlayer,localPlayer) addEvent("updateIP",true) addEventHandler("updateIP",root, function(IP) guiSetText(GUIEditor_Label[8],"Your IP : "..tostring(IP)) ---اسم اللبل GUIEditor_Label[8 end) سيرفر addEvent("ip",true) function ip(thePlayer) local IP = getPlayerIP(thePlayer) triggerClientEvent(source,"updateIP",source,IP) end addEventHandler("ip",root,ip) ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ Link to comment
==>ҭᾄlᾄl Posted October 10, 2012 Share Posted October 10, 2012 كلنت triggerServerEvent("ip",localPlayer,localPlayer) addEvent("updateIP",true) addEventHandler("updateIP",root, function(IP) guiSetText(GUIEditor_Label[8],"Your IP : "..tostring(IP)) ---اسم اللبل GUIEditor_Label[8 end) سيرفر addEvent("ip",true) function ip(thePlayer) local IP = getPlayerIP(thePlayer) triggerClientEvent(source,"updateIP",source,IP) end addEventHandler("ip",root,ip) ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ وش ؟؟؟؟؟؟؟؟؟؟؟؟ Link to comment
abu5lf Posted October 10, 2012 Share Posted October 10, 2012 فيه طريقة أسهل من هذي سيرفر addEventHandler ( 'onPlayerJoin', getRootElement( ), function ( ) setElementData ( source, 'getClientPlayerIP', getPlayerIP ( source ) ) end ) كلنت local function getClientPlayerIP ( thePlayer ) return getElementData ( thePlayer, 'getClientPlayerIP' ) end getClientPlayerIP ( localPlayer ) -- حطها في الليبل ماجربته Link to comment
nony Posted October 10, 2012 Author Share Posted October 10, 2012 يسلموووو Tete omar تم الأفاده Link to comment
Tete omar Posted October 10, 2012 Share Posted October 10, 2012 يسلموووو Tete omarتم الأفاده الله يسلمك 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