Ulysses Stuff > Releases
Player Connect/Disconnect Message [1.11v]
Nkrow:
// client side apple
// Spawn
function player_spawn( data )
local name1 = data:ReadString()
local nickteamcolour1 = team.GetColor(data:ReadShort())
local steamid1 = data:ReadString()
chat.AddText( nickteamcolour1, name1, Color( 255, 255, 255 ), " ha entrado al servidor." )
surface.PlaySound( "fx/blop2.mp3" )
end
usermessage.Hook("player_spawn", player_spawn)
// Disconnect
function player_disconnect( data )
local name3 = data:ReadString()
local nickteamcolour3 = team.GetColor(data:ReadShort())
local steamid2 = data:ReadString()
chat.AddText( nickteamcolour3, name3, Color( 255, 255, 255 ), " se ha ido del servidor." )
surface.PlaySound( "fx/blop2.mp3" )
end
usermessage.Hook("player_disconnect", player_disconnect)
Ajlittle:
Is it possible to show steamids when they leave?
Bite That Apple:
--- Quote from: Ajlittle on October 11, 2013, 01:41:53 PM ---Is it possible to show steamids when they leave?
--- End quote ---
Yeah, it is. I can make it for you if you wish.
cynel:
--- Quote from: chaos13125 on October 11, 2013, 03:46:33 PM ---Yeah, it is. I can make it for you if you wish.
--- End quote ---
That would be great, not going to lie; I'm a baddie at all of this coding malarkey. Started around a week ago when a friend got a server, must have spent around two hours trying to put add SteamIDs to the connect/disconnect message.
Would appreciate the help!
Thanks
Bite That Apple:
--- Quote from: cynel on October 21, 2013, 07:08:54 PM ---That would be great, not going to lie; I'm a baddie at all of this coding malarkey. Started around a week ago when a friend got a server, must have spent around two hours trying to put add SteamIDs to the connect/disconnect message.
Would appreciate the help!
Thanks
--- End quote ---
I'm sorry, I'm not able to help you out here. I've become busy with a IRL situation, and some major other issues. Though, you're in a great community, so someone may be able to help you out here.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version