Hey there,
I recently made a Staffchat command:
Usage:
Just use: /staffchat enable to enable to chat.
When you enabled it you can just type in the chat everybody that enabled staffchat can now see your messages.
To disable staffchat: /staffchat disable.
I hope this helped you a lot.
I recently made a Staffchat command:
Code:
cmd create staffchat
cmd add staffchat if varset(%args%[1]) = 0 then goto 6
cmd add staffchat let %toggle% = lowercase(%args%[1])
cmd add staffchat if %toggle% = \"chat\" then goto 34
cmd add staffchat if %toggle% = \"enable\" then goto 8
cmd add staffchat if %toggle% = \"disable\" then goto 21
cmd add staffchat message %p% Usage: /staffchat enable/disable
cmd add staffchat exit
cmd add staffchat #enable
cmd add staffchat let %status% = playerstatus(%p%)
cmd add staffchat if %status%[\"op\"] = 0 then message %p% You have no permission to use this command!
cmd add staffchat if %status%[\"op\"] = 0 then exit
cmd add staffchat load %staff%
cmd add staffchat if %p% in %staff% then goto 19
cmd add staffchat let %staff%[] = %p%
cmd add staffchat save %staff%
cmd add staffchat load %chattoggle%
cmd add staffchat let %chattoggle%[%p%] = 1
cmd add staffchat save %chattoggle%
cmd add staffchat message %p% [StaffChat] Enabled
cmd add staffchat exit
cmd add staffchat #disable
cmd add staffchat let %status% = playerstatus(%p%)
cmd add staffchat if %status%[\"op\"] = 0 then message %p% You have no permission to use this command!
cmd add staffchat if %status%[\"op\"] = 0 then exit
cmd add staffchat load %staff%
cmd add staffchat if %p% notin %staff% then goto 28
cmd add staffchat let %staff% = %staff% - %p%
cmd add staffchat save %staff%
cmd add staffchat load %chattoggle%
cmd add staffchat let %chattoggle%[%p%] = 0
cmd add staffchat save %chattoggle%
cmd add staffchat message %p% [StaffChat] disabled
cmd add staffchat exit
cmd add staffchat #chat
cmd add staffchat load %staff%
cmd add staffchat load %chattoggle%
cmd add staffchat if %chattoggle%[%p%] = 0 then exit
cmd add staffchat if %chattoggle%[%p%] = 1 then cancel
cmd add staffchat let %msg% = %args%[3]
cmd add staffchat message %staff% [StaffChat][%p%]» %msg%
cmd trigger chat staffchat
Just use: /staffchat enable to enable to chat.
When you enabled it you can just type in the chat everybody that enabled staffchat can now see your messages.
To disable staffchat: /staffchat disable.
I hope this helped you a lot.