Jump to content

Dev

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by Dev

  1. Nice to hear that! Although, what is your definition of 'acceptably'? 30-40 FPS or 20-30 FPS rendering?
  2. Hey all, So I'm looking forward to buying this new Toshiba Satellite C Series C665-P5012 Laptop ( picture below ), it's a pretty cheap one ( around $353.2 ) and I am basically buying this to be able to play MTA San Andreas with my brother, as of now we both share the same PC which is a pain in the ass. So, I wanted to know how will be my gaming experience with this laptop on older games such as GTA Vice City/San Andreas, Tomb Raider 4/5 etc. It's specifications are: Processor: Intel Pentium Dual Core P6200 ( 2.13 GHz ) Graphic Card: Intel HD Graphics RAM: 2 GB ( Expandable upto 8 GB ) Hard Disk Capacity: 320 GB OS: None ( Going to install Windows XP once delivered ) Any form of feedback would be greatly appreciated! Thanks, Dev
  3. If you're okay with projectiles shooting out of cars use: https://wiki.multitheftauto.com/wiki/CreateProjectile Or you can use the following for an idea of ball being shot from a vehicle: https://wiki.multitheftauto.com/wiki/CreateObject https://wiki.multitheftauto.com/wiki/SetElementVelocity
  4. Dev

    GUI

    The syntax of the following event handlers are incorrect. GUI["water"] = guiCreateCheckBox( 0.062,0.1826,0.7674,0.0708,"Beautiful Water",false,true,GUIEditor_Tab[6]) GUI["roadshining"] = guiCreateCheckBox( 0.062,0.2752,0.7674,0.0708,"Roads Shining",false,true,GUIEditor_Tab[6]) GUI["bloom"] = guiCreateCheckBox( 0.062,0.376,0.7674,0.0708,"Ambiant lightning( Bloom)",false,true,GUIEditor_Tab[6]) GUI["showfps"] = guiCreateCheckBox( 0.062,0.5839,0.7674,0.0708,"Show FPS",false,true,GUIEditor_Tab[6]) Since your have the 6th argument as 'false', you cannot provide x, y, width, height between 1 and 0. You need to change the sixth argument to true for that. The 7th argument is supposed to be a gui-element, not a boolean value. GUI["water"] = guiCreateCheckBox( 0.062,0.1826,0.7674,0.0708,"Beautiful Water",true,GUIEditor_Tab[6]) GUI["roadshining"] = guiCreateCheckBox( 0.062,0.2752,0.7674,0.0708,"Roads Shining",true,GUIEditor_Tab[6]) GUI["bloom"] = guiCreateCheckBox( 0.062,0.376,0.7674,0.0708,"Ambiant lightning( Bloom)",true,GUIEditor_Tab[6]) GUI["showfps"] = guiCreateCheckBox( 0.062,0.5839,0.7674,0.0708,"Show FPS",true,GUIEditor_Tab[6])
  5. How can I check the web server's logs?
  6. We actually thought that this was the error but we've re-uploaded the client side files to both the web server and dedicated many times, but the problem persists.
  7. Hello, We've run ourself into a problem trying to use an External web server for downloading files to the client's PC. We recently we got ourselves an External web server and we put up our client side files on it. We read the section on the wiki were it tells about configuring an External web server and we placed the download URL in the tag in mtaserver.conf also changed the value of tag to 1. But everytime someone who is new to the server tries to connect, he gets a CRC mismatch error and is unable to download any client side file, can someone please provide us any information about this issue and possible remedies for it? Regards, Dev
  8. Dev

    Help

    Oh sorry, didn't notice.
  9. Dev

    Help

    Try this, it might help as it waits until the player's client side resource starts, if it doesn't work, it means that either you havn't added your client side file to meta.xml or it is not in the specified resource folder. -- SERVER SIDE local isClientReady = { } local spectators = {} local getPlayerSpectatee = {} function teamStealthGameStart( ) killmessageRes = getResourceFromName("killmessages") call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Score") call(getResourceFromName("scoreboard"), "addScoreboardColumn", "kills") call(getResourceFromName("scoreboard"), "addScoreboardColumn", "deaths") playingaround = 0 redwinsdisplay = textCreateDisplay( ) local redtext = textCreateTextItem ( "RED Team Wins the Match!", 0.5, 0.5, "low", 255, 0, 0, 255, 3, "center", "center" ) textDisplayAddText ( redwinsdisplay, redtext ) bluewinsdisplay = textCreateDisplay() local bluetext = textCreateTextItem ( "BLUE Team Wins the Match!", 0.5, 0.5, "low", 0, 0, 255, 255, 3, "center", "center" ) textDisplayAddText ( bluewinsdisplay, bluetext ) tiegamedisplay = textCreateDisplay() local tietext = textCreateTextItem ( "The Match was a Tie!", 0.5, 0.5, "low", 255, 255, 255, 255, 3, "center", "center" ) textDisplayAddText ( tiegamedisplay, tietext ) waitDisplay = textCreateDisplay() local waittext = textCreateTextItem ( "Wait for next round to spawn.", 0.5, 0.9, "low", 255, 255, 255, 255, 1.6, "center", "center" ) textDisplayAddText ( waitDisplay, waittext ) team1 = createTeam("RED",255,0,0) team2 = createTeam("BLUE",0,0,255) teamprotect = get("stealth.teamdamage") if teamprotect == 1 then setTeamFriendlyFire( team1, false ) setTeamFriendlyFire( team2, false ) elseif teamprotect == 0 then setTeamFriendlyFire( team1, true ) setTeamFriendlyFire( team2, true ) end setElementData ( team1, "Score", 0 ) setElementData ( team2, "Score", 0 ) teamswap = 0 local players = getElementsByType("player") for k,v in ipairs(players) do killPed(v) fadeCamera(v,true) thisplayer = v swapToggle( thisplayer, teamswap ) setElementData ( v, "kills", 0 ) setElementData ( v, "deaths", 0 ) setPlayerNametagShowing ( v, false ) spectators[v] = true bindKey ( v, "F3", "down", selectTeamKey ) end --Enable laser sight setElementData(getRootElement(),"lasersight",get("stealth.lasersight")) end addEventHandler("onGamemodeStart", resourceRoot, teamStealthGameStart ) function swapToggle( thePlayer, teamSwap ) if ( isClientReady[thePlayer] ~= nil ) then triggerClientEvent(thePlayer, "swaptoggle",getRootElement(), thePlayer, teamSwap) else setTimer(swapToggle, 1000, 1, thePlayer, teamSwap ) end end addEvent("clientReady", true) addEventHandler("clientReady", root, function( ) isClientReady[source] = true end ) -- CLIENT SIDE function swapTheTeams(thisPlayer, teamSwap) aretheyswapped = teamSwap end addEvent("swaptoggle", true ) addEventHandler("swaptoggle", getRootElement(), swapTheTeams) addEventHandler("onClientResourceStart", resourceRoot, function( ) triggerServerEvent("clientReady", localPlayer) end end
  10. You must apply this script server side if you want to change a vehicle's direction which was created server side. Multiplier = 1.3 marker1 = createMarker(-6558.2998046875, 2801.099609375, 706.09997558594 , "cylinder" , 29, 0, 0, 204, 0) marker2 = createMarker(-6177.599609375, 2761.2998046875, 691.09997558594 , "cylinder" , 1, 255, 0, 0, 255) marker3 = createMarker(-6176.8994140625, 2735.7998046875, 655.40002441406 , "corona" , 1, 0, 255, 0, 255) function MarkerHit (player, matchingDimension) if (source == marker1) and ( matchingDimension ) then outputChatBox("It Was corona!") local car = getPedOccupiedVehicle(player) speedx, speedy, speedz = getElementVelocity ( car ) speedcnx = (speedx*Multiplier) speedcny = (speedy*Multiplier) speedcnz = (speedz*Multiplier) setElementVelocity ( car, speedcnx, speedcny,speedcnz ) fixVehicle(car) addVehicleUpgrade(car, 1010) playSoundFrontEnd(player, 46) elseif (source == marker2) and ( matchingDimension ) then outputChatBox("It Was corona!") speedx, speedy, speedz = getElementVelocity ( car ) speedcnx = (speedx*Multiplier) speedcny = (speedy*Multiplier) speedcnz = (speedz*Multiplier) setElementVelocity ( car, speedcnx, speedcny,speedcnz ) fixVehicle(car) addVehicleUpgrade(car, 1010) playSoundFrontEnd(player, 46) elseif (source == marker3) and ( matchingDimension ) then outputChatBox("It was cylinder!") local car = getPedOccupiedVehicle(player) local x, y, z = getElementRotation( car ) local newz = z + 360 setElementRotation( car, x, y, newz ) end end addEventHandler ( "onMarkerHit", getRootElement(), MarkerHit )
  11. As Solidsnake said, also how can you attach 'onClientGUIClickHandler' to a handler without any base element?
  12. You need to either disable the weapon fire when the ammo reaches 1, so the weapon doesn't get destroyed ( use toggleControl ), or you can either attach the weapon object created using createObject to the player's hand bone. ( use attachElements or getPedBonePosition )
  13. I suggest using a loop for each element in the table, for example local images = { } images[1] = guiCreateStaticImage(x, y, width, height, text, relative, parent) images[2] = guiCreateStaticImage(x, y, width, height, text, relative, parent) for i = 1, #images do addEventHandler("onClientGUIClick", images[i], selectOption, false) end But regardless, you can do it either way, it is handy when you are not sure as to how many images will be made, for example, if you're populating the items in a player's inventory, you might not know how many items he has, in that case, attaching handlers using a loop is the only way.
  14. Hello, I'm here to discuss a problem which can be very dangerous for my server's popularity and can ruin my 7 months hard work. About 3 days ago, I started my new roleplay server called 'Arsenic Roleplay', every script on the server has been written and added by me. The first day, everything was fine, but as the number of interiors ( cylinder markers ) increased on the server, so has the lag. The lag has grown so worse, that at the login screen it takes you 10 minutes after clicking the login button to actually login. There are also periodic lag waves on the server, which cause delayed text appearance in chat box. I know that the interiors are causing it because if I shut down the interior system, the lag is very much vanished. All the interiors are spawned server side when the resource starts, so there is downloading at the time of connection, which causes this lag. I'm here to ask for a remedy for this, do you guys really think that the presence of large number of cylinder markers on the server can cause too much memory consumption and result in this lag? If it is possible, what do you suggest? I don't wanna move to pickups instead of markers because they are very much used by every roleplay server and I can be blamed for script stealing by newbies -,- Anyone suggesting any effective fix for this would be a life saver for me.. Regards, Dev
  15. Alright, apparently the problem was with a .txd file in the mod system, and now it has been fixed and I'm upgrading the server to MTA 1.3 Thank You, Towncivilan.
  16. Alright, I guess it is this way or no way. So I'll try.
  17. Alright, but how do you possibly think I can go through 6K lines of scripts?
  18. How come it doesn't crash on MTA 1.2? I'm running my server currently on MTA SA 1.2 and its fine.
  19. Okay, I even uploaded the new mtaserver.conf to the server's deathmatch folder, and everyone on the server is still crashing!
  20. Hello there, I'm having a problem in trying compile my Linux server on MTA 1.3. Whenever I start the server it all works perfectly, but as soon as a player connects, his MTA crashes with the following error: I downloaded the libraries from http://linux.multitheftauto.com/ and I uploaded all the files in the .tar archive to the server, ( didn't upload the config files as I believe them to be the same as in 1.2 ), and now when I start the server, and try to connect to it, the crash happens, this is happening with every player. Am I missing something that was supposed to be uploaded? or is there some other problem because I believe I'm the first to be reporting an error such as this with MTA SA 1.3 server. Regards, Dev
  21. The reason I'd suggest for the error is that 'data.peageID' is nil. I'd advise not looping through 'result' and instead doing result['peageID'].
  22. Dev

    Explanation: SQL

    SQL build-in feature? SQL is not a build in feature, SQL means Structured Query Language, and you need to install the module I gave you the link to in order to use SQL in your resources. You also need a MySQL database installed on your PC/Server in order to store the data.
  23. Dev

    Explanation: SQL

    You need to install this module: https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL on your server, then you need to add the module in your mtaserver.conf file, you will see get a message when you start your server notifying you that the module has started, after that you can refer to this wiki section for various functions: https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL#Handler_functions
  24. Dev

    My userbars.

    And so I put on my badge with Glory
×
×
  • Create New...