How to get player's name at the ping screen
#9
(08-23-2018, 05:19 AM)NiLSPACE Wrote: It might be. You'll have to try it. What happens in the console when you use
function OnServerPing(ClientHandle, ServerDescription, OnlinePlayers, MaxPlayers, Favicon)
    local name = ClientHandle:GetPlayer():GetName();
    print(name)
end

Just a lot of errors...

Code:
[09:35:36] LUA: Plugins/BanPlus/BanPlus.lua:52: attempt to index a nil value
[09:35:36] Stack trace:
[09:35:36]   Plugins/BanPlus/BanPlus.lua(52): (no name)
[09:35:36] Stack trace end
[09:35:36] Error in <attached> calling function <callback>()

So it would appear as it isn't possible?
Reply
Thanks given by:


Messages In This Thread
RE: How to get player's name at the ping screen - by MGlolenstine - 08-23-2018, 05:40 PM



Users browsing this thread: 1 Guest(s)