maxleonardo3 Posted May 10, 2013 Share Posted May 10, 2013 (edited) not managing to sound the alarm when one player get close and appears in chat local sound = playSound3D ("siren.mp3",-1249.4000244141,-1990.9000244141,2.7000000476837, 'cylinder', 100, 100, 0, 255, 0) setSoundMaxDistance ( sound, 100 ) local puerta = createObject (5856,-1250.4000244141,-1991.5,3.5,0,0,306) local markerADM = createMarker (-1249.4000244141,-1990.9000244141,2.7000000476837, 'cylinder', 3, 0, 0, 255, 0) -------------------------- --Ésta es una zona de Admins. Sólo ellos pueden ingresar. addEventHandler ("onMarkerHit",markerADM, function (hitPlayer) local account = getPlayerAccount(hitPlayer) if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) then moveObject (puerta,1000, -1250.4000244141, -1991.5, 5.5) outputChatBox ("",hitPlayer,0,255,0) else outputChatBox ("¡Tienes que ser administrador para entrar en esta zona.",hitPlayer) end end) Did not understand this and pq 1 resource when player reaches 100 meters the siren sounds, podir faser the script for min? Edited May 10, 2013 by Guest Link to comment
ixjf Posted May 10, 2013 Share Posted May 10, 2013 Sound functions are client-side only. Link to comment
maxleonardo3 Posted May 10, 2013 Author Share Posted May 10, 2013 Did not understand this and pq 1 resource when player reaches 100 meters the siren sounds, podir faser the script for min? Link to comment
DNL291 Posted May 10, 2013 Share Posted May 10, 2013 triggerClientEvent No one will make the script for you, we are here to help you. Also, will be difficult to someone understand what you said because his english has errors. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now