Jump to content

مساعدة


Recommended Posts

سلام عليكم شباب وش المشكلة هنا ؟

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

إلى سيرفر و حط أكواد الأي بي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 by Guest
Link to comment

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 by Guest
Link to comment
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...