Jump to content

SnoopCat

Members
  • Posts

    413
  • Joined

  • Last visited

Everything posted by SnoopCat

  1. hello?
  2. works whit water... and it changes white to black color but car doesnt works and i want car only whit random rgb colors..
  3. why u posted this? its for blending colors of Cars?
  4. shader water is diferent as the script
  5. but why the code i posted doent works if it works whit setWaterColor
  6. blending its possibly on cars.... i see it on server FFS racing.. and the script on the video is the same as the first one i posted but whit setWaterColor
  7. it changes but not like showed on video...
  8. i mean this... this is an example whit the same script i gived but whit setWaterColor.
  9. its change colors but not degraded
  10. can u send me the race_client via pm plz? i mean the fixed one.
  11. humm can i send u my race client via pm? cuz i dont want to post it here..
  12. plz make it.
  13. Not working
  14. i want to change vehiclecolors degraded randmly , i make this script (well not all by myself) for water color and works fine.... but when i chane it to setVehicleColor it doesnt works can someone helps? red = math.random(0, 255) green = math.random(0, 255) blue = math.random(0, 255) aRed = (1 + math.random(0, 1000)/1000) * 1.3 aGreen = (1 + math.random(0, 1000)/1000) * 1.3 aBlue = (1 + math.random(0, 1000)/1000) * 1.3 function changeColor() if ((red + aRed) < 0) or ((red + aRed) > 255) then aRed = aRed * -1 end red = red + aRed if ((green + aGreen) < 0) or ((green + aGreen) > 255) then aGreen = aGreen * -1 end green = green + aGreen if ((blue + aBlue) < 0) or ((blue + aBlue) > 255) then aBlue = aBlue * -1 end blue = blue + aBlue setVehicleColor(red, green, blue) end addEventHandler ( "onClientPreRender", root, changeColor ) PD:it only changes vehicle color randomly but not whit degraded
  15. umm srry but i dont understand
  16. srry but any help plZ?
  17. hello i was checking my server debugscript 3 and this is what i get. here is the line its says where is the problem: function updateSpecs() local snr = 0 for k, v in ipairs(getElementsByType("player")) do if (getElementData(v, 'Player.Name')) then if getElementData(v, 'spectates') == getLocalPlayer() then snr = snr + 1 end end end stext = tostring("Spectators: "..snr) g_dxGUI['spectators']:text(stext) end im a little noob on scripting so idk what must be the problem... can someone helps me?
  18. solved!
  19. hello there i have a script that add a admins list or lvl lists when u thype some comands it appears on chatbox, its only a Serverside lua, when i add new lvls it doesnt works and seems to be all ok can someone help me? function createAdminList() adminList = { } adminList["admin"] = {} adminList["super_mod"] = {} adminList["mod"] = {} adminList["junior"] = {} adminList["DueñoClan"] = {} for k, v in ipairs(getElementsByType("player")) do if not isGuestAccount(getPlayerAccount(v)) then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("Admin")) then table.insert(adminList["admin"], v) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("SuperModerator")) then table.insert(adminList["super_mod"], v) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("Moderator")) then table.insert(adminList["mod"], v) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("juniors")) then table.insert(adminList["junior"], v) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("DueñoClan")) then table.insert(adminList["DueñoClan"], v) end end end end return adminList end function AdminList(sourcePlayer, command) local adminList = createAdminList() if #adminList["admin"] == 0 then outputConsole("No hay usuario De nivel 4", sourcePlayer,false ) else for k, v in ipairs(adminList["admin"]) do outputChatBox("Nivel 4: " .. getPlayerName(v), getRootElement (), 255, 0, 0, false) end end if #adminList["super_mod"] == 0 then outputConsole("No hay usuario De Nivel 3", sourcePlayer,false ) else for k, v in ipairs(adminList["super_mod"]) do outputChatBox("Nivel 3: " .. getPlayerName(v), getRootElement (), 0, 255, 0, false) end end if #adminList["mod"] == 0 then outputConsole("No hay usuarios De nivel 2", sourcePlayer,false ) else for k, v in ipairs(adminList["mod"]) do outputChatBox("Nivel 2: " .. getPlayerName(v), getRootElement (), 255, 0, 255, false) end end if #adminList["junior"] == 0 then outputConsole("No hay Juniors", sourcePlayer,false ) else for k, v in ipairs(adminList["junior"]) do outputChatBox("Nivel Junior: " .. getPlayerName(v), getRootElement (), 255, 255, 0, false) end end if #adminList["DueñoClan"] == 0 then outputConsole("No hay Dueños de clanes", sourcePlayer,false ) else for k, v in ipairs(adminList["DueñoClan"]) do outputChatBox("DueNos Clanes: " .. getPlayerName(v), getRootElement (), 0, 0, 255, false) end end outputChatBox("--------------------", sourcePlayer, 0, 255, 0, false) end addCommandHandler("admins", AdminList) addCommandHandler("lvl", AdminList) addCommandHandler("lvls", AdminList) addCommandHandler("LVL", AdminList) addCommandHandler("LVLS", AdminList)
  20. aewesome map but first portal bugged
  21. AWESOME best MTA map ever....
  22. but doesnt changes degraded
  23. yup but how i make it change colors by degrade?
  24. the one posted zorrigas is working but it is not like degrading
  25. what u mean whit point 2 and 3?
×
×
  • Create New...