Jump to content

StreetSaintz

Members
  • Posts

    81
  • Joined

  • Last visited

Everything posted by StreetSaintz

  1. ye that fixed he error but for some reason it doesn't want to delete the money
  2. i get this error [20:43:44] ERROR: para\parasil.lua:2: bad argument #1 to 'ipairs' (table expecte d, got nil)
  3. you mean remove all account data from key by command ? sort of, i just want to delete all cash in server
  4. sorry for reposting in this topic but i have a question about if it is possible to delete all money in the server like /setAccountData deleteALL money
  5. StreetSaintz

    ZAMAN AŞIMI

    translate; adam diyor senin serial ne oldunu, bi oyuna girince F8 bas ve serial yaz oradaki cikan numaralari bura yaz ve gönder
  6. yeahn i've added another end now so i don't get any errors anymore but it doesn't show anything when a player joins the server
  7. Can you explain better what you exactly want to do?
  8. i don't know, that was my question if i am allowed to use 2 functions and i am getting these errors line 293; http://i.imgur.com/xkqd1RU.png
  9. Hey guys, i'm trying to add country flags to my joinquits but i don't know if i am allowed to use 2 functions after each other this is what i got: addEventHandler('onClientPlayerJoin', root, showcountry) function reason() function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then AddingS("join", getPlayerName(source).."#FFFFFF has joined the game#FF4000[#FFFFFF :admin/client/images/flags/"..flag..".png #FF4000]") else flag = "N/A" end end )
  10. i've already fixed it guys and thanks for helping me out, i really appreciate it!
  11. it not about the music it doesn't show up that a player joined the server
  12. Hey guys, i have this script it works with quit and when i change my nick but it doesn't do anything when a player joins the server: part of the code: local joinSoundBlock = true addEvent("onPlayerJoinFlag", true) addEventHandler("onPlayerJoinFlag", getRootElement(), function(thePlayer, thecountry) AddingS("join", getPlayerName(thePlayer).."#FFFFFF Oyuna girdi #FF4000[#ffffff"..thecountry.."#FF4000]") if(joinSoundBlock)then local sound = playSound("joinSound.mp3") setSoundVolume(sound, 0.2) joinSoundBlock = false setTimer(function() joinSoundBlock = true end, 30000, 1) end end )
  13. I'm working on adding colors to the speed script i use but i got this problem the code i use dxDrawColorText ("0000", 4, screenHeight - dxGetFontHeight(2.00, 'bankgothic')/2, 100, 100, tocolor ( 0, 0, 0, 255 ), 1.2, 'bankgothic', 0.55, 'left') and i get this error attempt to perform arithmetic on global 'screenheight'
  14. StreetSaintz

    FONT

    Hey guys, anyone knows what this font is ?
  15. found it but now i got a problem that i wanted to edit it so i can use html colors?
  16. Hey, i just wanted to ask where i can change the admin messages like, if i mute a player it says ' USER has been muted by user'. but i can't find the location where to edit those messages? thanks, streetsaintz
  17. i get this error now: scriptcode: addEventHandler("onClientVehicleCollision", root, function(hitElement) local driver, hDriver if source == getPedOccupiedVehicle(localPlayer) and hitElement and getElementType(hitElement) == "vehicle" then driver = getVehicleController(source) hDriver = getVehicleController(hitElement) end if hDriver and driver then setElementData(driver, "lastcol", hDriver) end local queue = {} local font = "default-bold" local size = 3 local sw, sh = guiGetScreenSize() local t = {} local h = dxGetFontHeight(size, font) local sa = {w = 300, h = 70, x = sw / 2 - 200, y = sh - 200, p = 0, q = 0, i = 0, q_i = 0, portion = "", title = 0, dec = 0, dec_i = 0} RGBToHex = function(red, green, blue, alpha) if red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255 or alpha and (alpha < 0 or alpha > 255) then return nil end if alpha then return string.format("#%.2X%.2X%.2X%.2X", red, green, blue, alpha) else return string.format("#%.2X%.2X%.2X", red, green, blue) end end addEventHandler("onClientRender", root, function() -- upvalues: t , size , font , sw , sh , h for i,v in ipairs(t) do local ti = getTickCount() - v[2] if ti <= 5000 then local w = dxGetTextWidth(v[1]:gsub("#%x%x%x%x%x%x", ""), size, font) local a = 255 if ti < 1000 then a = a * (getTickCount() - v[2]) / 1000 elseif ti > 4000 then a = a * (5000 - ti) / 1000 end dxDrawText(v[1]:gsub("#%x%x%x%x%x%x", ""), sw / 2 - w / 2 - 1, sh - 220 + i * h - 1, sw, sh, tocolor(0, 0, 0, a), size, font, "left", "top", false, false, true, true, false) dxDrawText(v[1], sw / 2 - w / 2, sh - 220 + i * h, sw, sh, tocolor(255, 255, 255, a), size, font, "left", "top", false, false, true, true, false) else table.remove(t, i) end end end ) addEventHandler("onClientPlayerWasted", root, function() -- upvalues: t , queue local k = getElementData(source, "lastcol") if isElement(k) then local r, g, b = 255, 255, 255 if source == localPlayer then if getPlayerTeam(k) then r, g, b = getTeamColor(getPlayerTeam(k)) end table.insert(t, 1, {"Seni oldurdu :: " .. string.format("#%.2X%.2X%.2X", r, g, b) .. getPlayerName(k), getTickCount()}) elseif k == localPlayer then if getPlayerTeam(source) then r, g, b = getTeamColor(getPlayerTeam(source)) end table.insert(t, 1, {"Sen bi oyunucuyu oldurdun :: " .. string.format("#%.2X%.2X%.2X", r, g, b) .. getPlayerName(source), getTickCount()}) end local r1, g1, b1 = 255, 255, 255 local r2, g2, b2 = 255, 255, 255 if getPlayerTeam(k) then r1, g1, b1 = getTeamColor(getPlayerTeam(k)) end if getPlayerTeam(source) then r2, g2, b2 = getTeamColor(getPlayerTeam(source)) end table.insert(queue, {getPlayerName(k) .. " #ffffffkilled " .. getPlayerName(source), {r1, g1, b1}, {r2, g2, b2}}) end end ) addCommandHandler("sa", function() -- upvalues: sa sa.state = not sa.state sa.i = 0 sa.p = 0 sa.q = 0 sa.q_i = 0 sa.title = 0 sa.dec = 0 sa.dec_i = 0 end )
  18. it still doesn't show anything, i don't see anything showing up on debugscript 3 or console.
  19. like this ? : local driver, hDriver if source == getPedOccupiedVehicle(localPlayer) and hitElement and getElementType(hitElement) == "vehicle" then driver = getVehicleController(source) hDriver = getVehicleController(hitElement) end if hDriver and driver then setElementData(driver, "lastcol", hDriver) end ) local queue = {} local font = "default-bold" local size = 3 local sw, sh = guiGetScreenSize() local t = {} local h = dxGetFontHeight(size, font) local sa = {w = 300, h = 70, x = sw / 2 - 200, y = sh - 200, p = 0, q = 0, i = 0, q_i = 0, portion = "", title = 0, dec = 0, dec_i = 0} RGBToHex = function(red, green, blue, alpha) if red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255 or alpha and (alpha < 0 or alpha > 255) then return nil end if alpha then return string.format("#%.2X%.2X%.2X%.2X", red, green, blue, alpha) else return string.format("#%.2X%.2X%.2X", red, green, blue) end end addEventHandler("onClientRender", root, function() -- upvalues: t , size , font , sw , sh , h for i,v in ipairs(t) do local ti = getTickCount() - v[2] if ti <= 5000 then local w = dxGetTextWidth(v[1]:gsub("#%x%x%x%x%x%x", ""), size, font) local a = 255 if ti < 1000 then a = a * (getTickCount() - v[2]) / 1000 elseif ti > 4000 then a = a * (5000 - ti) / 1000 end dxDrawText(v[1]:gsub("#%x%x%x%x%x%x", ""), sw / 2 - w / 2 - 1, sh - 220 + i * h - 1, sw, sh, tocolor(0, 0, 0, a), size, font, "left", "top", false, false, true, true, false) dxDrawText(v[1], sw / 2 - w / 2, sh - 220 + i * h, sw, sh, tocolor(255, 255, 255, a), size, font, "left", "top", false, false, true, true, false) else table.remove(t, i) end end end ) addEventHandler("onClientPlayerWasted", root, function() -- upvalues: t , queue local k = getElementData(source, "lastcol") if isElement(k) then local r, g, b = 255, 255, 255 if source == localPlayer then if getPlayerTeam(k) then r, g, b = getTeamColor(getPlayerTeam(k)) end table.insert(t, 1, {"Seni oldurdu :: " .. string.format("#%.2X%.2X%.2X", r, g, b) .. getPlayerName(k), getTickCount()}) elseif k == localPlayer then if getPlayerTeam(source) then r, g, b = getTeamColor(getPlayerTeam(source)) end table.insert(t, 1, {"Sen bi oyunucuyu oldurdun :: " .. string.format("#%.2X%.2X%.2X", r, g, b) .. getPlayerName(source), getTickCount()}) end local r1, g1, b1 = 255, 255, 255 local r2, g2, b2 = 255, 255, 255 if getPlayerTeam(k) then r1, g1, b1 = getTeamColor(getPlayerTeam(k)) end if getPlayerTeam(source) then r2, g2, b2 = getTeamColor(getPlayerTeam(source)) end table.insert(queue, {getPlayerName(k) .. " #ffffffkilled " .. getPlayerName(source), {r1, g1, b1}, {r2, g2, b2}}) end end ) addCommandHandler("sa", function() -- upvalues: sa sa.state = not sa.state sa.i = 0 sa.p = 0 sa.q = 0 sa.q_i = 0 sa.title = 0 sa.dec = 0 sa.dec_i = 0 end )
  20. i got this script to get who killed you but there is somthing wrong it doesn't do anything addEventHandler("onClientVehicleCollision", root, function(hitElement) if source == getPedOccupiedVehicle(localPlayer) and hitElement and getElementType(hitElement) == "vehicle" then local driver = getVehicleController(source) local hDriver = getVehicleController(hitElement) end if hDriver and driver then setElementData(driver, "lastcol", hDriver) end end ) local queue = {} local font = "default-bold" local size = 3 local sw, sh = guiGetScreenSize() local t = {} local h = dxGetFontHeight(size, font) local sa = {w = 300, h = 70, x = sw / 2 - 200, y = sh - 200, p = 0, q = 0, i = 0, q_i = 0, portion = "", title = 0, dec = 0, dec_i = 0} RGBToHex = function(red, green, blue, alpha) if red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255 or alpha and (alpha < 0 or alpha > 255) then return nil end if alpha then return string.format("#%.2X%.2X%.2X%.2X", red, green, blue, alpha) else return string.format("#%.2X%.2X%.2X", red, green, blue) end end addEventHandler("onClientRender", root, function() -- upvalues: t , size , font , sw , sh , h for i,v in ipairs(t) do local ti = getTickCount() - v[2] if ti <= 5000 then local w = dxGetTextWidth(v[1]:gsub("#%x%x%x%x%x%x", ""), size, font) local a = 255 if ti < 1000 then a = a * (getTickCount() - v[2]) / 1000 elseif ti > 4000 then a = a * (5000 - ti) / 1000 end dxDrawText(v[1]:gsub("#%x%x%x%x%x%x", ""), sw / 2 - w / 2 - 1, sh - 220 + i * h - 1, sw, sh, tocolor(0, 0, 0, a), size, font, "left", "top", false, false, true, true, false) dxDrawText(v[1], sw / 2 - w / 2, sh - 220 + i * h, sw, sh, tocolor(255, 255, 255, a), size, font, "left", "top", false, false, true, true, false) else table.remove(t, i) end end end ) addEventHandler("onClientPlayerWasted", root, function() -- upvalues: t , queue local k = getElementData(source, "lastcol") if isElement(k) then local r, g, b = 255, 255, 255 if source == localPlayer then if getPlayerTeam(k) then r, g, b = getTeamColor(getPlayerTeam(k)) end table.insert(t, 1, {"you killed- " .. string.format("#%.2X%.2X%.2X", r, g, b) .. getPlayerName(k), getTickCount()}) elseif k == localPlayer then if getPlayerTeam(source) then r, g, b = getTeamColor(getPlayerTeam(source)) end table.insert(t, 1, {"someone killed you :: " .. string.format("#%.2X%.2X%.2X", r, g, b) .. getPlayerName(source), getTickCount()}) end local r1, g1, b1 = 255, 255, 255 local r2, g2, b2 = 255, 255, 255 if getPlayerTeam(k) then r1, g1, b1 = getTeamColor(getPlayerTeam(k)) end if getPlayerTeam(source) then r2, g2, b2 = getTeamColor(getPlayerTeam(source)) end table.insert(queue, {getPlayerName(k) .. " #ffffffkilled - " .. getPlayerName(source), {r1, g1, b1}, {r2, g2, b2}}) end end ) addCommandHandler("sa", function() -- upvalues: sa sa.state = not sa.state sa.i = 0 sa.p = 0 sa.q = 0 sa.q_i = 0 sa.title = 0 sa.dec = 0 sa.dec_i = 0 end )
×
×
  • Create New...