Jump to content

AhmadQTR

Members
  • Posts

    451
  • Joined

  • Last visited

Everything posted by AhmadQTR

  1. Well i just know that 'local' defines something like local playername = getPlayerName (source) -- gets the player name local root = getRootElement() --gets root element function output () outputChatBox ( playername.."Has Joined the server!", root, 255, 255, 100, true ) end addEventHandler ( "onPlayerJoin", root, output )
  2. AhmadQTR

    Lua help

    You can read the recommended manuals and trust me , you will be a good scripter if you kept reading lua manuals, no one will help you , you must help yourself.
  3. He said you didn't defined the Player
  4. You can't you must make ddos protection ( I think you can buy one or there is free )
  5. You can check CrystalMV resources page. http://crystalmv.net84.net/pages/scripts.php
  6. I just know this ^ Since this is a client script so function replace () outputChatBox ( "> replacing the euros vehicle" ) txd = engineLoadTXD ( "data/euros.txd" ) engineImportTXD ( txd, 587 ) dff = engineLoadDFF ( "data/euros.dff", 587 ) engineReplaceModel ( dff, 587 ) addEventHandler ( "onClientResourceStart", replace )
  7. Already reported. Didn't saw that someone reported it before me.
  8. Table = { 'MJNONFIK', 'MR.S3D', '3ɑsн8 ɑʟsнɾq', 'ρяєsτɪɢє', 'TaLaL', 'jafar', 'SoRa', 'T9', 'nony', '|Mr|-Talal07-|', '1bmnx', '3ήẰÐ', 'α7мα∂qтя', '14', }
  9. It's legal but some people ddos you (Like Multi Theft Auto RP) idk how , you must do a ddos protection
  10. MOD : https://community.multitheftauto.com/index.php?p=resources&s=details&id=6047 DONE
  11. I have no idea your talking about what , can you take some pic's of it? please.
  12. Nothing is wrong. It doesn't load the files yet. I have to rewrite this part. I'll be adding Lua syntax checker next and then probably the functions on the right. I simply don't want to do too much at once because there is higher possibility that there will be bugs undiscovered by me.
  13. كود عناد بس مغير الاسماء الله يصلحك
  14. -- Client Side addEvent ( "wave", true ) addEventHandler ( "wave", root, function ( thePed ) setPedAnimation ( thePed, "BD_GF_Wave", true ) outputChatBox ( "stop its check point", 255, 255, 0, true ) function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedAnimation ( thePed, "BD_GF_Wave", false ) outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true ) for _, xaa in ipairs ( getTimers ( 100 ) ) do killTimer ( xaa ) end end ) --server thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then removePedFromVehicle ( thePlayer ) setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true ) end end end end )
  15. createMarker getPlayerTeam removePedFromVehicle
  16. in the meta file is the MySQL connect data, the first wich loads. from the MySQL connect: gMysqlHost = "localhost" gMysqlUser = "********" gMysqlPass = "********" gMysqlDatabase = "MTA" function MySQL_Startup() handler = mysql_connect(gMysqlHost, gMysqlUser, gMysqlPass, gMysqlDatabase) if( not handler) then outputDebugString("Couldn't run query: Unable to connect to the MySQL server!") outputDebugString("Please shutdown the server and start the MySQL server!") end end Well , see the errors and see this ^ It types errors that you didn't use , so show the full script so we can see -.-
  17. Well i don't know MySQL , this may help you https://forum.multitheftauto.com/viewtopic.php?f=148&t=42067
  18. Your module is .so , then you must type in mtaserver.conf <module src="mta_mysql.so" />
  19. https://forum.multitheftauto.com/viewtopic.php?f=148&t=40809
  20. hello I tried using this website and I always end up at a blank page Maybe because the txd + dff space is more than 15MB Or maybe your not using the correct internet browser (idk the good ones)
  21. Maybe you didn't made the file 'modules' without the ' ' and be sure you named it modules
  22. اكتب في الكونسول shutdown
×
×
  • Create New...