Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function staffChat(thePlayer, command, message)
- for player, value in ipairs(getElementsByType("player")) do
- if (hasObjectPermissionTo(value, "command.kick")) then
- if (message) then
- outputChatBox("Staff: "..getPlayerName(thePlayer)..": "..tostring(message).."", value, 255, 255, 0)
- else
- outputChatBox("Enter a message...", thePlayer, 255, 255, 0)
- end
- else
- outputChatBox("Sorry. you do not have the rights to use this feature.", thePlayer, 255, 0, 0)
- end
- end
- end
- addCommandHandler("staffchat", staffChat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement