Jump to content

onClientPlayerJoin


SnoopCat

Recommended Posts

Posted

its correct to add this to make a sound plays when some 1 joins server???

function Join (thePlayer) 
     local sound = playSound("welcome.wav",false) 
     setSoundVolume(sound, 1.0) 
end 
   
addEventHandler ( "onClientPlayerJoin", getLocalPlayer(), Join ) 

VISIT TSW RACING SERVER

http://tswracing.net/

Posted
its correct to add this to make a sound plays when some 1 joins server???
function Join (thePlayer) 
     local sound = playSound("welcome.wav",false) 
     setSoundVolume(sound, 1.0) 
end 
   
addEventHandler ( "onClientPlayerJoin", getLocalPlayer(), Join ) 

whats the point of the argument "thePlayer" there?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

uhm, if you just need to make join sound that only player that join hear - just use this resource:

https://community.multitheftauto.com/index.php?p= ... ils&id=976

also don't create more than one topic about same problem:

viewtopic.php?f=91&t=29267

I'm locking old one, don't do it again.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...