Lua
function pm (theplayer, command, playerName, ...)
playerName = getPlayerFromName(playerName)
if playerName and message then
local pmtext = table.concat( {...}, " " )
local sendedPM = outputChatBox ("PM von "..getPlayerName(player)..": "..pmtext.."", playerName, 0, 255, 0)
if sendedPM then
outputChatBox ("PM abgesendet.", player, 0, 255, 0)
end
else
outputChatBox("Ungültig!", player, 255, 0, 0 )
end
addCommandHandler("pm", sendPM )
end
Alles anzeigen
ich habe ein kleines problem unzwar habe ich mir grad ein PM system zurecht gebastlet aber irgendwie funktioniert es nicht