sckatchof
-
Posts
394 -
Joined
-
Last visited
Posts posted by sckatchof
-
-
This Is not your script, try to make your own script then we can help you !
-
Thaherli matnajemech mal9itech tari9a..
ynajem ama not for all vehicles, ynajem ya3mel 3ala some vehicles IDs b les fonctions mta3 sparrow.
-
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
-
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.
-
I Don't understnd you why write this? I only good like the page of wikipedia of the MapInfo functions, or how i can get orher maps informations?
I don't understand what you want exactly you want to make gui to get map informations ?!
-
we will not here to script for your try by yourself and we will correct it or help you!
-
-
you can use this :
setGameType getGameType setMapName getMapName
-
-
-
Problem fixed. thank you uhm for help, thanks everybody
-
oh that's no good. could you connect before? did you remove the root account before adding a new one? is the mysql server running on the same server as the php server with phpMyAdmin? windows or linux?
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.
-
-
it's about the "Host" box
you must create a new user to allow for it
thank you uhm
-
Should be on "Users" tab.
ok i will try, thanks snake i
-
You must grant all privilegies to your IP on phpMyAdmin if I'm right.
but how can grant all privileges on phpMyAdmin ?
-
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
-
There are 22 Arab countries, will get a mess and everyone wants a special section for his country.
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 !!!
-
I support this idea
-
thank you Anderl for help
Fixed.
-
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 )
-
Saying that it doesn't work without telling any more infos doesn't really help.
More info ! what you mean i post that server side and i think that should work ?!!
-
Didn't I just send you fixed(?, not tested but it's fixed ) code?
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
-
Show your whole code.
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
Report community resources here!
in Suggestions
Posted
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