Jump to content

Perfect

Members
  • Posts

    563
  • Joined

  • Last visited

Posts posted by Perfect

  1. function hudChanger () 
        showPlayerHudComponent ("radar", false ) 
        showPlayerHudComponent ("ammo", false ) 
        showPlayerHudComponent ("weapon", false ) 
        showPlayerHudComponent ("area_name", false ) 
        showPlayerHudComponent ("wanted", false ) 
        showPlayerHudComponent ("wanted", false ) 
        showPlayerHudComponent ("money", false ) 
        showPlayerHudComponent ("health", false ) 
        showPlayerHudComponent ("clock", false ) 
        showPlayerHudComponent ("vehicle_name", false )     -- This is vehicle_name not vehiclename 
        outputChatBox("Huds has been disabled", 0, 255, 0, true)    -- Replace with message you want to show in this format 
        
    end 
    addEventHandler ( "onClientPlayerSpawn", getRootElement(), hudChanger ) 
    

  2. Not selling anymore, opened an rpg server :)

    Congrats and good luck. :wink:

    And if you thought of selling your scripts ever again. For god's sake, don't forgot to provide screenshots, proof your trustfulness, and answer people's question in the topic. As you have wasted a lot of time due to that reasons.

  3. I have some experience and experiments regarding to lag as I played MTA SA in a low-end computer i.e. notebook, which has only 1 GB ram, 1.6 GHz cpu processor, windows xp and cherry on the cake, a slow internet connection.

    I don't have much knowledge about it but I may say lag is related to internet speed as well hardware, which you guys may already know.

    I have a visited a server which has huge graphical things like sharders, car models, etc...

    So whenever I see at long distance, maybe a car few meters away from me, I lagged and when I stared myself at a particular thing and not so many such as only a wall, road, sky, etc.. my lag decreases and my fps increases. The difference is from 5 FPS to 30 FPS. This is one of the way to increase your flips and reduce lag though you will not be able to play or enjoy your game but can chat with your friends without these 'timed out' messages and computer freezing issues.

    Secondly, I have also discovered that entering a interior does also reduce lag.

    And thirdly, whenever there is a crowd of vehicles(not sure about peds/players), particularly in freeroams where trollsplayers spawns lots of vehicles at spawn points, gets pretty laggy and sometimes even computer froze for second together. The lag reduces as you walked away from the crowded area, proportional to the distance between you and the crowded area.

    Finally, whenever I used to join a server which has huge player base i.e >100 such as SAUR, there was a frequent lag. The proof for this is the player fault and not the server is that I join the server once when it has less than 50 players in it and the lag was disappear.

    Not sure about the players/peds but yes, 50 cars on same spot at same time at same place as you, may lag you or freeze,crash,'timed out' your computer as per my experience.

  4. Hmm, I got it. It does makes sense. Looks like you are trying to make a 'hackers union' or similar thing or maybe trying to enjoy yourself so call 'MTA SA hack' in your own server. As far as I know, MTA allows the ability to enable/disable cleo modes for servers. But I don't think it does for hacks/cheats such as cheat engine.

    Last time I used a trainer/hack was in 2011, that was when I first discovered MTA, so I don't remember if it did ban instantly or after joining a server but if its formal, in my opinion MTA should allow server owners to decide about enabling/disable cheats/hacks similar to cleo modes and also about banning hackers/cheaters because sometimes cheats are fun.

    Ofcourse if it didn't put the WHOLE MTA or other servers at risk.

  5. What a attitude, Each. I can imagine the result, if i brought some of your scripts and have some problems with it.

    It was okay as long you were defending yourself as for false accusation but insulting?

    Sorry Each but you got a negative point form me too.

  6. I was thinking about it being some kind of "wake up" message. Like 'stop playing with yourself, get a life'. But yeah, I think that KariiiM's concept is very accurate

    Do you think a game will tell you stop from playing?

    I don't think so, a game need more players to play in..

    As far as I know game don't talk, at least in my case.

    Jokes apart, you are going in right direction.

    Lets summarize what we have got so far:-

    1. It can mean as Kariiim said. Stop playing with yourself is same as stop playing alone, thus the MTA is telling us stop playing alone and feel the fun of play with your friends and LYAO. It is correct as MTA is a multiplayer game, thus it is showing the so-called 'Slogan' for some sort of self-promotion, it is telling you to invite your friends and play with them.

    2. It can also mean as John Smith said. Stop playing with yourself is same as stop playing playing with your thing, in some sense. As GTA is a 18+ game, it is applicable but MTA is played by even 10+ so it is less likely and also MTA have no right to tell you to stop playing with your thing.

    Hope, we are all clear now.

    Any other theories are welcome.

  7. addEventHandler ( "onClientResourceStart", resourceRoot, 
        function () 
        local theVehicle = getElementsByType ( "vehicle" ) 
            setTimer ( 
                function ( ) 
                    for theKey, theVehicle in ipairs ( theVehicle ) do 
                        if isElementInWater ( theVehicle ) then 
                            blowVehicle ( theVehicle ) 
                            setTimer(destroyElement(theVehicle), 29000, 1) 
                        end 
                    end 
                end, 
            30000, 0 ) 
        end 
    ) 
    

  8. Okay, you have to make yourself admin to do that.

    Here's a tutorial on how to do that: viewtopic.php?f=98&t=89673&p=808707&hilit=how+to+make+yourself+admin#p808707

    After making yourself, admin. Start the game and login in the server ('/login name password') and type '/start myfirstresource'. This will start your resource.Then try opening/closing gates. If it doesn't work, type '/debugscript 3' and restart the resource by typing '/restart myfirstresource'.

    About debugscript 3:

    Debugscript as the name suggest debug the script and checks if they are any problems in the script and if it has any, it will output them on the screen.

    'debugscript 1' will output only errors.

    'debugscript 2' will output errors and warnings.

    'debugscript 3' will output errors, warnings and info messages.

    You can read more about it on here: https://wiki.multitheftauto.com/wiki/Debugging

  9. Yeah. Sometimes the wiki's introduction page doesn't help much. :roll:

    Okay, here are the steps:

    1) Copy the below code and save it as "script.lua"

      
    admingate = createObject(10841, -1641, -36.7998, 1, 0, 0, 135.03295) 
      
    function gateOpen() 
    moveObject(admingate, 2000, -1641, -36.7998, 5) 
    outputChatBox("Gate is now opened!", 0, 255, 0, true) 
    end 
    addCommandHandler("adminbo", gateOpen) --Command /adminbo to open gate 
      
    function gateClose() 
    moveObject( admingate, 2000, -1641, -36.7998, 1) 
    end 
    addCommandHandler("adminbc", gateClose)--Command /adminbc to close gate 
    outputChatBox("Gate is now closed!", 0, 255, 0, true) 
      
    

    2) Copy the below code and save it as "meta.xml"

      
    
        "DeathWatch5150" version="1.0" name="My First Resource" description="This resource open and close a gate by a command" type="script" /> 
        

    3) Create a ZIP folder called "myfirstresource" and put the above files in it.

    4) Put the newly created ZIP folder in MTA San Andreas 1.4\server\mods\deathmatch\resources\[gameplay]

    5) Congratulations! you have successfully created your very first resource.

    Information regarding meta.xml.

    The meta.xml should be present in every resource/gamemode/map you make as it tells the server there is a script in the folder.

    If you didn't include put a meta.xml in your resource folder, your resource/script is never going to run as the server would never know about the presence/existence of your script.

    So yes, meta.xml is a very important file and you certainly need it. :)

  10. Jack will give the user Jack the skin number 1

    and i will do the meta ad .txd and .dff files right ?

    That's right but you don't need txd/dff for that unless you are planning to have a custom skin.

    In that case, you can replace them by using following functions:

      
    engineLoadTXD 
    engineImportTXD 
    engineLoadDFF 
    engineReplaceModel 
      
    

×
×
  • Create New...