Jump to content

FlyingSpoon

Members
  • Posts

    749
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by FlyingSpoon

  1. Thank you Poete, I hope you enjoy your server, as I just visited it, includes a lot of great scripts. Order your gameserver now! We sell different types of gameservers, just leave a message and I will get back to you! Game Types : Insurgency ArmA: 2 ArmA: Armed Assault Battlefield 1942 Battlefield 2 Call of Duty 2 Call of Duty 4: Modern Warfare Call of Duty: Modern Warfare 3 Call of Duty: World at War Counter-Strike Counter-Strike: Global Offensive Counter-Strike: Source Day of Defeat: Source Garrys Mod Half-Life 2: Deathmatch Killing Floor Left 4 Dead Left 4 Dead 2 Minecraft Multi Theft Auto San Andreas: Multiplayer Team Fortress 2 Urban Terror Wolfenstein: Enemy Territory
  2. Hi there, Today I thought I would introduce my new software which I just recently installed on my virtual machine. As I hosted a temporary MTA Server, I saw that it was mind blowing, not 1 lag issue I could find. I just ran my 'Zombie' server under it just to give it a test, and it was better than before! So I decided to sell a few game servers as I have a lot of space available! Gameserver Management All gameservers run on the latest dedicated software running MTA:SA 1.4! You will be able to manage your server through 'TCAdmin' and I am sure previous people have used this before, it's a simple, easy-to-use interface, and it comes with full FTP Access. Through 'TCAdmin' you can do the following, > Access 'File Manager' > Access 'Stop/Start/Restart' > Access 'FTP Access' > Access 'Log Viewer' Payment Methods Currently we accept the following, > PayPal > SMS > Skrill We host all the servers on a powerful Linux Dedicated Server running just TCAdmin. If you would like to purchase a server let me know!We offer different types of gameservers! You can make offers for how much you would like to pay, no limits! ( TCAdmin is down, we are currently using a separate game panel and FTP software )
  3. I can give you a server, on Linux, with TCAdmin and FTP Access And you can pay monthly via SMS. Tell me your skype or something so we can talk!
  4. So I found this script of the community, called 'Drawyourlevel' It is a little buggy, I don't know how I can fix it, this is the error : When I level up, it attempts to change the label text, but I think it fails to do so, so it comes out like this, Here's the code : Client Side Script 1 - main_level.lua : function dxsetText ( ) local text = "" local UP = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 if ( UP == 1 ) then text = " /60" elseif ( UP == 2 ) then -- el 2 significa el level text = " /110" -- el 110 es el texto que va a aparecer osea la experiencia que le va a faltar eso editenlo a su gusto ponganlo de acuerdo a lo que pusieron en el level.xml del resource exp_system elseif ( UP == 3 ) then text = " /160" elseif ( UP == 4 ) then text = " /250" elseif ( UP == 5 ) then text = " /500" elseif ( UP == 6 ) then text = " /2000" elseif ( UP == 7 ) then text = " /4000" elseif ( UP == 8 ) then text = " /8000" elseif ( UP == 9 ) then text = " /12000" elseif ( UP == 10 ) then text = " /16000" elseif ( UP == 11 ) then text = " /20000" elseif ( UP == 12 ) then text = " /24000" elseif ( UP == 13 ) then text = " /28000" elseif ( UP == 14 ) then text = " /32000" elseif ( UP == 15 ) then text = " /36000" elseif ( UP == 16 ) then text = " /40000" elseif ( UP == 17 ) then text = " /44000" elseif ( UP == 18 ) then text = " /48000" elseif ( UP == 19 ) then text = " /52000" elseif ( UP == 20 ) then text = " /56000" elseif ( UP == 21 ) then text = " /66000" elseif ( UP == 22 ) then text = " /78000" elseif ( UP == 23 ) then text = " /87000" elseif ( UP == 24 ) then text = " /99000" elseif ( UP == 25 ) then text = " /110000" elseif ( UP == 26 ) then text = " /119000" elseif ( UP == 27 ) then text = " /127000" elseif ( UP == 28 ) then text = " /139000" elseif ( UP == 29 ) then text = " /148000" elseif ( UP == 30 ) then text = " /156000" elseif ( UP == 31 ) then text = " /166000" elseif ( UP == 32 ) then text = " /179000" elseif ( UP == 33 ) then text = " /187000" elseif ( UP == 34 ) then text = " /198000" elseif ( UP == 35 ) then text = " /209000" end GUIEditor_Label[5] = guiCreateLabel(752, 205, 48, 21,text,false) guiSetFont ( GUIEditor_Label[5], "clear-normal" ) end addEventHandler ( "onClientResourceStart", resourceRoot, dxsetText ) addEventHandler ( "onClientElementDataChange", localPlayer, function ( dataName ) if ( dataName == "level" ) then dxsetText ( ) end end ) Client Script 2 - main_c.lua : addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor_Label = { } GUIEditor_Label[1] = guiCreateLabel(644, 187, 41, 18,"Level:",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(644, 205, 83, 21,"Experience:",false) guiSetFont(GUIEditor_Label[3],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(687, 187, 36, 19, tostring ( getElementData ( localPlayer, "level" ) ),false) guiSetFont ( GUIEditor_Label[2], "clear-normal" ) GUIEditor_Label[4] = guiCreateLabel(723, 205, 42, 20, tostring ( getElementData ( localPlayer, "exp" ) ),false) guiSetFont ( GUIEditor_Label[4], "clear-normal") end ) addEventHandler ( "onClientElementDataChange", localPlayer, function ( dataName ) if ( dataName == "level" ) then guiSetText ( GUIEditor_Label[2], tostring ( getElementData ( localPlayer, "level" ) ) ) elseif ( dataName == "exp" ) then guiSetText ( GUIEditor_Label[4], tostring ( getElementData ( localPlayer, "exp" ) ) ) end end ) -- Direct X Drawing addEventHandler("onClientRender",root, function() --dxDrawText("www.racconcityzr.nixiweb.com",623.0,211.0,799.0,226.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawRectangle(623.0,211.0,175.0,16.0,tocolor(0,0,0,0),false) end ) gMe = getLocalPlayer()
  5. Thank you, mate. Today I learnt a new code +1
  6. Hi there, I am trying to create a friendly-fire script. So players can't kill each other, everyone is set to the team once they join, Server Side local pTeam = createTeam("Players",255,255,0) function sFF() setTeamFriendlyFire(pTeam,true) setPlayerTeam( thePlayer, pTeam ) end addEventHandler("onPlayerJoin", getRootElement(), sFF) It gives me this error, [2014-12-04 19:24:35] WARNING: friendlyfire\server.lua:5: Bad argument @ 'setPlayerTeam' [Expected player at argument 1, got nil] Can someone help me? Thanks!
  7. Thanks, I am very noobish at gridlist Thanks +1
  8. Well, what I would like to do is that when I click on my Army Skin 1, it would set me to Skin ID 30, you can look at my code, I never used Grid List before, I thought I would try it! If anyone can help me I would appreciate it! Client Side wPanel = guiCreateWindow(14, 203, 176, 130, "ZA 1.0 - Panel", false) guiWindowSetSizable(wPanel, false) btnChar = guiCreateButton(14, 35, 150, 25, "Characters", false, wPanel) btnVeh = guiCreateButton(14, 86, 150, 25, "Vehicles", false, wPanel) wChar = guiCreateWindow(234, 178, 386, 170, "ZA 1.0 - Characters", false) btnClose = guiCreateButton(306, 134, 70, 26, "Close", false, wChar) guiWindowSetSizable(wChar, false) cGrid = guiCreateGridList(9, 23, 369, 104, false, wChar) guiGridListAddColumn(cGrid, "Characters", 0.9) for i = 1, 4 do guiGridListAddRow(cGrid) end guiGridListSetItemText(cGrid, 0, 1, "Army Skin 1", false, false) guiGridListSetItemText(cGrid, 1, 1, "Army Skin 2", false, false) guiGridListSetItemText(cGrid, 2, 1, "Army Skin 3", false, false) guiGridListSetItemText(cGrid, 3, 1, "Army Skin 5", false, false) guiSetVisible( wChar, false) guiSetVisible(wPanel, false) showCursor(false) bindKey('f1','down', function() guiSetVisible(wPanel, not guiGetVisible(wPanel)) showCursor(not isCursorShowing()) end ) function btnChars() if source == btnChar then guiSetVisible( wChar, true ) else if source == btnClose then guiSetVisible( wChar, false) end end end addEventHandler("onClientGUIClick", getRootElement(), btnChars) function setSkin() local row, col = guiGridListGetSelectedItem(cGrid) if ( row == 0 ) and ( col == 1) then setElementModel(source, 30) end end addEventHandler("onClientGUIClick", getRootElement(), setSkin) So if I click, Army Skin 1 then it would set my skin to ID 30.
  9. Hi guys, I saw many people struggling to follow the step-step guide on setting up MTA DayZ. So I decided to create a written/image tutorial on how to set up a DayZ server, the correct way. Read below, 1) Download the following resources, MTA DayZ : https://docs.google.com/uc?authuser=0&i ... t=download 2) Once your download is complete, then head to your MTA San Andreas folder and go ahead and locate yourself to server > mods > deathmatch > resources 3) Open up your .rar of MTA DayZ which you downloaded, and Drag & Drop your [DayZ-MTA] folder into here. 4) Then head back to, server > mods > deathmatch and open up MTAServer.conf and do the following, Firstly, change your server name to, <servername>GTA:SA DayZ Version [LOCATION] | mtadayz.net | additional info</servername> Picture: Then head all the way to the bottom of the config, where all the resources are loaded and started up, like this, 5) Add in the following code in MTAServer.conf at the bottom, do it like this, Important you must remove, the last line including 'play' and remove the resource 'votemanager' and 'scoreboard' And past this code, <resource src="DayZ" startup="1" protected="0"></resource> <resource src="login" startup="1" protected="0"></resource> <resource src="slothbot" startup="1" protected="0"></resource> Save MTAServer.conf and exit it! 6) Drag & Drop from the .rar 'internal.db' located in the Installation folder and move it into server > mods > deathmatch, like this : 7) Head to ACL.xml located in server > mods > deathmatch and open it up. You must look for this part, it's located near the top of ACL.xml Add in these few lines after 'webadmin' <object name="resource.DayZ"></object> <object name="resource.login"></object> <object name="resource.slothbot"></object> Like this, Once you have done it, Save it! And you're ready to go!
  10. $smart, I can give you cheap MTA Server, via TCAdmin. Tell me if your still interested.
  11. Thank you, very much. Do you own SX - CnR ? If so, I visited it and it's great and full of suprises!
  12. Hi there, I only posted the code which is related to the error, I get this error when I attempt to press the 'wPistol' button, [2014-11-23 19:14:34] WARNING: weapon-system\server.lua:2: Bad argument @ 'giveWeapon' [Expected element at argument 1, got nil] Client Sided function bWep() if source == wPistol then outputChatBox("You purchased a Pistol for $250.", 255, 255, 0) takePlayerMoney(250) triggerServerEvent("bPistol", resourceRoot) end end addEventHandler("onClientGUIClick", getRootElement(), bWep) Server Sided function bPistol ( thePlayer ) giveWeapon ( thePlayer, 22, 1 ) end addEvent("bPistol", true) addEventHandler("bPistol", resourceRoot, bPistol)
  13. Wow, weird. Did you use the cheat engine in any type of way?
  14. @Anubhav: Thank you for the suggestion, I have changed it! @NeverGiveup: Thanks for the fix! It worked +1
  15. function registerHandler(player, username, password) local account = getAccount(username, password) if (account ~= false) then triggerClientEvent(player, "registerTaken", getRootElement()) else account = addAccount(username, password) if (logIn(player, account, password) == true) then outputChatBox("Welcome to 'Zombie Apocalypse 1.0', Enjoy the BETA!", player, 0, 255, 0) outputChatBox("Author(s): RaysMTA", player, 0, 255, 0) spawnPlayer(source, 1959.55, -1714.46, 10) fadeCamera (source, true) setCameraTarget (source, source) triggerClientEvent(player, "hideLoginWindow", getRootElement()) else triggerClientEvent(player, "unknownError", getRootElement()) end end end What I want is once, the player registers, they spawn in a certain place. I tried the code above ^ but it don't work after they register, you just get a blank screen!
  16. Use the MTA Wiki, killPlayer createMarker Just an idea, you can do something like that.
  17. No, no. You don't understand me. What I was meant to say is when the player writes their Firstname_Lastname in the edit box, and press 'Spawn' their name will change into the Firstname_Lastname they chosen. Any ideas?
  18. Well here is my code so, far. I am starting on wards from Basic Roleplay updated by Socialz and Anubhav. addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(188, 157, 452, 187, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(20, 35, 103, 28, "Character Name :", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(128, 31, 166, 26, "Firstname_Lastname", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(343, 139, 94, 38, "Spawn", false, GUIEditor.window[1]) end ) Would I use guiGetText( GUIEditor.edit[1] ) and how would I set the player's nick to Firstname_Lastname ??
  19. Hi there I created my robbery script it works perfectly, but now what I want is the marker and blip to spawn in random places all over San Andreas. Any ideas how I can do this? - Removed -
  20. For some reason when I enter marker, the GUI pops up. But somehow it appears for all players? I only want it to appear for me, or when other players enter only for them. Not for everyone? Can anyone help me thanks! nMarker = createMarker( 1925.51171875, -1786.77734375, 12.5, "cylinder", 1, 255, 255, 255 ) local gHanger = createPed(292, 1925.51171875, -1786.77734375, 13.546875) setPedRotation(gHanger, 177.45660400391) setElementDimension(gHanger, 0) setElementInterior(gHanger, 0) setPedAnimation ( gHanger, "SMOKING", "M_smklean_loop") setElementFrozen(gHanger, true) local scr = {guiGetScreenSize() } local w, h = 358,239 local x, y = (scr[1]/2)-(w/2), (scr[2]/2)-(h/2) mainWin = guiCreateWindow(x,y,w,h,"Ardent Roleplay 0.2",false) gAny = guiCreateButton(16,27,324,47,"Got anything for meh' homie?",false,mainWin) gHurry = guiCreateButton(16,98,324,47,"Sorry, I am in a hurry!",false,mainWin) gSoon = guiCreateButton(16,165,324,47,"Coming Soon...",false,mainWin) exWin = guiCreateWindow(x,y,170,151,"",false) gMoney = guiCreateButton(13,23,143,44,"Gimme' some money",false,exWin) gJob = guiCreateButton(13,86,143,44,"Got any jobs for meh?",false,exWin) guiSetVisible(mainWin, false) guiSetVisible(exWin, false) function btnClicks() if source == gAny then guiSetVisible(mainWin, false) guiSetVisible(exWin, true) showCursor(true) else if source == gHurry then outputChatBox("[English] Cesar Vialpando says: Alright kid! Jus' watch where your walking.", 255, 255, 255 ) guiSetVisible(mainWin, false) showCursor(false) else if source == gSoon then guiSetVisible(mainWin, false) showCursor(false) end end end end addEventHandler("onClientGUIClick", root, btnClicks) function exBtn( thePlayer ) if source == gMoney then outputChatBox("[English] Cesar Vialpando says: Sorry mate, I am broke!", 255, 255, 255 ) guiSetVisible( exWin, false ) showCursor ( false ) else if source == gJob then outputChatBox("[English] Cesar Vialpando says: Might do, come back later.", 255, 255, 255 ) guiSetVisible( exWin, false ) showCursor ( false ) end end end addEventHandler("onClientGUIClick", root, exBtn) function markerHit() if source == nMarker then guiSetVisible(mainWin, true) showCursor(true) end end addEventHandler("onClientMarkerHit", root, markerHit)
×
×
  • Create New...