20.02.2018, 19:15
(This post was last modified: 20.02.2018, 19:35 by Profesores.)
Release 0.4:
New Functions(SERVER-SIDE):
getEquipment is a function which returns only synchronized items (protection from Daedalus CreateInvItems and other method to unexpected giveItem or clone items).
Example usage:
Enjoy it ! ;-)
New Functions(SERVER-SIDE):
Code:
array getEquipment(pid)
getEquipment is a function which returns only synchronized items (protection from Daedalus CreateInvItems and other method to unexpected giveItem or clone items).
Example usage:
Code:
addEventHandler("onPlayerCommand", function(pid, cmd, params)
{
switch(cmd)
{
case "geteq":
{
local items = getEquipment(pid);
foreach(k, v in items)
sendMessageToPlayer(pid, 255, 255, 255, Items.name(v[0]) + " " + v[1]);
};
break;
};
});
Enjoy it ! ;-)