Jump to content

sckatchof

Members
  • Posts

    394
  • Joined

  • Last visited

Everything posted by sckatchof

  1. https://community.multitheftauto.com/index.php?p=resources&s=details&id=9423 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9422 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9421 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9415 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9414 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9409 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9408 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9407 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9404 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9403 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9401 Stolen from SRC server,Just check the scripts above's credits.+ even some of them are named as [src]scriptname. DONE
  2. This Is not your script, try to make your own script then we can help you !
  3. ynajem ama not for all vehicles, ynajem ya3mel 3ala some vehicles IDs b les fonctions mta3 sparrow.
  4. Jareb hetha Client side : local shaders = {} addEventHandler("onClientElementStreamIn",root, function () if getElementType(localplayer ) == "vehicle" then loadVehicleLights(localplayer ) end end ) addEventHandler("onClientVehicleEnter",root, function () loadVehicleLights() end ) function loadVehicleLights () local controller = getVehicleController(localplayer ) if not controller then return end local image = getElementData(controller,"vehiclelight") if not image then return end if not shaders[image] then local texture = dxCreateTexture("images/"..image..".jpg","dxt3") local shader = dxCreateShader("lights.fx") dxSetShaderValue(shader,"gTexture",texture) shaders[image] = shader end engineApplyShaderToWorldTexture(shaders[image],"vehiclepoldecals128",vehicle) end function unloadVehicleLights () local controller = getVehicleController(localplayer ) if not controller then return end local image = getElementData(controller,"vehiclelight") if not image then return end engineRemoveShaderFromWorldTexture(shaders[image],"vehiclepoldecals128",vehicle) end
  5. ahla bik, fama scripte fel community fih fes fonctions eli 7achtek behom heth lien mte3ou Link : https://community.multitheftauto.com/ind ... ls&id=2540 tawa tal9a fih fichier esmou [ functions.txt ] fih les exports eli test7a9hom.
  6. I don't understand what you want exactly you want to make gui to get map informations ?!
  7. we will not here to script for your try by yourself and we will correct it or help you!
  8. sckatchof

    TXD

    No not good. try this XML file : type="script" version="1.0" name="Police Station" author="boro"/> Client side : addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), function() engineImportTXD ( engineLoadTXD ( "policeST.txd", 1456 ), 1456 ) end )
  9. you can use this : setGameType getGameType setMapName getMapName
  10. sckatchof

    Help

    Learn more : https://wiki.multitheftauto.com/wiki/Scr ... troduction
  11. sckatchof

    TXD

    use this functions : engineImportTXD engineLoadTXD
  12. Problem fixed. thank you uhm for help, thanks everybody
  13. windows 7 but now i change Mysql config it's work with 127.0.0.1/phpMyAdmin but with localhost/phpMyAdmin don't work Forbidden You don't have permission to access /phpmyadmin/ on this server.
  14. i have ather problem i can't connect with phpMyadmin !!
  15. ok i will try, thanks snake i
  16. but how can grant all privileges on phpMyAdmin ?
  17. hi guys i have problem with connect to mysql : function getMySQLconnection() MySQlc= dbConnect( "mysql", "dbname=Khodja;host=127.0.0.1", "username", "password", "share=1" ) if MySQlc then outputDebugString ( "Server is now connected with the MySQL database!") exports.TNSDxChatBox:CreatDxChatBoxForPlayer(root, "Server is now connected with the MySQL database!", 0,255,0) return true else exports.TNSDxChatBox:CreatDxChatBoxForPlayer(root, "Connection with the MySQL database failed!", 255,0,0) outputDebugString ( "Connection with the MySQL database failed!" ) return false end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), getMySQLconnection ) Error : MySQl/mysql.lua line:2: dbConnect failed; Host 'DELL-PC' is not allowed to connect to this Mysql database server
  18. but the 22 arab countries they don't understand our language like you !! and we understand all arabic languages and we can't write with that keyboard that's take alot of time like sparrow said !!!
  19. thank you Anderl for help Fixed.
  20. hi guys how can make the money show like this on scoreboard : $ x.xxx.xxx server side : addEventHandler("onClientRender",getRootElement(), function() if not starttick then starttick = getTickCount() end currenttick = getTickCount() if currenttick - starttick >= 1000 then setElementData(player, "Money" , "$"..getPlayerMoney( player ) ) starttick = getTickCount() end end )
  21. More info ! what you mean i post that server side and i think that should work ?!!
  22. still don't work i tested it then i make that to test simple script but still don't work ! i want in this script when i enter to turf zone it show that msg " test 1 " .. .. --{Tabel} .. function OnresourceOpen (player) for ID in pairs(Turfids) do local fX, fY, fZ = Turfids[ID][1], Turfids[ID][2], Turfids[ID][3] CreateColid = createColCuboid ( fX, fY, fZ, 10.0, 10.0, 10.0 ) if CreateColid then addEventHandler( "onColShapeHit", CreateColid, cuboidHit, false ); end end end addEventHandler("onResourceStart", resourceRoot, OnresourceOpen) function cuboidHit (player) outputChatBox ( "Test 1", player, 255, 0, 0 ) ---{ Just for test }--- end
  23. i want just to test but it's don't work . (sorry for bad english ) server side ( Testing part ) : function OnresourceOpen (player) for ID in pairs(Turfids) do local fX, fY, fZ = Turfids[ID][1], Turfids[ID][2], Turfids[ID][3] CreateColid = createColCuboid ( fX, fY, fZ, 10.0, 10.0, 10.0 ) if CreateColid then addEventHandler( "onColShapeHit", CreateColid, cuboidHit, false ); end end end addEventHandler("onResourceStart", resourceRoot, OnresourceOpen) function cuboidHit (player) outputChatBox ( "Test 1", player, 255, 0, 0 ) end
×
×
  • Create New...