Jump to content

Saml1er

Retired Staff
  • Posts

    1,058
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Saml1er

  1. Saml1er

    Twitter

    So, I've to do it with php then, right?
  2. I've already talked to him in skype and accepted the deal.
  3. Saml1er

    Twitter

    TF = require( "twitterFacade" ) TF.init( 'Conkey', 'comSec', 'blah.com' ) TF.tweet( "Nyanyanyanyanyanyanya", "nyancat.jpg" ) Do these functions work in lua?
  4. Hi, can you please tell me what do you mean by percentage and how much will you pay?
  5. Saml1er

    Twitter

    I already tried that and it keeps giving an error: a boolean value and function cancelled to call.
  6. Saml1er

    Twitter

    I know lua scripting only so I need your help in PHP to use callRemote and I already saw that PHP API but I don't even know a thing about PHP.
  7. Saml1er

    Twitter

    Hello, I was wondering if I can get tweets from twitter using fetchRemote? I did some tests and found a lot of error like errno 1. So is there any other possible way to get tweets?
  8. Saml1er

    Excel in MTA

    Just an example to download the image. -- server side local img = "" function GetData(data, errno) if data ~= "ERROR" then outputChatBox("Image downloaded.") img = data if img and img ~= "" then triggerClientEvent(getRootElement(), "onClientGetImage", getRootElement(), img) else outputChatBox("ERROR: "..errno ) end end end addEventHandler("onResourceStart", getRootElement(), function ( ) fetch = fetchRemote("www.example.com/some.png", GetData) if fetch then outputChatBox("Successfully downloaded data.") else outputChatBox("Error downloading data") end end local pic = "" function renderimage() dxDrawImage(0, 0, 403, 119, pic) end addEvent("onClientGetImage", true ) addEventHandler("onClientGetImage", getRootElement(), function(img) pic = img addEventHandler("onClientRender", root, renderimage) end )
  9. local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height) function createText ( ) myFont = dxCreateFont( "segoeui.ttf", 20 ) -- dxCreateFont( "segoeui.ttf", FONT SIZE ) local playerX, playerY, playerZ = getElementPosition ( localPlayer ) -- Get our player's coordinates. local playerZoneName = getZoneName ( playerX, playerY, playerZ ) -- Get name of the zone the player is in. dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, myFont ) -- tocolor ( 0, 0, 0, 255 ), Font size, myFont ) dxDrawText ( playerZoneName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, myFont) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) -- keep the text visible with onClientRender. end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering ) Also add this line in your meta.xml. "segoeui.ttf" />
  10. XML is more secure, in my opinion setElementData = SQL. XML is a file which you can open/close/save any time and XML doesn't lagg. 3. If I choose to work with XML, if I wanted to move the data from the current server to a new one, copy-pasting the resource into the new server will allow me to move the data? Yes. _____________________________________________________________________________________________________ Also, its really easy to use XML. Let me know if you need help.
  11. I tried to help him but couldn't get it fixed, seems your acl is bugged somehow.
  12. I tried to help him but couldn't get it fixed, seems your acl is bugged somehow.
  13. Saml1er

    Help me plz!!

    Its way too easy to make. I'll be online at 21 msk. Add me on Skype I'll help you out. majid.sheikh95
  14. Saml1er

    LuaDecomplier

    There actually is a decompiler but the script will be useless though because it won't have mta functions. It will be just a pile of code btw if need help in lua then feel free to ask. If you know scripting then good luck.
  15. Maybe we can get the velocity by moving the Object to some values and then using getElementType and finally we might be able to use getElementVelocity or its just too much complicated to understand.
  16. Well thats right, theres no physics. Requires a lot of coding if you want to make this.
  17. First get your x,y,z coordinates and then use moveObject ( adding some values to x ) and destroy the Object after 3 seconds. Its really easy to make, trust me.
  18. Saml1er

    DxDraw

    As I see you're doing it wrong. I'm saying this because I've made something similar to this, Just tell me what exactly do you want and I'll make it by tomorrow. I'm on from my mobile but anyways setElementData and getElementData works like This: local LV = "5" setElementData ( player, "XP", LV ) if tonumber ( getElementData ( player, "XP" ) ) == "5" or 5 then -- THEN I ROCK. also first you need to get the players account in order to get his account data. account = getPlayerAccount(source) getAccountData(account,"money") -- HERE Tested and it works 100 %. addEventHandler ( "onPlayerJoin", root, function ( ) setElementData( source, "LV", false) setElementData( source, "LV", "3") setElementData ( source, "Rankicon", false ) end ) addEventHandler ( "onPlayerLogin", root, function ( _, acc ) local LV = tonumber (getElementData( source, "LV")) if LV == 0 then -- if LV is equal to 0 then -- setElementData ( source, "Rankicon", ":Class\\Rank\\rank_0.png" ) elseif LV > 0 and LV < 2 then -- means LV is greater than 0 and lesser than 2 so its 1. setElementData ( source, "Rankicon", ":Class\\Rank\\rank_1.png" ) elseif LV > 1 and LV < 3 then setElementData ( source, "Rankicon", ":Class\Rank\\rank_2.png" ) -- now here if LV is greater than 1 and lesser than 3 then its 2 -- so its simple math and I think you can do other thing by yourself -- Use setElementData, getAccountData sucks. elseif LV > 2 and LV < 4 then -- so here its 3. setElementData ( source, "Rankicon", ":Class\\Rank\\rank_3.png" ) end end )
  19. I'm not a pro at math but the solution is quite simple as I see. In shooter maps we always shoot rockets in straight direction, so you want that arrow to be in straight direction, right? So download an shooter map and there should be 4 lines where math.cos is used, just use thèse four lines to get the position and to to keep the arrow in straight direction and add onClientRender to get the rotation. Right now I'm away from home, once I'm back. I'll help you then.
  20. Saml1er

    Water walk

    This works because itachi is using genjutsu.
  21. Well I'm on my mobile phone right now and Youtube is blocked in my country so Just tell me exactly what you need and I'll make it, I don't script for money. I script for fun.
  22. Saml1er

    Water walk

    That seems interesting, I'll put all my efforts in making it.
×
×
  • Create New...