Jump to content

مساعده


Recommended Posts

Posted

السلام عليكم ورحمة الله وبركاته

مساكم الله بالخير يالربع

ياشباب انا ابي اسم لااعب يظهر بالشات

    function( msg ) 
        outputChatBox( 'getPlayerName :'.. msg , getRootElement( ), 255, 0, 0, true ) 

ابي اسوي صندوق محادثه

بس مايجيي اسم الاعب

Posted

getPlayerName

  
 --- server side 
   function chat ( msg ) 
local pn = getPlayerName (source) 
        outputChatBox( ' " .. pn .. "  :'.. msg , getRootElement( ), 255, 0, 0, true ) 
end 
addEventHandler( "onPlayerChat", getRootElement(), chat ) 
  
  

Posted
  
--- SERVER SIDE 
  
 local root = getRootElement() 
  
function chat(text, msgtype) 
    local name = getPlayerName(source) 
       outputChatBox("#808080 ".. name .. ":#00ffff " .. text, root, 255, 255, 255, true) 
end 
addEventHandler("onPlayerChat", root, chat)  
  
  

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...