Alright so i was doing some LUA scripting with a friend of mine who helped me but after all we dint got it working and he dont know what he did wrong to, he said “ply isent defined” or something like that but idk if thats true… He said it should work,
Basicly what we were trying to do is that when people connect to the server and enter the game it says “player [name] joined the server with steamid [id]” in chat…
Better way to ban ppl there steam id’s with ULX,
function FirstSpawn( ply )
for k,v in pairs( player.GetAll() ) do
v:PrintMessage( HUD_PRINTTALK, “…ply:Nick()…” joined, his SteamID is: "…ply:SteamID() )
end
hook.Add( “PlayerInitialSpawn”, “playerInitialSpawn”, FirstSpawn )
function FirstSpawn( ply )
for k,v in pairs( player.GetAll() ) do
v:PrintMessage( HUD_PRINTTALK, “…ply:Nick()…” joined, his SteamID is: "…ply:SteamID() )
end
hook.Add( “PlayerInitialSpawn”, “playerInitialSpawn”, FirstSpawn )
I hope you guys can help cuz my friend said it may had to do with TTT but im not sure of that.
Thanks!