Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. I'm guessing https://wiki.multitheftauto.com/wiki/OnC ... WeaponFire Wojak, as far as I know, you can't detect the hit of these vehicle weapons.
  2. 50p

    Need HELP!

    Please send such messages via PM. This is an English forum and nobody will help you if they don't understand you. Basically, don't attach blips to players who are in the Police team. Use getPlayerTeam and getTeamFromName and compare the teams.
  3. For things like repeating same code but with little change in one of the lines, you should consider using a for loop. I've noticed that you draw stars away from each other by an average of 22 pixels. So, it's easy to do with a for loop.. wantedLevels = { 100, 250, 500, 1000, 2000, 4000 }; -- global table of levels ... local wantedlevel = getElementData (getLocalPlayer(),"crimerange") for i=5, 0, -1 do -- you want 6 stars, start drawing last due to last star being 1st wanted level local y = 556 + (22 * i); -- y value will increase every time by 22 local col; -- colour for j, level in ipairs( wantedLevels ) do -- iterate through levels col = (wantedlevel >= level) and tocolor( 255, 255, 255, 200 ) or tocolor( 0, 0, 0, 100 ); -- set "col" to color depending on the level end dxDrawImage(1003.0, y, 16.0,19.0,"images/star.png",0.0,0.0,0.0, col, false); end I wrote this code quickly because I'm in a rush to work, but if there is anything wrong with the code, say it or fix it if you can
  4. I don't know if anyone know that wiki exists and it has examples for you as well... https://wiki.multitheftauto.com/wiki/SetVehicleColor Have you looked at the "Example 2"? I guess, you have, eventually. I was also wondering what are client-side events doing in server-side script? Such scripts don't need to be client-side. It's best to do as much functionality in server-side script as possible. I personally love client-side scripting but I don't make client-side script for something that's possible to be made in a server-side script.
  5. Fix what? If you want a fix then say what needs to be fixed. If you mean the private gangs then I must disappoint you because I don't have much time these days so I can't do much about it.
  6. I had the same problem while making Vigilante 8 gamemode and I gave up on completing it due to that lag. What was the most weird was the fact that it started to lag after adding one more custom model. At first I thought it's the model's fault so I didn't load one other model and loaded that last model and the lag was gone but after adding the previous model back in, the lag came back... I think there is some kind of limit of custom models/textures that you can use.
  7. To be honest, at this time, I can't do anything because I've ran out of time and got a job which pays money.
  8. At least what he says is not ridiculously pointless. Remember about https://wiki.multitheftauto.com/wiki/Main_Page and http://www.lua.org/pil/index.html
  9. Yeah, it needs another resource for private clans/teams which I've never managed to complete scripting.
  10. To me, it's stupid to set a timer with interval of 100 and moveObject to move object to new position within 30000... This will obviously lag. Either, change the timer or moveObject arguments.
  11. 50p

    TXD

    What file format was the texture originally before importing it to txd? What program did you use to import the texture to txd? Post your .txd if you can.
  12. modshop resource provides custom event onVehicleMod. You can save the vehicle data after player modified it. You want to save the vehicle mods not player's car and its mods, do you? There is an example in the server.lua (right at the bottom of the file) to show you how it works.
  13. As the topic title says, this is a spawn script that has a few features like 3D skin spinning around, a window with skin's description and their weapons. This is all you need to know here lol I'm not feeling like writing any long description for this resource because I have already explained what it is and what it does on the community website. So, have a look there to find out more: Updates: DOWNLOAD: https://community.multitheftauto.com/index.php?p= ... ls&id=1152
  14. 50p

    move dx position

    varez, your code would move the rectangle in a diagonal direction (down and right), not up or down. local y = 0; local height = 20; function drawRect( ) y = y - 1; dxDrawRectangle( ..., y, .., height, .... ); if y < -height then -- remove handler end end Don't forget to remove handler for this animation once the rectangle is off screen because it'll keep going up but there is no point if you can't even see it.
  15. Make it all server-side. There is no need for client-side script.
  16. 50p

    ResPath

    I suppose he wants full path to the resource like "C:\Program Files\...\resname". If that's the case then I have to disappoint you but there is no function to do this although it might be possible with a module but only for server-side scripts.
  17. The peds resource was made as an example to show how to make a ped, give him weapon and make them follow you. TheBulletSponge, the bit that you didn't understand is server-side and it's responsible for creating ped next to you. Client-side script is responsible for making peds look at you and follow you. The code that calculates the facing angle and sets ped to look at you is between lines 40-59 in your first post. If you don't want ped to follow you just comment the line where you see setPedControlState.
  18. I wonder why do you make new topic for different versions of the gamemode? It's still the same gamemode.
  19. Ok. @AZOZE: If you grab a script from somewhere and author allows you to use it as long as the credits are not change then do so but don't ever change the credits! This is simply stealing even though you said you edit a script, you still change the author of the script. You can ask original author of the script if you can modify it and add "modified by ".
  20. TAPL, it says "Script By sn!per". Are you the sn!per?
  21. You could have 1 server with 32 players but split it into 4 "sub-servers" (different dimensions). If the player joined your server he could have a list of 4 dimensions and list of players in those dimensions so that player can choose which "sub-server" they want to play on. I know it may be harder to script but I think it'd be amazing and you only rent 1 server so paying less, unless you can host as many servers as you like for the same price. You could also make "chat channels" so that only people in certain dimension can see messages sent by player from the same dimension. I think the gamemode looks very good and I'd love to see more original ideas. I think you should also mess about with the size of the boxes and weapons attached to vehicles because they look too big or too small to me. Good luck.
  22. Check if player is in a marker.. ... if isElementWithinMarker( player, marker ) then -- checking if player is in a marker -- rest of your command code here end ...
  23. 50p

    Derby Point`s

    Or read debugging wiki page over and over again until you understand the most common errors and fix them yourself, and I prefer this solution.
  24. This requires .NET 2.0 framework. You should be able to run it with Wine and a winetricks http://wiki.winehq.org/winetricks to get .NET 2.0.
×
×
  • Create New...