Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. IIYAMA

    Dx Drawing

    You are absolute right about rectangles. But is it a rectangles or a bounding box for text?
  2. IIYAMA

    Dx Drawing

    dxDrawText( item.text, midPointOffsetX, screenY - 90, textWidth, textHeight, tocolor(0,0,0, alpha), 1, "bankgothic", "center", "center", false, false, false, true) These aren't offset, but positions.
  3. image is inside the meta.xml?
  4. Je kan het bestand niet handmatig aanpassen, deze zijn versleutelde en voor bijna iedereen onmogelijk te kraken. Maar je kan wel het account wachtwoord aanpassen, zo lang je zijn gebruikersnaam weet. Onder je gebruikers naam kom je niet onder uit, het probleem is dat je gebruikersnaam bijna "het account zelf is". Ze zijn gekoppeld, het account en de gebruikersnaam, zonder een gebruikersnaam kan er geen account bestaan. account = getAccount ( username )--, [ string password ] setAccountPassword ( account, password ) TIP: Wees er voorzichtig mee.
  5. https://wiki.multitheftauto.com/wiki/On ... DataChange
  6. IIYAMA

    Unban all

    function unBanAll ( source, command ) if ( hasObjectPermissionTo ( source , "function.removeBan", true ) ) then local bans = getBans() if #bans == 0 then outputChatBox ("No players to unban!" , source) else local failedUnbans = 0 for i,ban in pairs ( bans ) do if not removeBan(ban) then failedUnbans = failedUnbans+1 end end if failedUnbans == 0 then outputChatBox ("All players has been successfully unbanned using Pejczi's script !" , source) else outputChatBox ("Failed to unban: " .. failedUnbans .. " bans.", source) end end else outputChatBox ( "You have no permission to unban all." , source ) end end addCommandHandler ("unbanall", unBanAll) Learn lua.... ftw
  7. IIYAMA

    help

    addEventHandler("onClientPedDamage",root, function() cancelEvent() end) peds can't take damage.
  8. It is working for me. Even with frozen it is working, first freeze the ped then set the animation. i10 = createPed (186, -1345.02405, 492.73904, 11.20269, 90, 0, 0) setElementFrozen(i10, true) -- moved setElementData(i10,"message","V.I.P") setPedAnimation(i10, "ped", "CAR_sit") -- moved
  9. Cause you frozen him. setElementFrozen(i10, true)
  10. Don't forget the: https://wiki.multitheftauto.com/wiki/GetCameraMatrix
  11. this would do it. getPedWeapon ( ped, getSlotFromWeapon ( weaponid ) )
  12. setWaterLevel ( -10000 )
  13. Then the loop will end and you don't know if there is a president. Use break instead: addEvent("checkPresidentServer",true) addEventHandler("checkPresidentServer",getRootElement(), function () local presidentFound = false for index, player in pairs(getElementsByType("player")) do if getElementData(player,"president") == "True" then triggerClientEvent(source,"setPresidentToFalse",getRootElement()) presidentFound = true break end end if not presidentFound then triggerClientEvent(source,"setPresidentToTrue",getRootElement()) end end)
  14. The main resource folder (musicstream), but also extra folders that contain files that have been written in the meta.xml. mods\deathmatch\resources\musicstream\[data]
  15. Maybe also interested to know. (sorry that I go a little off the subject) After convert to a text file, it multiply by 10X+ in size(vs jpg). 1000 x 1000 red pixels 3,81 MB and of course it makes sense, it is raw data. But still it is funny because the biggest image format that I have ever seen is Canon camera raw format. This format comes close to that.
  16. IIYAMA

    Cache

    I tested it and it works fine. Warning: It doesn't support old Linux server software. Then the files won't send over, you can test it.
  17. IIYAMA

    Cache

    It is much better then fileDelete. Only scripts are protected, other files like images/audio aren't protected this way. The only way to protect images, is changing them to textures and delete them immediately. Audio can't be protected, as simple as that. You must be a really prof. if you can get the client files from the RAM.
  18. IIYAMA

    Question

    You may not able to get the password, but the account is another story. As long you don't give players runcode rights, nobody can use your account. Password isn't the only thing that can get to player their accounts, cause a scripters with runcode can. I changed my friends password on request, but I didn't knew his original password. The best thing is removing runcode when you don't use it. To be honest I can do everything with runcode, ban/kick players, creating scripts or since 1.3 even images(jpg/png)!.
  19. https://wiki.multitheftauto.com/wiki/Se ... LightState By script it server side.
  20. It looks like your vehicles don't get created successfully.* *ah you already said that.
  21. you probably misted that.
  22. dxDrawText ( msg,0, 0, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown", "center", "center" )
  23. They are but a scripter always have a choose.
  24. Vehicle syncs etc. https://wiki.multitheftauto.com/wiki/Sync_interval_settings It depend on the script.
  25. for your question from skype. local sWidth,sHeight = guiGetScreenSize() local halveSWidth = sWidth / 2 local halveSHeight = sHeight / 2 -- your gui size and position. local guiSizeX,guiSizeY = sWidth *.25,sHeight *.25 local guiPosStartX = halveSWidth - (guiSizeX/2) local guiPosStartY = halveSHeight - (guiSizeY/2)
×
×
  • Create New...