Jump to content

Tekken

Helpers
  • Posts

    1,413
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. Can you make an example please ?
  2. I want to create a vehs table and in that table to store more vehs like this: dbQuery(db, "CREATE TABLE IF NOT EXISTS vehs (veh1(x,y,z), veh2(x,y,z))") Can i do that in any way ?
  3. For now, that's not possible ...
  4. Tekken

    Bug Resursă

    sterge resursa si incarco din nou, este posibil sa se fi corupt vreun fisier cand ai urcato prima oara.
  5. Hmm, were did you get Tent + Vehicle system ? Edit: Legit ^.^
  6. Tekken

    VPS Problem

    Thank's, some times i am so stupid.
  7. Tekken

    VPS Problem

    Nothing changed, and I already read those...
  8. Tekken

    VPS Problem

    Hi, Today I bought a VPS and I installed MTA Server on it but when I type ./mta-server to start server is keep saying -bash: ./mta-server: No such file or directory Any idea what ?
  9. Server function toggleInvis(thePlayer) local id = getElementModel(thePlayer) if id == 179 then local alpha = getElementAlpha(thePlayer) if alpha == 255 then setElementAlpha(thePlayer, 0) else setElementAlpha(thePlayer, 255) end else setElementAlpha(thePlayer, 255) end end addCommandHandler("invis", toggleInvis) Client function showOnShoot() setElementAlpha(source, 255) end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), showOnShoot)
  10. That looks good, what you think? https://gta-mp.net/ WIll MTA Team working in something like this ?
  11. Pare o idee buna dar mai pune si alte GMuri nu doar RP ca debine plictisitor si cum mie nu-mi pace RPu' din romania...., anyway succes!
  12. S-a inventat PMu' , folositil...
  13. Try this: function killCommand(thePlayer) setTimer(killPed(thePlayer, thePlayer), 5000, 1) end addCommandHandler("kill", killCommand)
  14. Beacause you come here for help and if someone need help we can send him directly to this post and he can solve the problem faster. That's why!
  15. If you delete your codes then you don't deserve to be helped anymore.....
  16. Asta e doar un exemplu NU va merge la ce iti trebuie tie, pentru ce vrei tu mai ai nevoie de urmatoarele functii: getCameraMatrix getPedBonePosition getScreenFromWorldPosition isLineOfSightClear dxDrawImage Client: local width,height = guiGetScreenSize() function dxDrawOnDuty() dxDrawImage ( screenWidth - x, y, width, height, 'image.png') end addEvent("dxDrawOnDuty", true) addEventHandler("dxDrawOnDuty", dxDrawOnDuty) Server: function OnDuty(player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then triggerClientEvent(player,"dxDrawOnDuty", player) end end addCommandHandler("onduty", OnDuty)
  17. Nu se numeste pentru ca nu exista pe community, dar iti poti crea una folosind dxDrawImage
  18. It refare when the car hit the zombies normally would not fall but in this video zombie falls
  19. Tekken

    HUD

    onPlayerJoin onPlayerLogin setPlayerHudComponentVisible
  20. Doesn't realy do much. I don't have anybody to help me to test it but it should work. Im sure there's loads of people who would like to help, all you gotta do is ask. Of course I have some friend's but they wasn't online at that moment. Thank's.
  21. Tekken

    wanted

    Try this: function wan() for theKey,thePlayer in ipairs(getElementsByType("player")) do local theTeam = getPlayerTeam(thePlayer) local wanted = getPlayerWantedLevel(thePlayer) if wanted > 0 and theTeam == "San Andreas Police Department" then setPlayerWantedLevel (thePlayer, 0) end end end setTimer(wan,100,0) addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), wan )
  22. This code combine client and server, i tried to fix it but i don't understaind nothing from it. Server function playersexo(theTeam) showCursor(false) destroyElement(wal) destroyElement(fundo) destroyElement(mulher) destroyElement(home) if (client ~= mulher) then local spawnTeam = createTeam ("Assasin") outputChatBox ("Chào mừng bạn đã đến với thành phố hỗn tạp này!! GOOD LUCK...", client, 255, 0, 0, false) outputChatBox ("Bạn đã có skill của 1 sát thủ!! Hãy ấn F7 để xem hỗ trợ", client, 255, 0, 0, false) spawnPlayer (client, 0, 0, 5, 0, math.random(0, 288), 0, 0, spawnTeam) fadeCamera (client, true) setCameraTarget (client, client) giveWeapon(client, 8, 1) giveWeapon(client, 1, 1) elseif(client ~= homem) then local spawnTeam = createTeam ("Gunner") outputChatBox ("Chào mừng bạn đã đến với thành phố hỗn tạp này!! GOOD LUCK...", client, 255, 0, 0, false) outputChatBox ("Bạn đã có skill của 1 Gunner!! Hãy ấn F7 để xem hỗ trợ", client, 255, 0, 0, false) spawnPlayer (client, 0, 0, 5, 0, math.random (0,288), 0, 0, spawnTeam) fadeCamera (client, true) setCameraTarget (client, client) giveWeapon(client, 8, 1) giveWeapon(client, 1, 1) end end addEvent("PlayerSexo", true) addEventHandler("PlayerSexo", root, playersexo) Client function sexo() showCursor(true) wal =guiCreateStaticImage(0, 0, 1, 1, "images/wal.jpg", true) fundo =guiCreateStaticImage(0.15, 0.28, 0.72, 0.63, "images/fundo.png", true, wal) home =guiCreateStaticImage(0.2, 0.28, 0.2, 0.6, "images/Gunner.png", true,fundo) mulher =guiCreateStaticImage(0.6, 0.28, 0.2, 0.6, "images/Knifer.png", true,fundo) end addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == home) then triggerServerEvent("PlayerSexo", localPlayer) elseif (source == mulher) then triggerServerEvent("PlayerSexo", localPlayer) end end ) addEventHandler("onClientMouseEnter", home, false) addEventHandler("onClientMouseLeave", home, false) addEventHandler("onClientMouseEnter", mulher, false) addEventHandler("onClientMouseLeave", mulher, false) function home2() guiStaticImageLoadImage(home, "images/Guner.png") end function mulher2() guiStaticImageLoadImage(mulher, "images/Knifer.png") end
  23. I don't have anybody to help me to test it but it should work.
×
×
  • Create New...