-
Posts
905 -
Joined
-
Last visited
Everything posted by TwiX!
-
maybe /debugscript 3?
-
find this code in your scripts
-
--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 )
-
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
-
and price is?
-
fail, wrong topic
-
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
-
/debugscript 3? code by puma..
-
we not want help to guys, who stole the scripts,close please
-
Ты не боишься того, что на следующий день после релиза твоего мода мы его декомпилируем? если он сделает прямыми руками, и будет нормальная защита, ты ничё не сможешь сделать
-
зачем тебе этот геморой?
-
Object = {} Object[1] = createObject (...) Object[2] = createObject (...) Object[3] = createObject (...)
-
https://community.multitheftauto.com/index.php?p= ... ls&id=4727 stolen map, this map not for public, only on three servers
-
лол, если будет всё бесплатно не будет никакого интереса, за деньги сделано для того, чтобы человеку было интересно играть, чтобы было к чему стремиться
-
lol mixed my panel and puma panel, sorry i can't help u
-
lock this topic please viewtopic.php?f=91&t=43055 look my post, and ban this user..
-
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
-
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
-
noob viewtopic.php?f=91&t=43055&p=434410#p434410
-
first made it nextreme for tg server, others copycat
-
if you not have errors check all code with debug or output messages
-
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
-
я могу
