Hi.
I'm making my first gamemode. I want to make item system. So my first question is can i use metatable:tablename so that the table is "separate" for each player? Or will table[ply:IPAddress()] work, so that there's a table for each player?
Also how can I set player spawn? Is there a function or I can just make a lua script that will move the player to specified position AFTER he is spawned?
Thanks in advance.
Thanks. So entity(ply or LocalPlayer() in this case) works. Thanks a lot man.
EDIT: the GM:PlayerSpawn doesn't really help. Do I need to use ply:SetPos() or what?
[QUOTE=KatNotDinner;31692632]Thanks. So entity(ply or LocalPlayer() in this case) works. Thanks a lot man.
EDIT: the GM:PlayerSpawn doesn't really help. Do I need to use ply:SetPos() or what?[/QUOTE]
If you want to move them then yes
Oh one more thing :S . If I use items = {} (I make a table called items) do I need to make a new table ply.items or I can use ply.items without maing new table?
Sorry, you need to Log In to post a reply to this thread.