function main()
sampRegisterChatCommand('getinfo', function(param)
if param == '' then sampAddChatMessage('{FF0000}[ERROR]{FFFFFF} /getinfo [id]', -1) return end
if sampIsPlayerConnected(param) then
sampShowDialog(1000,'Информация', string.format('%s [%d]\nLVL:%s\nPing:%s\n', sampGetPlayerNickname(param), param, sampGetPlayerScore(param), sampGetPlayerPing(param)), 'Okey', 'Exit', 0)
else
sampAddChatMessage('{FF0000}[ERROR]{FFFFFF} Игрок не в сети!', -1)
end
end)
wait(-1)
end