At this points /spawn id command is only available to the admins, a quick mock up might change that i think.
// Admin commands <3
function OnCommand(ID: byte; text: string): boolean;
begin
result := false;
delete(text, 1, 1);
case lowercase(getpiece(text, ' ', 0)) of
'spawn': if ID <> 255 then SpawnObject(getplayerstat(ID, 'X'), getplayerstat(ID, 'Y') - iif(StrToInt(getpiece(text, ' ', 1)) = 15, 8, 20), StrToInt(getpiece(text, ' ', 1)));
end;
end;