Jump to content

Wanted level...


joao1234

Recommended Posts

-- Server 
-- Function's 
getPlayerWantedLevel 
getPlayerName 
outputChatBox 
cancelEvent 
  
Event : 
  
"onPlayerChat" 

Try This Server Side :

addEventHandler("onPlayerChat",root, 
function (text, msgtype) 
local name = getPlayerName( source ); 
local Wanted = getPlayerWantedLevel ( source ); 
   cancelEvent() 
          outputChatBox("[ "..Wanted.." ] ".. name .. " : " .. text, root, 255, 255, 255, true); 
  end 
); 
Link to comment
-- Server 
-- Function's 
getPlayerWantedLevel 
getPlayerName 
outputChatBox 
cancelEvent 
  
Event : 
  
"onPlayerChat" 

Try This Server Side :

addEventHandler("onPlayerChat",root, 
function (text, msgtype) 
local name = getPlayerName( source ); 
local Wanted = getPlayerWantedLevel ( source ); 
   cancelEvent() 
          outputChatBox("[ "..Wanted.." ] ".. name .. " : " .. text, root, 255, 255, 255, true); 
  end 
); 

He wants in the nametag, not in the chat.

Link to comment
-- Server 
-- Function's 
getPlayerWantedLevel 
getPlayerName 
outputChatBox 
cancelEvent 
  
Event : 
  
"onPlayerChat" 

Try This Server Side :

addEventHandler("onPlayerChat",root, 
function (text, msgtype) 
local name = getPlayerName( source ); 
local Wanted = getPlayerWantedLevel ( source ); 
   cancelEvent() 
          outputChatBox("[ "..Wanted.." ] ".. name .. " : " .. text, root, 255, 255, 255, true); 
  end 
); 

He wants in the nametag, not in the chat.

Ah , Sorry Will I Will Edit it soon .

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