Jump to content

tigerman

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by tigerman

  1. Lol such a waste, ur CPU and ram are breaking down ur power of video card, if u could get new CPU and more RAM then u will never see lag in any game
  2. GTA San Andreas and it's probably because of MTA
  3. Just tryed couple days ago, setting up axis will take time but in the end it worked fine
  4. Yes setTimer(setServerName,100,0)
  5. Hello, i want to know if i add song to race map then it will start downloading scripts and it will take for couple minutes, but does it mean that markets that are added with script dosent work also ?
  6. Code by MTA forum moderator Aiboforcen function dxDrawColorText(str, ax, ay, bx, by, color, scale, font) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(tonumber("0x"..string.sub(col, 1, 2)), tonumber("0x"..string.sub(col, 3, 4)), tonumber("0x"..string.sub(col, 5, 6)), 255) end last = e+1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) end end copy it under nametags.lua functions and replace dxDrawText with dxDrawColorText
  7. This code is somewhere in this forum, but clearly ur too lazy to use search and im not helping either to copy theyr ideas
  8. tigerman

    SoH Clan

    get ur clan popular and they will be marked as wannabes so they will change it
  9. i have seen such colors in 1.0.5 already(DDC servers)
  10. heh thanks, havent noticed team functions ^^
  11. ArmyTeam = {} function NewTeam() ArmyTeam[source] = true end addEventHandler ( "onPlayerSpawn", getRootElement(), NewTeam ) function OldTeam() ArmyTeam[source] = false end addEventHandler ( "onPlayerWasted", getRootElement(), OldTeam ) function FindAllArmyTeamPlayers() for k,v in pairs(ArmyTeam) do local money = getPlayerMoney(v) setPlayerMoney ( v, money+500 ) end end The code should give 500 extra cash to all players who are in army when someone dies
  12. @ diegofkda onMarkerHit event dont work with attached markers
  13. add this addEvent('onLoadedAtClient', true) addEventHandler('onLoadedAtClient', g_ResRoot, function(player) if getOption('spawnmaponstart') and isPedDead(player) then spawnPlayer ( player, -1944.0366210938, 486.78268432617, 31.96875, 90.0, 0 ) end end, false ) add back to freeroam clientside: triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me)
  14. Hey, theres my code; Numberr = 0 --- < how to change this with command ? function EditNumber(pla,cmd,number) Numberr = number setTimer(NumberValue,1000,1) end addCommandHandler("editnumber",EditNumber) function NumberValue(Numberr) outputChatBox("Number is"..tostring(Numberr)) end and now the question is how to change upper Numberr that Numberr would be equal to number
  15. Hey, like subject says how to get rid of numbers.. like when u count 10/3 then awnser is 3,3333333 but how to make it just like 3 numbers after comma, so 3,33 thanks
  16. Hello dear community, i have little problem... I was going to make command that says the same what you... let me explain it with code function text( player , cmd , text ) outputChatBox("Admin says: "..text) end addCommandHandler("admsay",text) this text is argument, that should include whole sentence but unfortunately it cuts words after space one example, /admsay Hello players it outputs Admin says: Hello Any suggestion is helpful, thanks !
  17. whats the point of compile if u can decompile ?
  18. Thanks Dre, works perfect also thanks to Citizen for trying to help me this forum would be useless without you 2
  19. line 5 says error "attempt to concatenate field '?' (a nil value)"
  20. just name to outputChatBox would be nice.. then i can continue by myself
  21. function test (thePlayer,commandname,map1) local mapTable = {} for i, maps in ipairs(exports.mapmanager:getMapsCompatibleWithGamemode(getResourceFromName("race"))) do table.insert(mapTable, getResourceInfo(maps, "name")) end end addCommandHandler("test",test) and now it has to find map from mapTable with that name what was in command
  22. Hello dear community members, i need some help here i have table but i need to find from there single word, for example "car-infernus" could someone tell me function for that ? like to find from string i need string.find but what about tables ? -- Thanks
  23. we dont script here for you https://wiki.multitheftauto.com/wiki/Ser ... _Functions
  24. ok yeah i probably dint say propery what i wanted .. my english isnt the best but well, i shoot the car with M4 and then car will explode but i wount get kill
  25. nothing, when player who dies in vehicle it wount say anything but if he isnt in vehicle then it works fine
×
×
  • Create New...