how con i play a sound on firstspawn to only the player not every one else
I think this should work:
-- Check if the player hasn't initialized yet. if (!self.playerInitialized) then player:ConCommand("play" , "here the sound directory and name.") end;
player:ConCommand(“play” , “here the sound directory and name.”)
Why do that when you can use surface.PlaySound?
Because if the player don’t want to hear the rest of the sound they can use “stopsounds” to stop it…
Fixed it. PlayerInitialSpawn is serverside.
RunConsoleCommand is shared.
And it’d work without specifying on which client to run it?
Why do that when you can have
[lua]hook.Add(“InitPostEntity” , “PLAYIT” , function()
On the client.
I love how each and every thread asking for help turns into an optimization war.
Well I dont know. I just saw the Shared icon.
Maybe when used serverside it runs on the server itself? That wiki entry really could use some clarifying.
player:ConCommand(“play” , “Mysound”)
what are you doing
person below me is a fucking genius
“someone already fixed it for you”?
He quote my script, read first n…b xDDDD
We can see the time of the last edit you know. Anyway it’s not like it matters. I don’t remember did we fix the OP’s issue or not? xD
Yes xDDD, I didn’t see your fix sorry.
And again sorry for bad spelling.