Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. Hmmm, I tinhk its your crack bugged (gta_sa.exe)
  2. Maybe reinstall GTA:SA and MTA:SA
  3. Do you mean Shader water?
  4. uh? what do you mean? if you want change car color?
  5. I have tested and works, are you using server-side? if so, change to client-side
  6. 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() for i, v in ipairs(getElementsByType("vehicle")) do 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(v, red, green, blue) end end addEventHandler ( "onClientPreRender", root, changeColor )
  7. callRemote and make PHP with tables if player joined
  8. hookeridlist = { 85, 87, 85, 90, 152, 169, 178, 238, 244, 256, 257, 264, 68,} -> hookeridlist = { 85, 87, 85, 90, 152, 169, 178, 238, 244, 256, 257, 264, 68}
  9. Try this server-side: addEventHandler("onPlayerSpawn",root, function() setElementData(source,"ping",getPlayerPing(source)) setElementData(source,"health",getPlayerMoney(source)) setElementData(source,"ip",getPlayerIP(source)) setElementData(source,"serial",getPlayerSerial(source)) setElementData(source,"armour",getPedArmor(source)) end )
  10. Sorry the again offtopic. @Solidsnake14 thats why i dont have any ideas, becuase i am deaf. I have problem with deaf =( So i can copy ideas
  11. Agree with qaisjp. Im not sure if there is color for GTA:SA Offtopic: qaisjp hm uh... do you like race gamemode?
  12. What do you mean? If you mean im post this topic who steal/mod/car/etc?
  13. https://community.multitheftauto.com/index.php?p= ... ts&id=2960 https://community.multitheftauto.com/index.php?p= ... ts&id=2957 There is Insults.
  14. But you help me a bit for google api, do you remember?
  15. Im not copying your GUI Edit: Oh i forget for credis you for link or not?
  16. I have made a google translate and works fine. http://i52.tinypic.com/w0i3ra.png I will give you both credis.
  17. Seach "dxDrawText color", and edit in race resource.
  18. tab1 = guiCreateTab("Info",tabPanel) playerPingLabel = guiCreateLabel(8,165,320,18,"Your Ping:",false,tab1) guiLabelSetColor(playerPingLabel,255,255,0) playerIPLabel = guiCreateLabel(8,190,320,18,"Your IP: ",false,tab1) guiLabelSetColor(playerIPLabel,255,255,0) playerSrLabel = guiCreateLabel(8,211,320,18,"Your Serial: ",false,tab1) guiLabelSetColor(playerSrLabel,255,255,0) -------------------------------------------------------------------- local ping = getElementData ( getLocalPlayer(), "ping") local ips = getElementData ( getLocalPlayer(), "ips") local srs = getElementData ( getLocalPlayer(), "srs") guiSetText ( playerSrLabel, "Your serial: " ..tostring(srs).. " " ,true,tab1) guiSetText ( playerPingLabel, "Your Ping: " ..tostring(ping).. " " ,true,tab1) guiSetText ( playerIPLabel, "Your ip: " ..tostring(ips).. " " ,true,tab1) Try this. edit: agree with BinSlayer1
  19. triggerClientEvent triggerServerEvent Use a trigger.
  20. Are you using Server-side? If so, change to client-side. resetWaterColor and setWaterColor is only for client-side Edit: Or you can use trigger https://wiki.multitheftauto.com/wiki/TriggerClientEvent
  21. and 14 lines. change it to "onClientResourceStart"
  22. Cadu12

    command /spec

    "if" is wrong. "getLocalPlayer" is only for client-side function dramex(player, command) if (getElementHealth(player) >= 50) then outputChatBox ( " Erorr " ) else local team =getTeamFromName("Spectator") setPlayerTeam(player, team) end end addCommandHandler ( "spec", dramex)
  23. Fixed, it was php. so thank you for help. =]
  24. mta::doReturn( $getPlayerTraceInfo["ip"], $getPlayerTraceInfo["contry"] ); outputServerLog(sum[2]) ?
×
×
  • Create New...