1
0
Fork 0

Debuggers: Added a plugin channel test with funny chars in data.

This commit is contained in:
Mattes D 2015-10-21 20:59:54 +02:00
parent da92286da9
commit 7761f7e5b8
2 changed files with 17 additions and 0 deletions

View File

@ -1648,6 +1648,17 @@ end
function HandlePlugMsg(a_Split, a_Player)
local ch = a_Player:GetClientHandle()
ch:SendPluginMessage("TestCh", "some\0string\1with\2funny\3chars")
return true
end
function HandlePoof(a_Split, a_Player)
local PlayerPos = Vector3d(a_Player:GetPosition()) -- Create a copy of the position
PlayerPos.y = PlayerPos.y - 1

View File

@ -124,6 +124,12 @@ g_PluginInfo =
Handler = HandlePickups,
HelpString = "Spawns random pickups around you"
},
["/plugmsg"] =
{
Permission = "debuggers",
Handler = HandlePlugMsg,
HelpString = "Sends a test plugin message to the client",
},
["/poison"] =
{
Permission = "debuggers",