Addon help

The Idea its to make like this

The player writes !buged
and he will be teleported after 1 minute to the spawn.
But you can only use this 1 time every hour

I have this so far.
as
ServerSide


include("autorun/teleport.lua")

hook.Add( "PlayerSay", "ServerHopperCMD", function( ply, text )

	if ( text == '!bugged' ) then
    
                ply:ConCommand('Teleport')

                return ""

        end
end)


I would do this where you create the concommand “Teleport”. Use this to create cooldown player variables: http://wiki.garrysmod.com/page/timer/Create

What’s the need of autorun/teleport.lua? Just do something like this:
[lua]
hook.Add( “PlayerSay”, “ServerHopperCMD”, function( ply, text )

if ( text == '!bugged' ) then

            timer.Simple(wait_time_here, function()
                 if IsValid(ply) then
                     ply:SetPos(where_ever)
                 end
            end)

            return ""

    end

end)
[/lua]

Okay, but how do I see position?

What do you mean?

Use Entity:GetPos() if you want to get a position from a player.

thanks