AboFaisal Posted October 27, 2012 Share Posted October 27, 2012 السلام عليكم ورحمه الله وبركاته فيه مشكله عندي بكود الأيبي في الشوب أو غيرهآ تفضلو , الكود client. Yourip = guiCreateLabel(222,222,175,55,"Your IP : N/A",false,tabinfo) function update() local ips = getElementData ( getLocalPlayer(), "IP" ,true) guiSetText ( Yourip, "Your IP : "..tostring(ips).." " ) triggerServerEvent ( "update", getLocalPlayer()) end addEventHandler("onClientRender",getRootElement(), update) Server. function updateInform( thePlayer,... ) ip = getPlayerIP ( source ) setElementData ( source, "IP", ip ) end addEvent("update",true) addEventHandler("update",getRootElement(),updateInform) والنتيجه Your IP : nil أرجو المسآعده , جزآكم الله خير Link to comment
Bhrany-danger Posted October 27, 2012 Share Posted October 27, 2012 server addEvent("getIP",true) addEventHandler("getIP",root, function() local theIP=getPlayerIP(client) triggerClientEvent(client,"dd",client,theIP) end) ---- client 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
AboFaisal Posted October 27, 2012 Author Share Posted October 27, 2012 server addEvent("getIP",true) addEventHandler("getIP",root, function() local theIP=getPlayerIP(client) triggerClientEvent(client,"dd",client,theIP) end) ---- client 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
TAPL Posted October 27, 2012 Share Posted October 27, 2012 WTF ؟onClientRender ترقير مع أفنت -- Server Side -- addEventHandler("onPlayerJoin", root, function() setElementData(source, "IP", getPlayerIP(source)) end) -- Client Side -- Yourip = guiCreateLabel(222,222,175,55,"Your IP : N/A",false,tabinfo) guiSetText(Yourip, "Your IP : "..getElementData(localPlayer, "IP")) Link to comment
AboFaisal Posted October 27, 2012 Author Share Posted October 27, 2012 WTF؟onClientRender ترقير مع أفنت -- Server Side -- addEventHandler("onPlayerJoin", root, function() setElementData(source, "IP", getPlayerIP(source)) end) -- Client Side -- Yourip = guiCreateLabel(222,222,175,55,"Your IP : N/A",false,tabinfo) guiSetText(Yourip, "Your IP : "..getElementData(localPlayer, "IP")) لآهنت تآبل حلآهآ البحريني الله يجزآه خير بس أبي كود أضهار المكتوب في القيم مود للسيرفر مثآل وضيفه الشرطه + حيآكم الله اللي مكتوب ^ حمب أسم السيرفر يجي في الشوب أو نافذه أبي الكود ~ لاهنت Link to comment
TAPL Posted October 27, 2012 Share Posted October 27, 2012 Bhrany-danger كود بيسبب لاق للسيرفر https://wiki.multitheftauto.com/wiki/GetGameType 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