for noob coders that want a replacement/people that don't like the regular command
[lua]
function PlayerStats()
print( "SteamID | Name | UniqueID | UserID | Rank\n" )
print( "--------------------------------------------------------------------------\n" )
for k,v in pairs(player.GetAll()) do
if v:IsAdmin() then
rank = "Admin"
else
rank = "Guest"
end
print( v:SteamID().." | "..v:GetName().." | "..v:UniqueID().." | "..v:UserID().." | "..rank.."\n" )
end
end
concommand.Add( "plstats", PlayerStats )
[/lua]
You should use v:Nick() in case it's roleplay.
Or I'm totally wrong and think you're talking about v:SteamName()
Anyway, carry on.
.......
GetName, Nick, or Name are fine. As for [i]SteamName[/i] that is actually only a function in my roleplay script ;)
Sorry, you need to Log In to post a reply to this thread.