mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-27 12:56:07 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
29
Data/scripts/commands/gm/sendpacket.lua
Normal file
29
Data/scripts/commands/gm/sendpacket.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
properties = {
|
||||
permissions = 0,
|
||||
parameters = "ssss",
|
||||
description =
|
||||
[[
|
||||
Sends a custom <packet> to player or <targetname>
|
||||
!sendpacket <packet> |
|
||||
!sendpacket <packet> <targetname> |
|
||||
]],
|
||||
}
|
||||
|
||||
function onTrigger(player, argc, path, name, lastName)
|
||||
local sender = "[sendpacket ]";
|
||||
lastName = lastName or "";
|
||||
path = "./packets/"..path;
|
||||
|
||||
if name then
|
||||
if lastName then
|
||||
player = GetWorldManager():GetPCInWorld(name.." "..lastName) or nil;
|
||||
else
|
||||
player = GetWorldManager():GetPCInWorld(name) or nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
value = tonumber(value) or 0;
|
||||
if player and argc > 0 then
|
||||
player:SendPacket(path)
|
||||
end;
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue