-
Posts
52 -
Joined
-
Last visited
Everything posted by Thorxx
-
That's a good job for your first script! There are two from my beginnings: Random Clan Colors: function teams () team = createTeam("YourTeam") setTimer(randomCOLOR, 5000, 0) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), teams) function movePlayer () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then setPlayerTeam(source, team) end end addEventHandler("onPlayerLogin", root, movePlayer) function randomCOLOR () local R3 = math.random( 0, 255 ) local G3 = math.random( 0, 255 ) local B3 = math.random( 0, 255 ) setTeamColor(team, R3, G3, B3) end Date & Time: function real () local days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"} local time = getRealTime() local timeINFO = string.format("%02d:%02d:%02d", time.hour, time.minute, time.second) local dateINFO = string.format("%02d/%02d/%04d", time.monthday, time.month+1, time.year+1900) local wd = time.weekday+1 outputChatBox("#ff8f00------------------------------------------------------------------", 255,255,255,true) outputChatBox("#ffffffTime: "..timeINFO, 255,255,255,true) outputChatBox("#ffffffDate: "..dateINFO, 255,255,255,true) outputChatBox("#ffffffDay: "..days[wd], 255,255,255,true) outputChatBox("#ff8f00------------------------------------------------------------------", 255,255,255,true) end addCommandHandler("date", real )
-
The most easy way is looking to code in free scripts, it helped me a lot. And also trying some things with outputChatBox as Atton said above me. Then you can try some mathematical things, they are also easy.
-
Much Impzy, such pro, wow and ye f|_|ck backwards
-
You didn't even post any code. You're welcome, lol. He did, but I copied it before he deleted the code.
-
And one more thing left to solve function logChat( msg, acc ) dbExec( database, 'INSERT INTO `ChatLogs`( Date, Time, Username, Playername, IP, Serial, Message ) VALUES( ?, ?, ?, ?, ?, ?, ? )', getRealTime().monthday.."/"..getRealTime().month.."/"..getRealTime().year+1900, getRealTime().hour..":"..getRealTime().minute..":"..getRealTime( ).second, getAccountName( acc ), getPlayerName( source ), getPlayerIP( source ), getPlayerSerial( source ), msg ) end addEventHandler( "onPlayerChat", root, logChat ) Exactly: getAccountName( acc )
-
The code that you posted works. dbExec( database, 'INSERT INTO `ChatLogs`( Time, Username, IP, Serial, Message ) VALUES( ?, ?, ?, ?, ? )', getRealTime(), getPlayerName( source ), getPlayerIP( source ), getPlayerSerial( source ), msg ) Thanks
-
Error: Line 32: dbExec( database, "INSERT INTO `ChatLogs` (`Time`, `Username`, `IP`, `Serial`, `Message`) VALUES ('?', '?', '?', '?', '?')", getRealTime( ).timestamp, getPlayerName( source ), getPlayerIP( source ), getPlayerSerial( source ), msg )
-
Hello, I've a little problem with SQL Tables. Here's my code: function logChat (msg) outputChatBox(getPlayerName(source).." has writen this: "..msg) dbExec( database, "INSERT INTO ChatLogs VALUES (ID, Time, Username, IP, Serial, Message)", 1, time, getPlayerName(source), getPlayerIP(source), getPlayerSerial(source), msg) end addEventHandler("onPlayerChat", getRootElement(), logChat) When player sends something it creates an empty line in my SQL server, why does it happen? Image: http://www.img.tpx.cz/uploads/A63da3ad.png
-
Fixed! Solution: Disable Aero Desktop (That's all)
-
Hello guys! I have a little problem. When I set in MTA resolution 1920x1080x32 it changes my PC resolution to ????x????. Why it happens to me? In PC I have 1920x1080 because it's resolution of my monitor.
-
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then outputChatBox("Player is in ACL Admin") end if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then outputChatBox("Player is in ACL SuperModerator") end Now it's your turn
-
Heyo, what's up ladies and gentlemans. I'd like to present you today newest map called Dark Energy, which has been made by FataL. ----------------------------------------------------------------------------------------------- **INFO** ----------------------------------------------------------------------------------------------- ~ Nice map ----------------------------------------------------------------------------------------------- **DraPeD's Channel** ----------------------------------------------------------------------------------------------- ~ https://www.youtube.com/user/DraPeDTV ~ https://www.facebook.com/DraPeDTV ----------------------------------------------------------------------------------------------- **VIDEO** ----------------------------------------------------------------------------------------------- ~ Use 720HD or 1080HD ----------------------------------------------------------------------------------------------- **MUSIC** ----------------------------------------------------------------------------------------------- ~ 3LAU, Paris - Simo feat Bright Lights - Escape (Culture Code Remix) ----------------------------------------------------------------------------------------------- **ABOUT ME** ----------------------------------------------------------------------------------------------- ~ If you want record map you can contact me on skype stranger.eu ~ I am using for recording AVer Media Live Gamer HD ~ Follow me on: ~ Facebook: https://www.facebook.com/strangeytv?ref=ts&fref=ts ----------------------------------------------------------------------------------------------- **DISCLAIMER** ----------------------------------------------------------------------------------------------- ~ YouTube user StrangeyTV does not take credit for any of the music uploaded on this channel. ~ Please, do not issue a copyright infringement claim toward us. ~ Everything uploaded to this channel is for promotion or entertainment reasons only. ~ If you would like your song taken down and can provide proof you created the song simply message us for instant removal ----------------------------------------------------------------------------------------------- Thank you for watching this video Sincerely, StrangeRTV
-
Heyo guys, Can somebody tell me functions for dx to create any animation? Like when I hit the dxCreateRectangle then it will moves to right for example... I need only functions nothing more
-
Okey, I will do what you suggested, thank you
-
Nope, There are playing songs that are in stream you selected. As you told this: So you can play custom mp3, in game radios like KDST and online radios or how? It will be next resource, so if you need what you told, just wait
-
Heyo guys, Today I want to present you my first radio script. Something about the radio script: bindKey is changeable in stream.xml between KEY Radio stream is changeable in stream.xml between STREAMLINK Radio is showing current song playing in your stream. Changelog: [5.11.2013] Uploaded! Download link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=8179 If you need more updates to radio then reply to this thread. Thank you for reading or using this resource . Skype: stranger.eu
-
Heyo, what's up ladies and gentlemans. I'd like to present you today newest map called Outside The Dreams, which has been made by nF|CoVe. ----------------------------------------------------------------------------------------------- **INFO** ----------------------------------------------------------------------------------------------- ~ This map is really nice, I like it. ~ Keep it up Cove. ~You are one of the best CZ/SK mappers. ----------------------------------------------------------------------------------------------- **DraPeD's Channel** ----------------------------------------------------------------------------------------------- ~ https://www.youtube.com/user/DraPeDTV ~ https://www.facebook.com/DraPeDTV ----------------------------------------------------------------------------------------------- **VIDEO** ----------------------------------------------------------------------------------------------- ~ Use 720HD or 1080HD ----------------------------------------------------------------------------------------------- **MUSIC** ----------------------------------------------------------------------------------------------- ~ AirBattle End of Time (feat RomyHarmony) [EX¨T. BY ME] ~ Download https://mega.co.nz/#!eR1lTKSS!X2cQchH9P ... eVNQt8OLgk ----------------------------------------------------------------------------------------------- **ABOUT ME** ----------------------------------------------------------------------------------------------- ~ If you want record map you can contact me on skype stranger.eu ~ I am using for recording AVer Media Live Gamer HD ~ Follow me on: ~ Facebook: https://www.facebook.com/strangeytv?ref=ts&fref=ts ----------------------------------------------------------------------------------------------- **DISCLAIMER** ----------------------------------------------------------------------------------------------- ~ YouTube user StrangeyTV does not take credit for any of the music uploaded on this channel. ~ Please, do not issue a copyright infringement claim toward us. ~ Everything uploaded to this channel is for promotion or entertainment reasons only. ~ If you would like your song taken down and can provide proof you created the song simply message us for instant removal ----------------------------------------------------------------------------------------------- Thank you for watching this video Sincerely, StrangeRTV
-
Thank you But there's a problem, login works correctly but debugscript says ERROR: 26: addEventHandler: 'onClientRender' with this function is already handled
-
And about this: local isLoginVisible = false local WalkWay = nil local sX, sY = guiGetScreenSize() WalkWay = dxCreateFont( "WalkWay.ttf" ) function LoginMain () showCursor ( true ) login = { ["bg"] = dxDrawImage(0, 0, sX, sY, "images/bg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false), ["header"] = dxDrawRectangle(sX/6.5, sY/4, sX/3, sY/35, tocolor(85, 50, 205, 255), true), ["window"] = dxDrawRectangle(sX/6.5, sY/3.6, sX/3, sY/3, tocolor(31, 31, 31, 255), false), ["HT"] = dxDrawText("Login Panel", sX/3.4, sY/3.95, sX/2, sY/2, tocolor(255, 255, 255, 255), sX*0.0008, "default-bold", "left", "top", false, false, true, false, false), ["ID"] = dxDrawText("Username", sX/6, sY/3.35, sX/2, sY/2, tocolor(255, 255, 255, 255), sX*0.0006, "default-bold", "left", "top", false, false, true, false, false), ["PW"] = dxDrawText("Password", sX/6, sY/2.615, sX/2, sY/2, tocolor(255, 255, 255, 255), sX*0.0006, "default-bold", "left", "top", false, false, true, false, false), ["username"] = dxDrawRectangle(sX/6, sY/3.15, sX/6, sY/30, tocolor(255, 255, 255, 255), false), ["password"] = dxDrawRectangle(sX/6, sY/2.50, sX/6, sY/30, tocolor(255, 255, 255, 255), false), } changelog = { ["header"] = dxDrawRectangle(sX/1.7, sY/4, sX/4, sY/35, tocolor(85, 50, 205, 255), true), ["window"] = dxDrawRectangle(sX/1.7, sY/3.6, sX/4, sY/3, tocolor(31, 31, 31, 255), true), ["HT"] = dxDrawText("Changelog", sX/1.45, sY/3.95, sX/2, sY/2, tocolor(255, 255, 255, 255), sX*0.0008, "default-bold", "left", "top", false, false, true, false, false), } addEventHandler("onClientRender", root, LoginMain ) end addCommandHandler("test", LoginMain ) Why it makes big FPS drops?
-
tosfera, Thank you for this tip, I will try it .
-
How we can help you with solving the problem if we don't see a code?