Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 6 … 18 Next »
Player:PlayerInfo()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Player:PlayerInfo()
09-07-2020, 10:28 AM,
#3
The17thDoctor Online
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: Player:PlayerInfo()
Here is a function that adds all of what you could ever possibly use for a player, there's not everything, but its in fact so much as of now.

local Player = starfall.getTypeDef("Player")

function Player:getAllInfos()
return {
Health = self:health(),
Armor = self:armor(),
Alive = self:alive(),
Crouching = self:crouching(),
Deaths = self:deaths(),
EyeTrace = self:eyeTrace(),
AimEntity = self:aimEntity(),
AimPos = self:aimPos(),
EyePos = self:eyePos(),
EyeAng = self:eyeAngles(),
FOV = self:fov(),
Frags = self:frags(),
Team = {Name=self:getUserGroup(),NiceName=self:teamName(),Color=self:getTeamColor()},
Name = self:name(),
SteamID = selfConfusedteamID(),
SteamID64 = selfConfusedteamID64(),
Ping = self:ping(),
RunSpeed = self:runSpeed(),
IsAdmin = self:isAdmin(),
IsSuperAdmin = self:isSuperAdmin(),
}
end

Quite a useless function though as it is. I'd suggest you filtering much of the information you're using, otherwise it's lost quota for nothing.

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Player:PlayerInfo() - by TheDeadScythe - 09-07-2020, 12:32 AM
RE: Player:PlayerInfo() - by The17thDoctor - 09-07-2020, 01:41 AM
RE: Player:PlayerInfo() - by The17thDoctor - 09-07-2020, 10:28 AM
RE: Player:PlayerInfo() - by TheDeadScythe - 09-07-2020, 01:26 PM
RE: Player:PlayerInfo() - by The17thDoctor - 09-07-2020, 01:32 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.