Jump to content

Reflex#

Members
  • Posts

    230
  • Joined

  • Last visited

Everything posted by Reflex#

  1. Reflex#

    JoinQuit

    Now when player join write PlayerName has joined the game from 'N/A'
  2. Reflex#

    JoinQuit

    So what i must do?
  3. Reflex#

    JoinQuit

    Yes i tested..but..look in this lua local countryNames = { ["AD"] = "Andorra", ["AG"] = "Antigua - Barbuda", ["AI"] = "Anguilla Arabia", ["AL"] = "Albania", ["AM"] = "Armenia", ["AR"] = "Argentina", ["AT"] = "Austria", ["AU"] = "Australia", ["AW"] = "Aruba", ["BA"] = "Bosnia", ["BE"] = "Belgium", ["BG"] = "Bulgaria", ["BH"] = "Bahrain", ["BM"] = "Bermuda", ["BN"] = "Bronei ", ["BO"] = "Bolivia", ["BR"] = "Brazil", ["BS"] = "Bahamas", ["BW"] = "Botswana", ["BY"] = "Belarus", ["BZ"] = "Belize", ["CA"] = "Canada", ["CC"] = "Cocos", ["CH"] = "Switzerland", ["CI"] = "Ivory Coast", ["CL"] = "Chile", ["CN"] = "China", ["CO"] = "Colombia", ["CU"] = "Cuba", ["CY"] = "Cyprus", ["CZ"] = "Czech", ["DE"] = "Germany", ["DK"] = "Denmark", ["DM"] = "Dominica", ["DO"] = "Dominican", ["EC"] = "Ecuador", ["EE"] = "Estonia", ["EG"] = "Egypt", ["ES"] = "Spain", ["ET"] = "Ethiopia", ["FI"] = "Finland", ["FR"] = "France", ["GB"] = "Great-Britain", ["GL"] = "Greenland", ["GY"] = "Guyana", ["HR"] = "Croatia", ["HU"] = "Hungary", ["ID"] = "Indonesia", ["IE"] = "Ireland", ["IR"] = "Iran", ["IS"] = "Iceland", ["IT"] = "Italy", ["IN"] = "India", ["JO"] = "Jordan", ["JM"] = "Jamaica", ["jp"] = "Mexico", ["KW"] = "Kuwait", ["IT"] = "Italy", ["LU"] = "Luxembourg", ["LV"] = "Latvia", ["MA"] = "Morocco", ["MC"] = "Monaco", ["MT"] = "Malta", ["MX"] = "Mexico", ["NG"] = "Nigeria", ["NL"] = "Netherlands", ["NO"] = "Norway", ["PA"] = "Panama", ["PE"] = "Peru", ["PH"] = "Philipines", ["PK"] = "Pakistan", ["PL"] = "Poland", ["PT"] = "Portugal", ["QA"] = "Qatar", ["RO"] = "Romania", ["RU"] = "Russia", ["SA"] = "Saudi Arbia", ["SE"] = "Sweden", ["SI"] = "Slovania", ["TO"] = "Tonga", ["TR"] = "Turkey", ["UA"] = "Ukraine", ["UK"] = "United Kingdom", ["US"] = "United States", ["UY"] = "Uruguay", ["VN"] = "Vietnam", ["YE"] = "Yemen", ["YU"] = "Yugoslavia", ["ZA"] = "South Africa" } function onJoin( ) local country = exports['admin']:getPlayerCountry( source ) if not country then country = 'N/A' end setElementData( source,'Country', country ) outputChatBox( getPlayerName ( source ) .. " has joined the game from " .. country ~= 'N/A' and countryNames[ tostring( country ) ] or 'N/A', root, 255, 100, 100 ) end addEventHandler ( "onPlayerJoin", root, onJoin ) When player join,writing only: N/A and nothing else..
  4. Reflex#

    JoinQuit

    When player join writing only: N/A But in scoreboard country is showing
  5. Reflex#

    JoinQuit

    Yes yes ok And link of resource for Kenix: http://www.mediafire.com/?n9wrun98tu7dn8h
  6. Reflex#

    JoinQuit

    On community? Or another file-sharing?
  7. Reflex#

    JoinQuit

    Yes, you do. I forget..how to do,remind me: Resources->Manage ACL->Groups->Admin->add object-->resource.joinquit yes?
  8. Reflex#

    JoinQuit

    May be i must add this resource to admin group?
  9. Reflex#

    JoinQuit

    Yes..of course..wait i try again
  10. Reflex#

    JoinQuit

    When player join,happend nothing
  11. Reflex#

    JoinQuit

    This. As i know..this is server side?
  12. Reflex#

    JoinQuit

    Your code is wrong. oO Ok i create test my code now. Edit: I tested code. All working. [JOIN] Kenix joined game!RU What code you test?
  13. Reflex#

    JoinQuit

    now write nothing
  14. Reflex#

    JoinQuit

    Dont work..again writing:[JOIN][Name] joined game!false
  15. Reflex#

    Win sound!

    Ok..so i must use only playSound3D or with playSound?
  16. Reflex#

    Win sound!

    I use Race gamemode. But play only on DM maps.I want when player win round,playing music
  17. Reflex#

    JoinQuit

    but in scoreboard write country...
  18. Reflex#

    JoinQuit

    g_Root = getRootElement() addEventHandler('onPlayerJoin',g_Root, function () local country = exports['admin']:getPlayerCountry(source) setElementData(source,'Country',country) outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#DB8181 joined game!' .. tostring(country) .. ' ', getRootElement(), 219, 129, 129, true) end ) addEventHandler('onPlayerChangeNick', g_Root, function(oldNick, newNick) outputChatBox('[Change-Nick] #ffffff' .. oldNick .. '#DB8181 is now known as #ffffff' .. newNick, getRootElement(), 219, 129, 129, true) end ) addEventHandler('onPlayerQuit', g_Root, function(reason) outputChatBox('[' .. reason .. '] #ffffff' .. getPlayerName(source) .. ' #DB8181disconnected.', getRootElement(), 255, 0, 0, true) end ) I try this..but dont work,i want that country showing from what player join ,write only [JOIN]Player joined game!false
  19. Reflex#

    Win sound!

    On wiki i found only onPlayerWasted I want to do when player win round,play sound
  20. How i can do this without Wesseb's php?
  21. This script i made from standart jounquit
×
×
  • Create New...