Jump to content

FelipeMallmann

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by FelipeMallmann

  1. Hello guys. I decided to mapping again but now I've got a big problem, I am unable to open any map at map editor, I've tryed random maps and my own maps. The meta file is every thing correct, the whole resource is correct and MTA reads it but when I type start 'mapname', it just download 200kb and my map does not appears I already searched for this bug here and already tryed: - reinstall mta - change to debugscript 3 - delete editor_dump - used MTADiag - checked if had illegal words When I try to start any map file, it always download 200kb and dont appear any map, but this message appears: edf/edf.lua:132: going to represent map[b] 'mapname'[/b] What can I do? Thanks
  2. I download this script, this is a safe zone, when player enter the area, he can't fire other players, but there's no function to when player leaves it, he get able to fire again. Please help me. radar1 = createRadarArea(84, 1774,320,370,0,255,0, 100) setElementData(radar1,"zombieProof",true) Zone1 = createColRectangle (84, 1774,320,370) addEventHandler("onColShapeHit", Zone1, function(h) if not isElement(h) then return end if getElementData(h,"zombie") then killPed(h) end --These zones are also zombie proof end) function enterArea1(thePlayer) local posX, posY = getElementPosition(thePlayer) local inArea = isInsideRadarArea(radar1, posX, posY) if (inArea) then if hasObjectPermissionTo(thePlayer, "function.addAccount", false) then --Specify who can enter the zone primaryWeaponControl = isControlEnabled ( thePlayer, "fire" ) if ( primaryWeaponControl == true ) then toggleControl ( thePlayer, "fire", false ) -- change to true/false to allow/disallow shooting. outputChatBox("***Area Segura***", thePlayer, 0, 255, 0, true) end else triggerClientEvent(thePlayer, "displayTimer1", thePlayer) end end end addEventHandler("onColShapeHit", Zone1, enterArea1) function warp1() local posX, posY = getElementPosition(source) local inArea = isInsideRadarArea(radar1, posX, posY) if (inArea) then if hasObjectPermissionTo(source, "function.addAccount", false) then --Specify who can enter the zone outputChatBox("***CHECKER*** Você está permitido para entrar nessa area.", source, 0, 255, 0, true) else outputChatBox("Você não está permitido para entrar nessa area...", source, 255, 0, 0, true) if isPedInVehicle ( source ) then local playerVehicle = getPedOccupiedVehicle ( source ) setElementPosition(playerVehicle, 77.13272857666,1921.6431884766,17.640625) else setElementPosition(source, 77.13272857666,1921.6431884766,17.640625) end end end end addEvent("warp1", true) addEventHandler("warp1", root, warp1) I need a function to when player leave the area he can aim again (toggleControl ( thePlayer, "fire", true ))
  3. worked perfectly, thank you guys.
  4. Yes, for just who is VIP in acl, can use this command
  5. function togglePhone( source ) -- Show the phone if not guiGetVisible( phoneGui ) then showCursor ( true ) guiSetVisible( phoneGui, true ) -- Update player list guiGridListClear ( playerList ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false ) end end else showCursor ( false ) guiSetVisible( phoneGui, false ) end end addCommandHandler( "phone", togglePhone, source ) How to turn this just for member "VIP" can use?
  6. It always appers, if someone can help.. Warning: WARNING: [DayZ-MTA]\DayZ\zombies.lua:329: Bad argument @ 'getDistanceBetweenPoints3D' Line: if xL and getDistanceBetweenPoints3D(x, y, z, xL, yL, zL) < 50 then Code function createZomieForPlayer(x, y, z) x, y, z = getElementPosition(source) counter = 0 if getElementData(source, "lastzombiespawnposition") then local xL, yL, zL = getElementData(source, "lastzombiespawnposition")[3] or getElementData(source, "lastzombiespawnposition")[1] or false, getElementData(source, "lastzombiespawnposition")[2] or false, false if xL and getDistanceBetweenPoints3D(x, y, z, xL, yL, zL) < 50 then return end end if getElementData(source, "spawnedzombies") + 3 <= gameplayVariables.playerzombies then for i = 1, gameplayVariables.amountzombies do counter = counter + 1 local number1 = math.random(-50, 50) local number2 = math.random(-50, 50) if number1 < 18 and number1 > -18 then number1 = 20 end if number2 < 18 and number2 > -18 then number2 = -20 end randomZskin = math.random(1, table.getn(ZombiePedSkins)) zombie = call(getResourceFromName("slothbot"), "spawnBot", x + number1, y + number2, z, math.random(0, 360), ZombiePedSkins[randomZskin], 0, 0, getTeamFromName("Zombies")) setElementData(zombie, "zombie", true) setElementData(zombie, "blood", gameplayVariables.zombieblood) setElementData(zombie, "owner", source) call(getResourceFromName("slothbot"), "setBotGuard", zombie, x + number1, y + number2, z, false) end setElementData(source, "lastzombiespawnposition", { x, y, z }) setElementData(source, "spawnedzombies", getElementData(source, "spawnedzombies") + 3) end end
  7. yes I'm allowed, it's not encrypted and is public realease.. but how to fix that?
  8. I found another topic, and already fixed, thanks.
  9. I've this code, but when I type /vip, the image doesn't appear. In fact, it appears when players enter in the server. newFont = guiCreateFont ( "s3d.ttf", 15 ) localPlayer = getLocalPlayer() wnd_window = {} addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), function ( theResource ) --outputConsole( "wnd_showServerInfo called" ) --outputConsole( " Fonte: ".. tostring( source ) ) --outputConsole( " resourceStarted: ".. tostring( theResource ) ) if source == getResourceRootElement( theResource ) then --outputConsole( " passed if: source == resource" ) local xml = xmlLoadFile( "server.xml" ) local contents = xmlNodeGetValue( xml ) wnd_create("~~> The Real DAYZ <~~", "logo.png", contents ) end end ) function wnd_close() guiSetVisible( wnd_window.wnd, false ) showCursor( false ) end addEvent( "window_text", true ) function wnd_create( title, logo, content ) --outputConsole( "wnd_create called" ) if not wnd_window.wnd then --outputConsole( " passed if" ) wnd_window.wnd = guiCreateWindow( 0.1, 0.15, 0.8, 0.7, title, true ) guiWindowSetSizable( wnd_window.wnd, false ) guiWindowSetMovable( wnd_window.wnd, false ) wnd_window.logo = guiCreateStaticImage( 0.01, 0.035, 2.40, 0.87, logo, true, wnd_window.wnd ) wnd_window.close_btn = guiCreateButton( 0.0, 0.91, 3.3, 0.1, "Fechar", true, wnd_window.wnd ) guiSetFont ( wnd_window.close_btn, newFont ) --outputConsole( " window created: ".. tostring( wnd_window.wnd ) ) showCursor( true ) addEventHandler( "onClientGUIClick", wnd_window.close_btn, wnd_close ) end end addEventHandler( "window_text", getRootElement(), wnd_create ) addCommandHandler( "vip", getRootElement(), wnd_create ) What is wrong?
  10. I've this code, but it needs to be logged in to save the money. But my server uses a different type of loggin. What can I do? thanks function playerLeave() local playeracc = getPlayerAccount(source) if ( playeraccount == true ) then local playercash = getPlayerMoney(source) setAccountData(playeracc, "cash", playercash) end end function playerReJoin() local playeracc = getPlayerAccount(source) if (playeracc == true) then local playerbank = getAccountData(playeracc, "cash",) if (playerbank == true) then setPlayerMoney(source, playerbank) else outputChatBox("You have no cash in your bank. no money has been set!", source, 255, 0, 0) end end end addEventHandler("onPlayerJoin", getRootElement(), playerReJoin) addEventHandler("onPlayerLeave", getRootElement(), playerLeave)
  11. Hello guys, I'm looking for script that says (every x minutes) in the chat how many players are online in the server. Like: there are x players online. And every x minutes this message appears in the chat.
  12. Hello guys, I'm trying to find a resource that makes you unable to play when you die. In other words, when you die you need to wait x minutes to respawn. IDK if there is a resource like that, i have tryied the advanced search but couldnt find it
  13. Eai galera, sou novo aqui, venho do sa-mp e entendo muito pouco sobre .lua.. Mas enfim, andei vendo um tutorial ai sobre Portão, só que nele o portao abria quando o player ia num circulo e fechava quando o player saia. Queria saber se tem como fazer esse mesmo sistema só que com comando e restrito para apenas 1 determinado nick. Aqui tenho exemplo de um codigo, porem pelo o que tem ai creio que o comando de abrir/fechar funcionaria de qualquer lugar e com qualquer player. Queria restringir um comando somente numa area perto do portao e somente para um nick. function createTheGate () portao1 = createObject ( ID, x, y, z, 0, 0, 0) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate ( ) moveObject ( portao1, tempo, x, y, z) end addCommandHandler("abrir",openMyGate) function movingMyGateBack () moveObject ( portao1, tempo, x, y, z) end addCommandHandler("fechar",movingMyGateBack) Outra duvida que tenho é se isso ficaria no client.lua ou em alguma coisa separada. Vlw galera, obrigado a todos
  14. Just did yum install compat-readline5-static And then "gta ligar"(my cmd to turn the server on) and it worked. Thanks you two!!!
  15. yum update worked fine, but yum install dpkg says> Setting Up install process no package dpkg available Error:: nothing to do EDIT: I saw in another topic: "Once you do so, try installing the package again. If it still says it can't find the package, install readline-common package and try installing libreadline5 again." But how can I install readline-common package?
  16. Same error: command not found
  17. Yes, I've putty.. 1- wget http://ftp.uk.debian.org/debian/pool/ma ... 7_i386.deb worked, but the others codes didn't What I need to do now?
  18. Please help me, what I need to do and how?
  19. Hello guys, I'm really new in MTA, and that's probably my first topic here. When I try to turn on my server in a linux host, this problem appears: libreadline.so.5: cannot open shared object file: No such file or directory ERROR: Loading mod (/root/dayz/mods/deathmatch/deathmatch.so) failed! Press Q to shut down the server! And The solution I found at the wiki is: If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", it can be solved on Debian by doing this: wget [url=http://ftp.uk.debian.org/debian/pool/main/r/readline5/libreadline5_5.2-7_i386.deb]http://ftp.uk.debian.org/debian/pool/ma ... 7_i386.deb[/url] dpkg -X libreadline5_5.2-7_i386.deb temp cp -d temp/lib/libreadline.so.5* /usr/lib32/ But I don't even know what Debian is, and where to write this codes.. can someone help?
×
×
  • Create New...