Jump to content

Best-Killer

Members
  • Posts

    494
  • Joined

  • Last visited

Everything posted by Best-Killer

  1. Sory For Spamming But Really i need help here
  2. Guys Please help
  3. Guys i tried with this but Country name showing just Code example (TN)PlayerName:text i want it (Tunisia)PlayerName:Text local countryNames = { ["IT"]="Italy", ["MX"]="Mexico", ["SA"]="SAUDI ARBIA", ["PK"]="Pakistan", ["AF"]="Afghanistan", ["DZ"]="Algeria", ["AS"]="American samoa", ["AU"]="Australlia", ["AO"]="Anqola", ["AI"]="Anquilla", ["AQ"]="Antarctica", ["AG"]="Antigua and Barbuda", ["AR"]="Argentina", ["AM"]="Armenia", ["AW"]="Aruba", ["AT"]="Austria", ["AZ"]="Azerbaijan", ["BS"]="Bahamas", ["BH"]="Bahrain", ["BD"]="Bangladesh", ["BB"]="Barbados", ["BY"]="Belarus", ["BE"]="Belgium", ["BZ"]="Belize", ["BJ"]="Benin", ["BM"]="Bermuda", ["BT"]="Bhutan", ["BO"]="Bolivia", ["BA"]="Bosnia", ["BH"]="Herzegovina", ["BW"]="Botswana", ["BR"]="Brazil", ["IO"]="British Indian Ocean Territory", ["VG"]="British Virgin Islands", ["BN"]="Brunei", ["BG"]="Bulgaria", ["BF"]="Burkina Faso", ["MM"]="Burma (Myanmar)", ["BI"]="Burundi", ["KH"]="Cambodia", ["CM"]="Cameroon", ["CA"]="Canada", ["CV"]="Cape Verde", ["KY"]="Cayman Islands", ["CF"]="Central African Republic", ["TD"]="Chad", ["CL"]="Chile", ["CN"]="China", ["CX"]="Christmas Island", ["CC"]="Cocos (Keeling) Islands", ["CO"]="Colombia", ["KM"]="Comoros", ["CK"]="Cook Islands", ["CR"]="Costa Rica", ["HR"]="Croatia", ["CU"]="Cuba", ["CY"]="Cyprus", ["CZ"]="Czech Republic", ["CD"]="Democratic Republic of the Congo", ["DK"]="Denmark", ["DJ"]="Djibouti", ["DM"]="Dominica", ["DO"]="Dominican Republic", ["EC"]="Ecuador", ["SV"]="El Salvador", ["GQ"]="Equatorial Guinea", ["ER"]="Eritrea", ["EE"]="Estonia", ["ET"]="Ethiopia", ["FK"]="Falkland Islands", ["FO"]="Faroe Islands", ["FJ"]="Fiji", ["FI"]="Finland", ["FR"]="France", ["PF"]="French Polynesia", ["GA"]="Gabon", ["GM"]="Gambia", ["GE"]="Georgia", ["DE"]="Germany", ["GH"]="Ghana", ["GI"]="Gibraltar", ["GR"]="Greece", ["GL"]="Greenland", ["GD"]="Grenada", ["GU"]="Guam", ["GT"]="Guatemala", ["GN"]="Guinea", ["GW"]="Guinea-Bissau", ["GY"]="Guyana", ["HT"]="Haiti", ["VA"]="Holy See (Vatican City)", ["HN"]="Honduras", ["HK"]="Hong Kong", ["HU"]="Hungary", ["IS"]="Iceland", ["IN"]="India", ["ID"]="Indonesia", ["IR"]="Iran", ["IQ"]="Iraq", ["IE"]="Ireland", ["IM"]="Isle of Man", ["IL"]="Israel", ["IT"]="Italy", ["CI"]="Ivory Coast", ["JM"]="Jamaica", ["JP"]="Japan", ["JE"]="Jersey", ["JO"]="Jordan", ["KZ"]="Kazakhstan", ["KE"]="Kenya", ["KI"]="Kiribati", ["KO"]="Kosovo", ["KW"]="Kuwait", ["KG"]="Kyrgyzstan", ["LA"]="Laos", ["LV"]="Latvia", ["LB"]="Lebanon", ["LS"]="Lesotho", ["LR"]="Liberia", ["LY"]="Libya", ["LI"]="Liechtenstein", ["LT"]="Lithuania", ["LU"]="Luxembourg", ["MO"]="Macau", ["MK"]="Macedonia", ["MG"]="Madagascar", ["MW"]="Malawi", ["MY"]="Malaysia", ["MV"]="Maldives", ["ML"]="Mali", ["MT"]="Malta", ["MH"]="Marshall Islands", ["MR"]="Mauritania", ["MU"]="Mauritius", ["YT"]="Mayotte", ["MX"]="Mexico", ["FM"]="Micronesia", ["MD"]="Moldova", ["MC"]="Monaco", ["MN"]="Mongolia", ["ME"]="Montenegro", ["MS"]="Montserrat", ["MA"]="Morocco", ["MZ"]="Mozambique", ["NA"]="Namibia", ["NR"]="Nauru", ["NP"]="Nepal", ["NL"]="Netherlands", ["AN"]="Netherlands Antilles", ["NC"]="New Caledonia", ["NZ"]="New Zealand", ["NI"]="Nicaragua", ["NE"]="Niger", ["NG"]="Nigeria", ["NU"]="Niue", ["NI"]="Norfolk Island", ["KP"]="North Korea", ["MP"]="Northern Mariana Islands", ["NO"]="Norway", ["OM"]="Oman", ["PK"]="Pakistan", ["PW"]="Palau", ["PA"]="Panama", ["PG"]="Papua New Guinea", ["PY"]="Paraguay", ["PE"]="Peru", ["PH"]="Philippines", ["PN"]="Pitcairn Islands", ["PL"]="Poland", ["PT"]="Portugal", ["PR"]="Puerto Rico", ["QA"]="Qatar", ["CG"]="Republic of the Congo", ["RO"]="Romania", ["RU"]="Russia", ["RW"]="Rwanda", ["BL"]="Saint Barthelemy", ["SH"]="Saint Helena", ["KN"]="Saint Kitts and Nevis", ["LC"]="Saint Lucia", ["MF"]="Saint Martin", ["PM"]="Saint Pierre and Miquelon", ["VC"]="Saint Vincent and the Grenadines", ["WS"]="Samoa", ["SM"]="San Marino", ["ST"]="Sao Tome and Principe", ["SA"]="Saudi Arabia", ["SN"]="Senegal", ["RS"]="Serbia", ["SC"]="Seychelles", ["SL"]="Sierra Leone", ["SG"]="Singapore", ["SK"]="SK", ["SI"]="Slovenia", ["SB"]="Solomon Islands", ["SO"]="Somalia", ["ZA"]="South Africa", ["KR"]="South Korea", ["ES"]="Spain", ["LK"]="Sri Lanka", ["SD"]="Sudan", ["SR"]="Suriname", ["SJ"]="Svalbard", ["SZ"]="Swaziland", ["SE"]="Sweden", ["CH"]="Switzerland", ["SY"]="Syria", ["TW"]="Taiwan", ["TJ"]="Tajikistan", ["TZ"]="Tanzania", ["TH"]="Thailand", ["TL"]="Timor-Leste", ["TG"]="Togo", ["TK"]="Tokelau", ["TO"]="Tonga", ["TT"]="Trinidad and Tobago", ["TN"]="Tunisia", ["TR"]="Turkey", ["TM"]="Turkmenistan", ["TC"]="Turks and Caicos Islands", ["TV"]="Tuvalu", ["UG"]="Uganda", ["UA"]="Ukraine", ["AE"]="United Arab Emirates", ["GB"]="United Kingdom", ["US"]="United States", ["UY"]="Uruguay", ["VI"]="US Virgin Islands", ["UZ"]="Uzbekistan", ["VU"]="Vanuatu", ["VE"]="Venezuela", ["VN"]="Vietnam", ["WF"]="Wallis and Futuna", ["WB"]="West Bank", ["EH"]="Western Sahara", ["YE"]="Yemen", ["ZM"]="Zambia", ["ZW"]="Zimbabwe" } function LanguageChat(thePlayer, cmd, ...) local msg = table.concat({...}, " ") for _,players in ipairs(getElementsByType("player")) do local r, g, b = getPlayerNametagColor (thePlayer) local name = getPlayerName(thePlayer) local mycountry = exports.admin:getPlayerCountry(thePlayer) if countryCode and countryNames[countryCode] then local name = countryNames[countryCode] end local playerscountry = exports.admin:getPlayerCountry(players) if (playerscountry == mycountry) then
  4. server.lua:229:bad argument #1 to ipairs' (table expected, got function )
  5. Thanks Lol i start making it 2 minute ago hhh Thanks Everyone
  6. No One can help u without posting ur code
  7. how to make language chat !! give me examples pls
  8. not work 0 errors 0 warning but gate don't move
  9. function onBaseGateMarkerHit(hitPlayer) if not hitPlayer then return end if not gateMarkers[source] then return end local account = getPlayerAccount(hitPlayer) if not account or isGuestAccount(account) then return end local playerAcc = getAccountName(account) [color=#FF0000]local gang = exports["SAEGGroups"]:getPlayerGroup(playerAcc)[/color] if (gang == tostring(gateMarkers[source].clan)) then if getElementData(source,"gateMoving") then return end setElementData(source,"gateMoving",true) moveObject(gateMarkers[source].gate, gateMarkers[source].speed, unpack(gateMarkers[source].moveTo)) table.insert(playersInGate[source], hitPlayer) --if not isTimer(gateTimers[source]) then --gateTimers[source] = setTimer(checkGate,1000,0,source) setTimer(moveObject,gateMarkers[source].moveBack or 3000,1,gateMarkers[source].gate,gateMarkers[source].speed,unpack(gateMarkers[source].gatePos)) setTimer(setElementData,3000,1,source,"gateMoving",false) --end end end
  10. help guys pls
  11. Questions : 1-I can add vip vehicles using getElementData ?? 2- in my vip system have 2 exports isPlayerVIP and getVipLevelFromName 3-what is the best way to add vip vehicles !! getElementdata or the exprots !!! Vehciles System Code : jWin = guiCreateWindow(550,560,200,200,"SAEG Vehicle Spawner",false) guiSetVisible(jWin,false) function openGui() guiSetVisible(jWin,true) function spawnveh(button, press) if(press) then if(button == "1") then x, y, z = getElementPosition(localPlayer) triggerServerEvent("crVeh", getRootElement(), 468, x, y, z, localPlayer) end if(button == "2") then x, y, z = getElementPosition(localPlayer) triggerServerEvent("crVeh", getRootElement(), 457, x, y, z, localPlayer) end if(button == "3") then x, y, z = getElementPosition(localPlayer) triggerServerEvent("crVeh", getRootElement(), 412, x, y, z, localPlayer) end end end addEventHandler("onClientKey", getRootElement(), spawnveh) guiWindowSetSizable(jWin,false) tGrid = guiCreateGridList(0,20,190,170,false,jWin) guiGridListAddColumn(tGrid, "Key", 0.20) guiGridListAddColumn(tGrid, "Name", 0.65) row1 = guiGridListAddRow(tGrid) row2 = guiGridListAddRow(tGrid) row3 = guiGridListAddRow(tGrid) guiGridListSetItemText(tGrid, row1, 1, tostring(row1+1), false, false) guiGridListSetItemText(tGrid, row1, 2, "Sanchez", false, false) guiGridListSetItemText(tGrid, row2, 1, tostring(row2+1), false, false) guiGridListSetItemText(tGrid, row2, 2, "Caddy", false, false) guiGridListSetItemText(tGrid, row3, 1, tostring(row3+1), false, false) guiGridListSetItemText(tGrid, row3, 2, "Voodoo", false, false) end addEvent("markerHitted", true) addEventHandler("markerHitted", getRootElement(), openGui) function hideGui() guiSetVisible(jWin,false) removeEventHandler("onClientKey", getRootElement(), spawnveh) end addEvent("markerLeaved", true) addEventHandler("markerLeaved", getRootElement(), hideGui)
  12. group_s.lua:430:bad argument @ 'getElmentData' [Expected element at argument 1, got string 'oussama'] code : Group_s.lua function getPlayerGroup ( player ) local g = getElementData ( player, "Group" ) or "None" if ( g:lower ( ) == "none" ) then g = nil end return g end function refreshPlayerGroupPanel ( player ) triggerClientEvent ( player, "SAEGGroups->pEvents:onPlayerRefreshPanel", player ) -- memory sweep player = nil end and that Gate Code : function onBaseGateMarkerHit(hitPlayer) if not hitPlayer then return end if not gateMarkers[source] then return end local account = getPlayerAccount(hitPlayer) if not account or isGuestAccount(account) then return end local playerAcc = getAccountName(account) local gang = exports["SAEGGroups"]:getPlayerGroup(playerAcc) if (gang == tostring(gateMarkers[source].clan)) then if getElementData(source,"gateMoving") then return end setElementData(source,"gateMoving",true) moveObject(gateMarkers[source].gate, gateMarkers[source].speed, unpack(gateMarkers[source].moveTo)) table.insert(playersInGate[source], hitPlayer) --if not isTimer(gateTimers[source]) then --gateTimers[source] = setTimer(checkGate,1000,0,source) setTimer(moveObject,gateMarkers[source].moveBack or 3000,1,gateMarkers[source].gate,gateMarkers[source].speed,unpack(gateMarkers[source].gatePos)) setTimer(setElementData,3000,1,source,"gateMoving",false) --end end end
  13. Sloved
  14. guys there is a way for make interior for Group !!
  15. New Code : exports.scoreboard:addScoreboardColumn('Country') addEventHandler("onPlayerJoin", root, function () country = exports.admin:getCountry(source) local flag = ":admin/client/images/flags/"..country..".png" setElementData(source, "Country",{type = "image", src = flag, height = 12, width = 16} and country or "N/A") end) still same problem help guys pls
  16. Code : exports.scoreboard:addScoreboardColumn('Country') addEventHandler("onPlayerJoin", root, function () local flag = ":admin/client/images/flags/"..country..".png" setElementData(source, "Country",{type = "image", src = flag, height = 12, width = 16} and country or "N/A") end) Images not showing
  17. Thanks You
  18. it's exports example : exports.saegwarpmanager:makeWarp ( { pos = { 2104.77, -1806.47, 13.55 }, toPos = { 372.35, -133.55, 1000.45 }, cInt = 0, cDim = 0, tInt = 5, tDim = 5 } ) ---2 exports.saegwarpmanager:makeWarp ( { pos = { 372.35, -133.55, 1000.45 }, toPos = { 2104.77, -1806.47, 13.55 }, cInt = 5, cDim = 5, tInt = 0, tDim = 0 } ) ---2
  19. You Right
  20. check here : http://i.imgur.com/SdK6dGy.jpg
  21. help pls
  22. that screen shot for the problem : http://i.imgur.com/SdK6dGy.jpg code : Client : addEvent ( "SAEGWarpManager->SetPlayerPositionInteriorDimension", true ) addEventHandler ( "SAEGWarpManager->SetPlayerPositionInteriorDimension", root, function ( x, y, z, int, dim ) setElementPosition ( source, x, y, z ) source.dimension = dim source.interior = int end ) server : local warps = { } local fadeScreen = fadeCamera local hitWarp = nil local warping = false function makeWarp ( data ) if ( not data or type ( data ) ~= "table" or not data.pos or not data.toPos ) then return false end local cInt = data.cInt or 0 local cDim = data.cDim or 0 local tInt = data.tInt or 0 local tDim = data.tDim or 0 local size = data.size or 2 local r, g, b, a = 255, 255, 0, 120 if ( data.color ) then if ( data.color.r ) then r = data.color.r end if ( data.color.g ) then g = data.color.g end if ( data.color.b ) then b = data.color.b end if ( data.color.a ) then a = data.color.a end end local type = data.type or "arrow" local x, y, z = unpack ( data.pos ) local i = 0 while ( warps [ i ] ) do i = i + 1 end data.cInt = cInt data.cDim = cDim data.tInt = tInt data.tDim = tDim data.size = size data.color = { } data.color.r = r data.color.g = g data.color.b = b data.color.a = a data.type = type data.sResource = getResourceName ( sourceResource or getThisResource() ) warps [ i ] = Marker.create ( x, y, z, type, size, r, g, b, a ) setElementData ( warps [ i ], "SAEGWarpManager->WarpData", data, false ) setElementInterior ( warps [ i ], cInt ) setElementDimension ( warps [ i ], cDim ) addEventHandler ( "onClientMarkerHit", warps [ i ], onWarpHit ) addEventHandler ( "onClientResourceStop", getResourceRootElement ( getResourceFromName ( data.sResource ) ), function ( source ) local res = getResourceName ( source ) for i, v in pairs ( warps ) do local d = getElementData ( v, "SAEGWarpManager->WarpData" ) if ( d.sResource == res ) then removeEventHandler ( "onClientMarkerHit", v, onWarpHit ) destroyElement ( v ) warps [ i ] = nil end end end ) end function onWarpHit ( p ) if ( source.dimension == p.dimension and source.interior == p.interior and p == localPlayer ) then hitWarp = source bindKey ( "lshift", "down", beginPlayerWarp ) bindKey ( "rshift", "down", beginPlayerWarp ) end end function triggerWarp ( p, source ) if ( p and isElement ( p ) and getElementType ( p ) == "player" and p == localPlayer and not isPedInVehicle ( p ) ) then local int, dim = getElementInterior ( localPlayer ), getElementDimension ( localPlayer ) if ( int == getElementInterior ( source ) and dim == getElementDimension ( source ) ) then local data = getElementData ( source, "SAEGWarpManager->WarpData" ) toggleAllControls ( false ) fadeScreen ( false ) setTimer ( function ( data ) local int = data.tInt local dim = data.tDim local x, y, z = unpack ( data.toPos ) triggerServerEvent ( "SAEGWarpManager->SetPlayerPositionInteriorDimension", localPlayer, x, y, z, int, dim ) fadeScreen ( true ) toggleAllControls ( true ) end, 1000, 1, data ) end end end local prog = 0 local mode = true local sx_, sy_ = guiGetScreenSize ( ) local sx, sy = sx_/1280, sy_/720 addEventHandler ( "onClientPreRender", root, function ( ) prog = prog + 0.01 for i, v in pairs ( warps ) do local data = getElementData ( v, "SAEGWarpManager->WarpData" ) local x, y, z = unpack ( data.pos ) local cx, cy, cz = getElementPosition ( v ) if ( mode ) then ix, iy, iz = interpolateBetween ( cx, cy, z, cx, cy, z+0.5, prog, "InOutQuad" ) else ix, iy, iz = interpolateBetween ( cx, cy, z+0.5, cx, cy, z, prog, "InOutQuad" ) end setElementPosition ( v, x, y, iz ) if ( prog >= 1.1 ) then mode = not mode prog = 0 end end if ( hitWarp ) then if ( not isElementWithinMarker ( localPlayer, hitWarp ) ) then hitWarp = nil warping = false unbindKey ( "lshift", "down", beginPlayerWarp ) unbindKey ( "rshift", "down", beginPlayerWarp ) end if ( hitWarp and not warping ) then dxDrawBoarderedText ( "Press Shift To Warp", 0, sy*600, sx_, sx*620, tocolor ( 0, 255, 0, 255 ), sy*1.5, "pricedown", "center", "top", nil, nil, nil, nil, nil, nil, nil, nil, 1.5 ) end end end ) function beginPlayerWarp ( ) if ( warping ) then return end triggerWarp ( localPlayer, hitWarp ) warping = true end function dxDrawBoarderedText ( text, x, y, endX, endY, color, size, font, alignX, alignY, clip, wordBreak, postGUI, colorCode, subPixelPos, fRot, fRotCX, fRotCY, offSet ) local text = tostring ( text ) local x = tonumber(x) or 0 local y = tonumber(y) or 0 local endX = tonumber(endX) or x local endY = tonumber(endY) or y local color = color or tocolor ( 255, 255, 255, 255 ) local size = tonumber(size) or 1 local font = font or "default" local alignX = alignX or "left" local alignY = alignY or "top" local clip = clip or false local wordBreak = wordBreak or false local postGUI = postGUI or false local colorCode = colorCode or false local subPixelPos = subPixelPos or false local fRot = tonumber(fRot) or 0 local fRotCX = tonumber(fRotCX) or 0 local fRotCY = tonumber(fRotCy) or 0 local offSet = tonumber(offSet) or 1 local t_g = text:gsub ( "#%x%x%x%x%x%x", "" ) local a = bitExtract ( color, 24, 8 ) dxDrawText ( t_g, x-offSet, y-offSet, endX, endY, tocolor(0,0,0,a), size, font, alignX, alignY, clip, wordBreak, postGUI, colorCode, subPixelPos, fRot, fRotCX, fRotCY, offSet ) dxDrawText ( t_g, x+offSet, y+offSet, endX, endY, tocolor(0,0,0,a), size, font, alignX, alignY, clip, wordBreak, postGUI, colorCode, subPixelPos, fRot, fRotCX, fRotCY, offSet ) dxDrawText ( t_g, x-offSet, y, endX, endY, tocolor(0,0,0,a), size, font, alignX, alignY, clip, wordBreak, postGUI, colorCode, subPixelPos, fRot, fRotCX, fRotCY, offSet ) dxDrawText ( t_g, x+offSet, y, endX, endY, tocolor(0,0,0,a), size, font, alignX, alignY, clip, wordBreak, postGUI, colorCode, subPixelPos, fRot, fRotCX, fRotCY, offSet ) dxDrawText ( t_g, x, y-offSet, endX, endY, tocolor(0,0,0,a), size, font, alignX, alignY, clip, wordBreak, postGUI, colorCode, subPixelPos, fRot, fRotCX, fRotCY, offSet ) dxDrawText ( t_g, x, y+offSet, endX, endY, tocolor(0,0,0,a), size, font, alignX, alignY, clip, wordBreak, postGUI, colorCode, subPixelPos, fRot, fRotCX, fRotCY, offSet ) return dxDrawText ( text, x, y, endX, endY, color, size, font, alignX, alignY, clip, wordBreak, postGUI, colorCode, subPixelPos, fRot, fRotCX, fRotCY, offSet ) end
  23. Just change the outputChatBox ... is it that hard? outputChatBox ( "/spam /caps ...", player ); and on / off i won't it player can use infohelp 564654time and it's still On i want it
  24. so ? 0 help ?? guys help pls
  25. That Worked fine but i want it like that outputChatBox ( "/Spam /Caps ...Etc.. <--- Input chat message you want", source ) in infohelp
×
×
  • Create New...