Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. IIYAMA

    Toggle Warp

    Where is your code?
  2. https://wiki.multitheftauto.com/wiki/Sl ... setBotWait
  3. https://wiki.multitheftauto.com/wiki/Se ... tagShowing you have to make it your self,
  4. pictures aren't vectors, You can't scale or force them to a new resolution without making it ugly. (more then 20% scaling becomes unusable in the graphical industrial) btw:
  5. afk means that you don't play..... so he will kill you till you aren't afk. I never used that command, maybe you have to write it double to disable it.
  6. you sure the field does exist? Well this is happening: playerListLabels[1]= nil -- the problem. playerListLabels[1][4] -- cause the error. ------ to solve the error, but preventing it always better. if playerListLabels[1] --[[and isElement(playerListLabels[1][4])]] then guiSetText( playerListLabels[1][4], "woo" ) end I have no idea why it doesn't exist. It is probably is happing in another part. Can cause this: maxPlayersInCurList is nil/0
  7. Also possible. Maybe you have to learn lua a little bit more. We are here to help you, not to make it for you. Take a better look at the wiki mta samples. function A () end addEventHandler("onClientResourceStart",resourceRoot, function () setTimer (A,5000,1) --5000 = 5 seconds, 1 = one time executed. --add static image here end)
  8. Well the zombies get synced by the players. That means that every player sends information to the server about the closes zombies. If the player have lagg, the zombie that is synced by him also starts to lagg. With lagg I mean, low fps and high ping. Peds require much more bandwidth. What is the global ping in your server? If this is higher then 200, you probably have lagging bots. Not much you can do about it, the only thing you can do is paying for a closer host.
  9. addEventHandler("onClientResourceStart",resourceRoot, function () end) https://wiki.multitheftauto.com/wiki/DxDrawImage https://wiki.multitheftauto.com/wiki/OnClientRender https://wiki.multitheftauto.com/wiki/SetTimer or https://wiki.multitheftauto.com/wiki/GetTickCount
  10. The problem is that you can't really compare distance with camera size.(as far as I know) But you can try: You have two screenshots, create two times this structure. One close and another one far away. 200 - 50 = 150 -- differences --differences/ units = 150 / 10 = 15 -- amount of size de-increase per unit local newsize = size -(units * 15) if newsize > 0 then -- do something. end
  11. Why don't you use: https://wiki.multitheftauto.com/wiki/DxDrawLine3D easier to make 2D/3D boxes.
  12. If you don't have any experience with code and you don't try to write/learn it: Resources section.
  13. IIYAMA

    Sniper bullets

    scripting section isn't for requests. Here you can download a mirror. https://community.multitheftauto.com/in ... ails&id=52 Next time ask these kind of questions at the resources section.
  14. IIYAMA

    SWAT job

    +1 If he have the swat script, he/she will probably start requesting more. I consider those requests as spam. The more we help those people, the more spam we get. If you want to give it to him, write a pm. Resources should be done at the resources section.
  15. bool setWeaponProperty ( int weaponID/string weaponName, string weaponSkill, string property, int/float theValue ) read syntax better. You can't. Unless you use differend weapon stats for admins.
  16. So I was right ?
  17. Maybe that are the triggered client files. (not the ones that got downloaded automatic) So for ever script that got send over, it will count up some %.
  18. these are looking like a gamemode error/warning. What error do you get when you start a map?
  19. Server uptodate? (support newest maps? /debugscript 3 ?
  20. IIYAMA

    SWAT job

    @Gtakiki, This section isn't for scripting request. Join this section when you have a little bit more scripting experience.
  21. IIYAMA

    CameraTarget

    randomPlayer = g_Players[math.random (1,#g_Players)] you should first filter the playertable. (alive/dead)
  22. IIYAMA

    CameraTarget

    if getElementHealth( target/player/etc. ) > 0 then
  23. It is a server timer and it isn't running at client side. you can change this: --if isTimer(endTimer) then if endTimer then
  24. IIYAMA

    CameraTarget

    local team = getPlayerTeam (localPlayer) if team then g_Players = getPlayersInTeam (team ) end
  25. IIYAMA

    Table

    getScreenFromWorldPosition does not return a table. Only 3 floats. these will probably put in the table. > screen screen[1] = x screen[2] = y screen[3]= distance
×
×
  • Create New...