Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. PaiN^

    PlaySound3D

    Trigger it to the root triggerClientEvent ( root, 'eventName', root ) I guess !
  2. Then show us where, Which side client or server -__-"
  3. PaiN^

    PlaySound3D

    You're welcome ..
  4. I don't understand ! I meant by where client side or server side ? in or out of the resource ?
  5. PaiN^

    PlaySound3D

    In the meta File should be file and without a type !
  6. Change the port to 22005 ..
  7. Great driving bro ! Good job
  8. Use triggerServerEvent and addEvent and addEventHandler
  9. أما آخر وحدة ياليت اهلي يشوفونها + Mr.Pres[T]ege مشكور
  10. Well if you're paying any way, I recommend you to contact Castillo ( Solidsnake14 ), He is the best !
  11. PaiN^

    SOLVED!

    I don't understand ! Well that because it checks the teams every second, You can do it as a command by : addCommandHandler Or you can make the timer longer !
  12. Show us the function where you destroy theme, And how you trigger the function ( triggers, timer, event, etc.. )
  13. PaiN^

    SOLVED!

    function removeTeams ( ) for t,teams in pairs( getElementsByType ( 'team' ) ) do if countPlayersInTeam ( teams ) ==0 then destroyElement(teams) end end end setTimer ( removeTeams, 1000, 0 )
  14. PaiN^

    cancelEvent

    Becuase there is always an account ( a guest account ) function chatNil(message, messageType) if messageType == 0 then local playerAcc = getPlayerAccount(source) if ( playerAcc and isGuestAccount(playerAcc)) then cancelEvent() end end end addEventHandler("onPlayerChat", root, chatNil)
  15. At the end of the code : function destroyBlipsAttachedToSource() local attached = getAttachedElements ( source ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end addEventHandler("onPlayerQuit",getRootElement(),destroyBlipsAttachedToSource) function destroyBlipsAttachedTo() local attached = getAttachedElements ( source ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end addEventHandler("onResourceStop",getRootElement(),destroyBlipsAttachedTo) + I don't see that 'Timed out' string on the debug !
  16. ما قصرت يا بطل # ~~وجعله الله في ميزان حسناتك~~
×
×
  • Create New...