Jump to content

TwiX!

Members
  • Posts

    905
  • Joined

  • Last visited

Everything posted by TwiX!

  1. maybe /debugscript 3?
  2. find this code in your scripts
  3. --clientSide GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Progress = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(408,279,511,283,"Buy gun license (v1.0)",false) GUIEditor_Window[2] = guiCreateWindow(0.3,0.15,0.30,0.1,"Oh damn!",true) guiSetVisible(GUIEditor_Window[2],false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[2],1) guiBringToFront(GUIEditor_Window[2]) label = guiCreateLabel (0.20,0.25,0.65,0.3,"You dont have enough money to buy that.",true,GUIEditor_Window[2]) button = guiCreateButton (0.35,0.6,0.3,0.2,"Ok",true,GUIEditor_Window[2]) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(168,23,166,141,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(162,162,196,49,"Buy gun license $ 3000",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Label[1] = guiCreateLabel(10,254,296,16,"To Buy Weapons You Need to Buy gun license",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(403,22,99,18,"Exit",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Progress[1] = guiCreateProgressBar(537,26,0,5,false,GUIEditor_Window[1]) addEventHandler('onClientGUIClick', root, function() local money = getPlayerMoney(localPlayer) if (source == GUIEditor_Button[1]) then if (money >= 3000) then takePlayerMoney(3000) triggerServerEvent ("givecard",localPlayer) else guiSetVisible(GUIEditor_Window[2],true) guiSetVisible(GUIEditor_Window[1],false) end elseif (source == GUIEditor_Button[2] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) local Marker2 = createMarker ( 286, -35, 1001, "cylinder", 2, 255, 255, 0, 150 ) setElementInterior( Marker2, 1, 286, -35, 1001 ) end end ) addEventHandler('onClientMarkerHit', resourceRoot, function ( hitPlayer ) if getElementType(hitPlayer) == "player" then if source == Marker2 then guiSetVisible ( GUIEditor_Window[1], true ) showCursor( true ) end end end ) --serverSide addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), function ( ) ped = createPed ( 46, 286, -35, 1001 ) setElementInterior( ped, 1, 286, -35, 1001 ) end )
  4. save all in account data on mysql/sql/ etc and later local acc = getPlayerAccount(source) if getAccountData(acc,"onHaveGunLicense") ~= true or 1 then --code else outputChatBox ("* Sorry but you not have a Gun License",source,255,255,255,true) end
  5. function privateMessage(source,commandName,recipient,...) local origin = { ... } local message = table.concat( origin, " " ) if recipient then if tonumber(recipient) then target = getPlayerFromID(tonumber(recipient)) else target = getPlayerNameWithoutHexColors(recipient) end --HERE YOU NEED CODE WITH MESSAGES else outputChatBox("* Error", source, 255, 255, 255, true) return false end end addCommandHandler("pm", privateMessage) function getPlayerNameWithoutHexColors(player) local thePlayer = getPlayerFromName(player) if thePlayer then return thePlayer end for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), player:lower(), 1, true) then return thePlayer end end return false end function getPlayerFromID(theID) theID = tonumber(theID) if theID then local theplayer players = getElementsByType("player") for id,p in ipairs(players) do if theID == id then theplayer = p end end return theplayer else return false end end
  6. /debugscript 3? code by puma..
  7. TwiX!

    Buy Map Problem

    we not want help to guys, who stole the scripts,close please
  8. why you use nextreme code?
  9. Ты не боишься того, что на следующий день после релиза твоего мода мы его декомпилируем? если он сделает прямыми руками, и будет нормальная защита, ты ничё не сможешь сделать
  10. Object = {} Object[1] = createObject (...) Object[2] = createObject (...) Object[3] = createObject (...)
  11. https://community.multitheftauto.com/index.php?p= ... ls&id=4727 stolen map, this map not for public, only on three servers
  12. лол, если будет всё бесплатно не будет никакого интереса, за деньги сделано для того, чтобы человеку было интересно играть, чтобы было к чему стремиться
  13. lol mixed my panel and puma panel, sorry i can't help u
  14. lock this topic please viewtopic.php?f=91&t=43055 look my post, and ban this user..
  15. show your code allready fix it. It wasn't anything wrong with a code. I've removed and install again server and now works. It wasn't working for any code! well it's good that you did it by yourself
  16. TwiX!

    login

    this code will not work, use my login panel (read pm (LAST LINK ON THIS RESOURCE)) there code perfect working on my sv.. when i modify resource for you give admin rights to this resource infotwix = guiCreateLabel(18,245,130,19,"Login Panel by Stolka",false,window) login panel by me (TwiX) do not violate copyrights, and respect my work (I thought you the good guy,i was wrong) now all my help for you will NOT FREE
  17. noob viewtopic.php?f=91&t=43055&p=434410#p434410
  18. TwiX!

    BB mode

    first made it nextreme for tg server, others copycat
  19. TwiX!

    Login.

    if you not have errors check all code with debug or output messages
  20. TwiX!

    Help ME

    WHY DID YOU F*CK USE MY TEMPLATE OF USER PANEL? (what im made for wtf//serveR?) You account / serial [CCFAE1B38C11C9F7D26AA9577B12BFB3] and ip [188.54.70.37] is already banned on three servers, good luck BE ORIGINAL
×
×
  • Create New...