Jump to content

Help /pm id hello [Não RESOLVIDO!]


Speak

Recommended Posts

eu ja tenho o sistema de ids do chat e do scoreboard como coloco pm por id nisso exemplo: /pm id Ola /pm 12 Hello /pm bob hello

I already have the system ids the scoreboard as chat and put it pm by id example: / pm id Hello / Hello 12 pm / pm hello bob

function onPlayerEnterInGame() 
    outputChatBox("You can use the /pm command to send a private message, use _ for spaces", source, 0, 255, 0) 
end 
addEventHandler("onPlayerJoin", getRootElement(), onPlayerEnterInGame) 
function sendPM(thePlayer, command, playerName, message) 
    playerName = getPlayerFromName(playerName) 
    if playerName and message then 
        local sendedPM = outputChatBox("PM From "..getPlayerName(thePlayer)..": "..message.."", playerName, 0, 255, 0) 
        if sendedPM then 
            outputChatBox("PM Sended to "..getPlayerName(playerName)..": "..message.."", thePlayer, 0, 255, 0) 
            outputDebugString("[PM] "..getPlayerName(thePlayer).." to "..getPlayerName(playerName)..": "..message.."") 
        end 
    end 
end 
addCommandHandler("pm", sendPM) 
addCommandHandler("mp", sendPM) 
  

Edited by Guest
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...