function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('sp', sp)
while true do wait(-1)
end
end
function sp(arg)
if not arg or not arg:find('^.+$') then sampAddChatMessage('где айди?', -1) return end
if arg:find('^%d$') or arg:find('%d+') then
if sampIsPlayerConnected(arg) then
sampSendChat('/slap ' .. arg)
sampSendChat('/spplayer ' .. arg)
else
sampAddChatMessage('Игрока нема на сервере!', -1)
return
end
end
end