// 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)