Hello,
I want to print in the ooc chat the SteamName and not the rpname.
hook.Add( "PlayerSay", "ChatCommand1", function( ply, text, team )
if (string.sub( text, 1, 4 ) ) == "/ooc" then
PrintMessage( HUD_PRINTTALK, "[Simple-OOC] " .. Entity( 1 ):GetName() .. ":" .. string.sub( text, 5) )
return false
end
end)
Can you guys help me?
correct function is SteamName not GetSteamName
Sorry, you need to Log In to post a reply to this thread.