Say I were to type !something what would I need to put into the hook to make it save an entity's position and respawn it where ever saved to after a server restarts .
hook.Add( 'PlayerSay', 'UNIQUE_NAME', function( ply, text, team )
if text == '!help' then
end
end )
you could use
the file library
[URL="http://wiki.garrysmod.com/page/Category:file"]http://wiki.garrysmod.com/page/Category:file[/URL]
an sql data base
[URL="http://wiki.garrysmod.com/page/Category:sql"]http://wiki.garrysmod.com/page/Category:sql[/URL]
or
Player Data
[URL="http://wiki.garrysmod.com/page/Player/SetPData"]http://wiki.garrysmod.com/page/Player/SetPData[/URL]
It's up to you to figure out how to use them
thank you, helped me alot
Sorry, you need to Log In to post a reply to this thread.