Jump to content

Syntrax#

Members
  • Posts

    272
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Syntrax#

  1. Sorry but i don't think the mta community accept to help to fix leaked scripts. Especially the leaked WSS housing.
  2. Nice job but too bad it's buggy AF, the models are great but the only thing is that some objects doesn't load, Badly placed, Bugging due the lack of memory.But overall it's great
  3. I've got no clue, as far as i can when i press "Login" it dos spawn at last know location, but this only accure when new accounts is created How can the script get the Last known location when you registered for the first time.You should add a line to prevent the script from getting last known position when you register
  4. Serverside or Clientside, since i did the thing serversided
  5. Syntrax#

    REMOVED

    what is the getGroupData, a selfmade function? and you are getting that message because there is no Table or any value within it.
  6. CurrentDepth = 0 function MoveSubmarine() local Waterlevel = getWaterLevel() local x, y, z = getElementPosition(theobject) local check = isElementInWater(theobject) local vehiclecheck = isPedInVehicle ( source ) if getKeyState( "arrow_u" ) == true and check == true and vehiclecheck == true then CurrentDepth = CurrentDepth + 1 setElementPosition(theobject, x, y, z - CurrentDepth) elseif getKeyState( "arrow_d" ) == true and check == true and vehiclecheck == true then CurrentDepth = CurrentDepth - 1 setElementPosition(theobject, x, y, z - CurrentDepth) end end Will make a proper code later on, i'm currently scripting it on my phone.Will fix it once i'm home
  7. Oh i'm an idiot, i didnt set the password field.. Attempt to concatenate global 'mysqlhash' (a nil value) Bump, can anyone help me out please?
  8. Hello community, I've a problem that has been caused by Fetchremote.I want to make a custom proficle picture system but the only problem is getting the image + Applying it on the dxDrawImage.Does anyone knows how to start off with this so i can continue my development regards, Serenity
  9. Syntrax#

    Lobby

    Ever tried checking the community page, anyway here is a link of one of the gamemodes that has been shared, it's not compiled https://community.multitheftauto.com/index.php?p ... s&id=13118
  10. Well as far as i know there is a function for that.Use this to redirect the player or visit the link for more information redirectPlayer ( thePlayer, serverIP,serverPort, [ string serverPassword ] ) link of the function https://wiki.multitheftauto.com/wiki/RedirectPlayer
  11. Anyone does know how you can make it visible to other players,tried everything but nothing is working
  12. No need fixed it already thank you for your help
  13. Thank you found it but how to make it black.Using a png file doesn't make it fully black it only covers the Trim
  14. Hello community, I've a problem and can't find a solution for it.The problem is that i can't find the.png file that represents the texture of the windscreen of a car.I've been searching for a while and the only thing i found is when it's damaged.Can't find the normal one.Can anyone help me out with this because it's quite important.I wanted to use shaders to replace it because i'm not going to apply it to every car.So it would be great if someone can help me with this. Thank you and regards, Syntrax#
  15. First of all i'm Serenity, i'm a mapper / scripter ( and moddeler but still learning how to model ). I've seen you are searching for experienced mappers and i'm free to help you map things if you want to.It's up to you to decide if you want to work with me or not.Here are some mappings i made Dayz Mapping ( Still in progress ) http://imgur.com/a/HKwfP LV Cross http://imgur.com/a/uz1kl Bank Interior http://imgur.com/a/AGSOS http://imgur.com/a/QiaxU Prison interior http://imgur.com/a/NCef9 Terrorist Base http://imgur.com/a/2CGf6
  16. sooo its not something that can be fixed? Well i will try everything i can in order to fix this for you but i can't promise anything mate
  17. I've checked out the script and it seems like the s_main isn't getting the player properly sometimes.it's probally a bug within MTA since this is the first time i see this kind of thing. on the S_Main the bug appears at local plrTeam = getPlayerTeam( client ); The client class represents any client that is connected to the server. Therefore, clients are created and destroyed automatically by players' connections or disconnections. They usually are the MTA: SA copy that a player is using (so it has more information about the world), but it can also be the server console.
  18. Fellow community, I'm here with a script today,it's a skin selection but made out of DX.But i've encoutered a problem within this script.I want to output table information on the Text but i can't get all the numbers in the Rectangles.It should go from 1 - 11 in every Rectangle.But it only outputs 3 for me.Does Anyone know how to fix this problem i would be happy if you could help me out --Client Skintable = { -- {Classname, Teamneame, SkinID, Spawninfo, R, g, b} {number=1, class="Arms Dealer", team="Criminals", skinID=15, spawninfo="spawn info here", r=150, g=0, b=0 }, {number=2, class="Drugs Dealer", team="Criminals", skinID=15, spawninfo="spawn info here", r=150, g=0, b=0 }, {number=3, class="Police Officer", team="Police Department", skinID=285, spawninfo="spawn info here", r=0, g=0, b=180 }, } for i,v in ipairs(Skintable) do -- outputChatBox("Number : "..v.number..", Class : "..v.class..", Team : "..v.team..", SkinID : "..v.skinID..", SpawnInfo : "..v.spawninfo..", R : "..v.r..", G : "..v.g..", B : "..v.b.." .") outputChatBox(i.." Value : "..v.class) end local screenW, screenH = guiGetScreenSize() function DrawSelection() for i,v in ipairs(Skintable) do if i ~= nil then dxDrawRectangle(screenW * (0.2226 + (0.043*1)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(v.r,v.g,v.b, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*1)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(v.r,v.g,v.b, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*2)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(v.r,v.g,v.b, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*3)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*4)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*5)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*6)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*7)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*8)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*9)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*10)), screenH * 0.9219, screenW * 0.0391, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * 0.1992, screenH * 0.9219, screenW * 0.0617, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * (0.2656 + (0.043*11)), screenH * 0.9219, screenW * 0.0617, screenH * 0.0479, tocolor(0, 0, 0, 200), false) dxDrawText("<<", (screenW * 0.1992) - 1, (screenH * 0.9219) - 1, (screenW * 0.2609) - 1, (screenH * 0.9697) - 1, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("<<", (screenW * 0.1992) + 1, (screenH * 0.9219) - 1, (screenW * 0.2609) + 1, (screenH * 0.9697) - 1, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("<<", (screenW * 0.1992) - 1, (screenH * 0.9219) + 1, (screenW * 0.2609) - 1, (screenH * 0.9697) + 1, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("<<", (screenW * 0.1992) + 1, (screenH * 0.9219) + 1, (screenW * 0.2609) + 1, (screenH * 0.9697) + 1, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("<<", screenW * 0.1992, screenH * 0.9219, screenW * 0.2609, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText(">>", (screenW * (0.2656 + (0.043*11))) - 1, (screenH * 0.9219) - 1, (screenW * 0.7961) - 1, (screenH * 0.9697) - 1, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText(">>", (screenW * (0.2656 + (0.043*11))) + 1, (screenH * 0.9219) - 1, (screenW * 0.7961) + 1, (screenH * 0.9697) - 1, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText(">>", (screenW * (0.2656 + (0.043*11))) - 1, (screenH * 0.9219) + 1, (screenW * 0.7961) - 1, (screenH * 0.9697) + 1, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText(">>", (screenW * (0.2656 + (0.043*11))) + 1, (screenH * 0.9219) + 1, (screenW * 0.7961) + 1, (screenH * 0.9697) + 1, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText(">>", screenW * (0.2656 + (0.043*11)), screenH * 0.9219, screenW * 0.7961, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText(v.number, screenW * 0.2656, screenH * 0.9219, screenW * 0.3047, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText(v.number, screenW * (0.2656 + (0.043*1)), screenH * 0.9219, screenW * 0.3477, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText(v.number, screenW * (0.2656 + (0.043*2)), screenH * 0.9219, screenW * 0.3906, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("0", screenW * (0.2656 + (0.043*3)), screenH * 0.9219, screenW * 0.4336, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("0", screenW * (0.2656 + (0.043*4)), screenH * 0.9219, screenW * 0.4758, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("0", screenW * (0.2656 + (0.043*5)), screenH * 0.9219, screenW * 0.5180, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("0", screenW * (0.2656 + (0.043*6)), screenH * 0.9219, screenW * 0.5602, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("0", screenW * (0.2656 + (0.043*7)), screenH * 0.9219, screenW * 0.6023, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("0", screenW * (0.2656 + (0.043*8)), screenH * 0.9219, screenW * 0.6453, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("0", screenW * (0.2656 + (0.043*9)), screenH * 0.9219, screenW * 0.6875, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("0", screenW * (0.2656 + (0.043*10)), screenH * 0.9219, screenW * 0.7297, screenH * 0.9697, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) end end end function showSelection() addEventHandler("onClientRender", root, DrawSelection) end addCommandHandler("show", showSelection)
  19. Vehicle doesn't have an data over there,you gotta give it a data addEvent("givePVehicle", true) addEventHandler( "givePVehicle", root, function() local vehicle = createVehicle (482,1605.42, -1472.97, 13.58,0,0,0) setElementData (vehicle, "OwnerOfThisVehicle", source) warpPedIntoVehicle(source, vehicle) end ) function removePVehicle ( player, seat, jacked ) local vehicle = getPedOccupiedVehicle ( player ) if getElementData (vehicle, "OwnerOfThisVehicle") == source then destroyElement (vehicle) end end addEvent ("removePVehicle",true) addEventHandler ( "removePVehicle", root, removePVehicle )
  20. try using a sql database or mysql and on resourcestart it should get the data and update it when somebody quits
  21. tried everything i could but nothing can't get it to work somehow,can anyone help me out with this ?
  22. Doesn't Give any errors when i'm visiting the link,let me see if i can find a way to get the error code
  23. Fellow community, I've recently finished the design of my new login panel,but now i ame to the server side i've encoutered a problem.I've been using Raysmta solution to connect ot IPB but now it doesn't work at all,i only get the outputdebugscript [ [ ] ] It doesn't give any other information -- Serverside function PlayerLogin(username,password) callRemote("http://dynastynetworkrpg.net/userconnection.php", function(...) outputDebugString(toJSON({...})) end, "verifyPasswords", username, password) if response == true then outputDebugString("Right Pass.") triggerClientEvent (source,"onLoginSuccess",getRootElement()) -- password correct else if extra == 1 then outputDebugString("Wrong Pass.") -- password incorrect elseif extra == 2 then -- account not found outputDebugString("Acc not found") end end end addEvent("onRequestLogin",true) addEventHandler("onRequestLogin",getRootElement(),PlayerLogin) function registerPlayer(rusername,rpassword,rlocalplayername,rmail,rconfirmpass) if not (rusername == "") then if not (rpassword == "") then if not (rmail == "") then local account = getAccount (rusername) if (account == false) then local accountAdded = addAccount(tostring(rusername),tostring(rpassword)) executeSQLInsert("database_accountGroups","'"..rusername.."','[ [ ] ]'") setAccountData(accountAdded, "money", 0) if (accountAdded) then dbExec( connection,"INSERT INTO Userdata (AccountName,LastName,Money,Kills,Deaths,Arrests,Lastlogin,Email,Hours,OwnedCars) VALUES(?,?,?,?,?,?,?,?,?,?)", rusername, rlocalplayername, 0, 0, 0, 0, "SOON", rmail, 0, "None" ) triggerClientEvent(source,"onRegisterSuccess",getRootElement(),sRegistererror, srr, srg, srb) triggerClientEvent(source,"onRegisterSuccess1",getRootElement()) else sRegistererror = "Unknown error,contact an available admin" srr, srg, srb = 255, 128, 0 triggerClientEvent(source,"onRegisterFail",getRootElement(),sRegistererror, srr, srg, srb) end else sRegistererror = "Account already exist in our database" srr, srg, srb = 255, 128, 0 triggerClientEvent(source,"onRegisterFail",getRootElement(),sRegistererror, srr, srg, srb) end else sRegistererror = "No email has been entered" srr, srg, srb = 170, 0, 0 triggerClientEvent(source,"onRegisterFail",getRootElement(),sRegistererror, srr, srg, srb) end else sRegistererror = "No password has been entered" srr, srg, srb = 170, 0, 0 triggerClientEvent(source,"onRegisterFail",getRootElement(),sRegistererror, srr, srg, srb) end else sRegistererror = "No Username has been entered" srr, srg, srb = 170, 0, 0 triggerClientEvent(source,"onRegisterFail",getRootElement(),sRegistererror, srr, srg, srb) end end addEvent("onRequestRegister",true) addEventHandler("onRequestRegister",getRootElement(),registerPlayer) -- PHP <?php // PHP include 'mta_sdk.php'; // Correct path if you use a different one $servername = "localhost"; // Change these details $username = "root"; // Change these details $password = "*********"; // Change these details $dbname = "dynasty"; // Change these details $table = "core_members"; $accountColumn = "name"; // change to "email" if you prefer logging in through email $conn = mysqli_connect($servername, $username, $password, $dbname); if (!$conn) { mta::doReturn(false, "Connection failed: " . mysqli_connect_error()); // Account not found #die("Connection failed: " . mysqli_connect_error()); } $input = mta::getInput(); if (isset($input[0]) && isset($input[1]) && isset($input[2]) && $input[0] == "verifyPasswords" ) { $sql = "SELECT `members_pass_salt`, `members_pass_hash` FROM `".$table."` WHERE `".$accountColumn."`='".strtolower($input[1])."' LIMIT 1"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { $row = mysqli_fetch_assoc($result); if (crypt($input[2], '$2a$13$' . $row['members_pass_salt']) == $row['members_pass_hash']) { mta::doReturn(true, 0); // Password correct } else { mta::doReturn(false, 1); // Passwords don't match } } else { mta::doReturn(false, 2); // Account not found } } // Author: MrTasty ?>
  24. Why you ain't using setElementFrozen Here is the script from the wiki. -- Serverside -- -- This function freezes the specified player's vehicle, if he's in one function toggleFreezeStatus ( thePlayer ) -- if he is in a vehicle, if getPedOccupiedVehicle ( thePlayer ) then -- get the vehicle element local playerVehicle = getPlayerOccupiedVehicle ( thePlayer ) -- get the current freeze status local currentFreezeStatus = isElementFrozen ( playerVehicle ) -- get the new freeze status (the opposite of the previous state) local newFreezeStatus = not currentFreezeStatus -- set the new freeze status setElementFrozen ( playerVehicle, newFreezeStatus ) end end -- now bind a key to this function for all players. -- first get a list of all players local connectedPlayers = getElementsByType ( "player" ) -- then, for each player, for i, aPlayer in ipairs(connectedPlayers) do -- bind the player's "p" key to the toggleFreezeStatus function bindKey ( aPlayer, "p", "down", "Toggle freeze status", toggleFreezeStatus ) end
  25. use this code it's clientside setTimer ( function() if isPedInVehicle( getLocalPlayer( )) then local uVehicle = getPedOccupiedVehicle( getLocalPlayer( ) ) if uVehicle then local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setVehicleColor( uVehicle, r, g, b ) end end end, 5000, 1 )
×
×
  • Create New...