drk
Members-
Posts
1,607 -
Joined
-
Last visited
Everything posted by drk
-
Why Gtagasje need two options if only one is needed ? Ok, no problem, I don't want to "fight" in the forum ...
-
Yeah, i'm noob, so why you keep asking questions here on the forum how to fix mistakes? You were not the best ? Do not answer anything that is not necessary, or you'll get banned ^^
-
Solidsnake14, was not necessary to you reply. I have already answered and Gtagasje had achieved ...
-
Jean, use SciTE editor, it the best for LUA scripting, you can debug your scripts without test in a server and compile your scripts too.
-
Try this: local criminal = createTeam("Criminal", 255, 0, 0) function createAmarker () if getPlayerTeam(getTeamFromName(criminal)) then local theMarkers = { createMarker (0, 0, 20), createMarker (1, 0, 20), createMarker (2, 0, 20), createMarker (3, 0, 20) } markersTable[math.random(#theMarkers)] end end addEventHandler("onVehicleEnter", getRootElement(), createAmarker) You need 'local' before theMarkers.
-
Isn't bots, but Hacks yes. My friend was created a hack that can get admin privilegies in servers, run scripts, and bug the freeroam resource ^^ And it work, i've tested.
-
Hi everyone ! I will post How to do a captcha system. You can integrate this to your code. This is a simple code. First, you have to create a LUA file. Open the file and write this: function myCaptcha() local code = { "a", "b", "c", "d", "e", "f", "g", "h", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "y", "z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", ",", ".", "'", "?" } local randomCode = math.random ( 2, #code ) local theCode = " "..code[randomCode].." " guiSetText ( var, "Code: [ " .. theCode .. " ]" ) return theCode end Now, on your GUI code set the varible name "var" to your GUI label on the code will appear. Done, if you have did correctly the captcha code will apear on the GUI label of your GUI when you start the resource of your GUI. EDIT: On the next post I will explain how to verify if you have entered the correct code.
-
Hi ! the script dont appear any error but don't work.
-
Thanks BinSlayer1, don't appear any error now. I'll test.
-
It is was I've writed before. I've tested on SciTE debugging mode and don't work. I will try on the server.
-
No, I want to set money to the Data "Dinheiro", not for the player like normal GTA:SA.
-
Hi ! I'm coding an pointing and money system for my clan server. I want that code add + 1500$ for player. The code is: setElementData ( player, "Dinheiro" ) -1500 ) It have a error, the symbol - is not recognized. How I can do this ?
-
I know how to do that, I just gave a sugestion
-
Hey FatalTerror, a sugestion, u can add symbols like , " ( ) to the captcha script
-
guiGetScreenSize, for god sake! It isn't what I've said, I've tryed to say "How to discover the relative x and y position that I have to put after screenWidth / without the method "test, error" Understand me ?
-
dxDrawText ( textJoin, screenWidth / xcoord, screenHeight / ycoord, tocolor ( 0, 255, 0, 255 ), 0.6, "bankgothic", "left", "top", false, false, false ) How to discover the xcoord and ycoord of the screen ?
-
Shit, u can help me or u want post noob reply's ?
-
Anyone can help ?
-
I want look like this: local rootElement = getRootElement() local sw,sh = guiGetScreenSize() local windowW = 280 local windowH = 160 local windowTitle = "" local windowTitleHeight = 20 local windowTitleColor = tocolor(255,255,255,255) local windowTitleBGColor = tocolor(0,0,0,255) local windowBGColor = tocolor(0,0,0,0) local windowX = sw - 350 - windowW local windowY = sh / 1.08 - windowH / 2 local localPlayer = getLocalPlayer ( ) function dx (thePlayer) local time = getRealTime() local hours = time.hour local minutes = time.minute local seconds = time.second local playerName = getPlayerName ( getLocalPlayer() ) dxDrawText("Hora: "..hours.." : "..minutes.." : "..seconds,sw/9.120, sh/1.50, sw,sh,tocolor(0,0,255,255),1.2,"default","left","top",false,false,false) local x = windowX local y = windowY + windowTitleHeight local h = windowH - windowTitleHeight dxDrawRectangle(x,y,windowW,h,windowBGColor) end function HandleTheRendering () addEventHandler("onClientRender",rootElement, dx) end addEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
-
And how to the text appear in all resolutions ?
-
It workeeeeeeeeeeeeeeeeeeeed ! Thaaaanks !!
