Jump to content

Search the Community

Showing results for tags 'command'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Member Title


Gang


Location


Occupation


Interests

Found 15 results

  1. Scrolling through the tutorials, I found a script that displays players in the server when joining and quitting. function playerCount ( ) outputChatBox("#ff8800[server]: #ffffffPlayers: #ffffff(" .. getPlayerCount() .. "#ffffff)" , root, 255, 0, 0, true) end addEventHandler ( "onPlayerJoin", getRootElement(), playerCount ) addEventHandler ( "onPlayerQuit", getRootElement(), playerCount ) What would I have to add to trigger it with a command, such as "/players"?
  2. HI guys I downloaded Bank System . The system is such that when the player enters the marker, the ATM becomes active. But, I want to get the ATM system activated here by writing a text(Command For Example: /Bank). And in the custom area. Server.Lua The part that defines ATM activation with the marker atmls1 = 2116, -1118.3000488281,24.89999961853,0,0,162 atmls2 = 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 atmls3 = 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 atmsf1 = -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 atmsf2 = -2655.8999023438,257.89999389648, 4 ,0,0,90 atmredcounty = -74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 atmlv1 = 1715.5999755859,1533.5, 10.39 ,0,0,92 atmlv2 = 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 atmlv3 = 2159.5,950.79998779297, 10.699999809265 ,0,0,270 atmler = { { 2116, -1118.3000488281,24.89999961853,0,0,162 }, { 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 }, { 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 }, { -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 }, { -2655.8999023438,257.89999389648, 4 ,0,0,90 }, {-74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 }, { 1715.5999755859,1533.5, 10.39 ,0,0,92 }, { 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 }, { 2159.5,950.79998779297, 10.699999809265 ,0,0,270 } } atm = {} function displayLoadedRes ( res ) for theKey,theAtm in ipairs(atmler) do atm[theAtm] = createObject ( 2942, theAtm [ 1 ], theAtm [ 2 ], theAtm [ 3 ], theAtm [ 4 ], theAtm [ 5 ], theAtm [ 6 ] ) atmx, atmy, atmz = getElementPosition (atm[theAtm]) atmMarker = createMarker ( atmx, atmy, atmz -1, "cylinder", 1.5, 100, 100, 200, 170 ) setElementData (atmMarker,"atm",true) atmBlip = createBlipAttachedTo ( atm[theAtm], 52 ) setBlipVisibleDistance (atmBlip,200) setElementCollisionsEnabled(atm[theAtm], false) end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), displayLoadedRes ) function MarkerHit( hitElement, matchingDimension ) if ((getElementType(hitElement) == "player")) then local acc = getPlayerAccount (hitElement) if (acc and not isGuestAccount (acc)) then local atmmi = getElementData (source,"atm") if (atmmi == true) then triggerClientEvent(hitElement, "bankaGuiAc", hitElement) end end end end addEventHandler( "onMarkerHit", getRootElement(), MarkerHit ) please guide me Thanks
  3. [SOLVED] This will certainly be a beginner's subject. The folder [gameplay], located in "Resources", is filled with .rar files. I want to edit 'help.xml', which is inside "freeroam.rar". I tried extracting everything into a new folder called "freeroam", but my server is not detecting said folder. I'm sure I'm ignoring a command somewhere that's failing to locate the folder (might be written to only locate "freeroam.rar"). What can I do to reach the file, modify it, and keep the freeroam files working?
  4. Hey! My (not so original) idea is putting this /rp command into the server (local). I want it to work like this -> If you write your IC action next to /rp in chat (for example: /rp fasten the seat belt) then it gonna appear above the player in this form -> *fasten the seat belt. So basically it would repeat the action text above the player who said it (without the "/rp"). Is it possible to script it? If it is, then can someone help me, Im kindda new in scripting. If its not possible then it would be still cool if the repeated action would appear only in the chatbox. But the best and the coolest would be if it would appear above the player.. Thank you in advance!!
  5. function hirsiz (player) if not isGuestAccount(getPlayerAccount(player)) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Hirsiz")) then takeAllWeapons (player ) setPedArmor (player, 0 ) giveWeapon(player,4) giveWeapon(player,22,100) setPedSkin(player, 144 ) setPlayerTeam ( player, Hirsiz ) outputChatBox("#FFFFFF[#00FF00!#FFFFFF] Hırsızlık araçları verildi.", player, 255, 0, 0, true) else outputChatBox("#FFFFFF[#FF0000!#FFFFFF] Bu komutu kullanmak için Hırsız olmanız gerekiyor.", player, 255, 0, 0, true) end end end addCommandHandler("hirsiz",hirsiz) I want the players to use this command once a minute.
  6. Hello.... i need help. i starting scripting and i need support whit this script. function giveWeaponsOnPlayerSpawn (TheSpawnpoint, theTeam) giveWeapon (source, 26, 20) -- sawed-off and 20 ammo end addEventHandler ("onPlayerSpawn", getRootElement (), giveWeaponsOnSpawn) META: <meta> <script src="script.lua" type="server"/> <meta> ¿wich is the problem here? thanks
  7. Alguien de casualidad sabe como ponerle neon al hydra? pasa que encontre un script de neon ( https://community.multitheftauto.com/index.php?p=resources&s=details&id=8890 ) y resulta que no se puede poner neon en vehiculos aereos, al entrar al archivo zip, en el bloc llamado server, aparece algo tipo: elseif ( id == 504 ) then attachElements ( neon3, theVehicle or source, 0, 1.1, -0.55, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.15, -0.55, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0, -0.55) attachElements ( neon, theVehicle or source, -0.95, 0, -0.55 ) busque la id del hydra, o bien, vehiculos aereos en general, pues he visto varios servers en los que vehiculos aereos pueden tener neon(un ejemplo puede ser el Proyecto SX) alguien tiene todos esos comandos para vehiculos aéreos?xd
  8. Hi everyone, I am facing a small problem with tables, well I am not sure how to add something to a table by using addCommandHandler. Like, if this is my table local random = { -- x = y ['a'] = 'Two', ['b'] = 'One', ['c'] = 'Ten', } Then how can I add another line to this table by a command (addCommandHandler) For example If the command is "/add Q A" ~~~ ("/add d six") then it should add a new line to the table like -> local random = { ['a'] = 'Two', ['b'] = 'One', ['c'] = 'Ten', ['d'] = 'Six', } On the other hand, I have something like this in my mind for the command: local random = { -- x = y ['a'] = 'Two', ['b'] = 'One', ['c'] = 'Ten', ['d'] = 'Six', } function addabcdtotable(client, commandName, x, y) if (blabla ~= "18") then return false end if (x) then return false end --(Checks if (['d'] = 'Six',) already exists, if yes then it will simply return {where x = column and y = column-2}) Add-> (x,y) --(This will add {['d'] = 'Six',} to the table) end addCommandHandler("add", addabcdtotable) --For removing a line from table -> function removeabcdfromtable(client, commandName, x, y) if (blabla ~= "18") then return false end if (x) then --(Checks if (['d'] = 'Six',) already exists, if yes then it will be removed from the table {where x = column-1 and y = column-2) Remove-> (x, y) --(This will remove the whole line and fix the gap ['d'] = 'Six',) else return false end end end addCommandHandler("rem", removeabcdfromtable) -- NOW VERY IMPORTANT THE D IS ONLY THE EXAMPLE IT CAN BE ANYTHING LIKE (['ab'] = 'CD',) etc.. {X and Y is not the position please...}
  9. Buenas, les quería comentar que recientemente he intentado poner un timer sin exito para el drop, lo que yo quiero es que al poner el comando /drop en say, automáticamente se active un timer para que por si el jugador vuelve a tipear el comando deba esperar 5 segundos para volver a hacerlo, de esa manera no me harían un masivo floodeo con el comando, y ademas de eso el comando /drop queda bindeado con la tecla de "backspace" he buscado si en el archivo del teleport estaba la linea del bind pero no la encontré y a la hora de escribir o hacer ciertas cosas con otros resources se vuelve molesto apretar la tecla y que te mande a drop, sin mas que decir dejo la linea del teleport grcias! Aqui la linea del teleport : local posicoes = { { 1497.5999755859, -1853.0999755859, 2516 }, { 1493.3000488281, -1829.8000488281, 2516 }, { 1509.1999511719, -1827.3000488281, 2516 }, } function PosicaoPlayer ( thePlayer, command ) local azar = math.random ( #posicoes ) local veh = getPedOccupiedVehicle(thePlayer) if (veh) then setElementPosition(veh, unpack ( posicoes [ azar ] ) ) else setElementPosition(thePlayer, unpack ( posicoes [ azar ] ) ) end outputChatBox ( "#FFFFFF[#00FF00Tele#FFFFFF] ".. getPlayerName(thePlayer) .." #FFFFFFFue para drop! (#00FF00/drop#FFFFFF)", root, 0, 255, 0, true ) end addCommandHandler ( "drop", PosicaoPlayer )
  10. homies

    This is terrible!

    Somebody help please! Somebody told me to type in a command so when I typed it in my game froze and it glitched out! So now whenever I join any server, walk or drive forward, it freezes and glitches me out! Please somebody help me with this! I really love this game! And please don't tell me, ''just move backwards or to the sides'', and don't say, ''just punch to move''. Please help though.
  11. Hello guys, I would like to know if there is any command to solve my problem, I put a ped in an interior but it is practically invisible impossible to be seen. Do you have something to solve this?
  12. Hola, soy nuevo, por favor alguien podría explicarme como hago para que salga un mensaje (a todos los jugadores) para un determinado comando? Lo quiero hacer funcionar con este script: Gracias de antemano!
  13. Hello friends, how can I make this button execute the / wp command when preloading it? adminPanel.button[31] = GuiButton(6, 232, 91, 21, "IG:Warp", false, adminPanel.tab[2])
  14. السلام عليكم ورحمة الله وبركاته بسم الله الرحمن الرحيم سآتي لكم بطريقة تشغيل ملفات لوا داخل برنامج النوت باد باختصار لوحة مفاتيح الطريقة لاتعمل على المودات ابدا الطريقة هي عن طريق تشغيل باتش من برمجتي داخل البرنامج عند ضغط اختصار أولا تحميل الباتش rlua.bat قم بتحميل الباتش ولا تنسى ان تحتفظ بمساره ثانيا التأكد ان امر لوا مفعل داخل الكوماند قم بكتابة هذا الامر في الكوماند lua -v اذا ظهرت رسالة هكذا Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio اذا ظهرت رسالة مختلفة قم بتحميل لوا عن طريق الرابط التالي Lua5.1.5.zip الآن بعد التحميل نستخرج الملفات نضعها بمكان ما مع الاحتفاظ بالمسار ولكن هنا خطوة مهمة يجب اعادة تسمية lua5.1.exe lua5.1.dll الى lua.exe lua.dll سيصبح كما في الصورة داخل الكوماند lua الآن تعريف متغير نقوم بالذهاب الى خصائص الكمبيوتر advanced system settingsومن ثم Environment Variables ومن ثم كما في الصورة Edit ثم نضغط Path ستأتي لنا نافذة ثم نحدد سيأتي كما في الصورة نقوم باضافة الى النص عند رقم 2 بالصورة فاصلة منقوطة ومسار لوا يصبح هكذا ;C:\lua5.1 مساري هو الى ان تنغلق كافة النوافذ ok الآن نضغط نجرب الامر في الكوماند lua -v كما في السابق ان ظهرت نفس الرسالة السابقة التي تخص نسخة لوا اذا ظهر عكس ذلك فهناك مشاكل في التنزيل ++الآن نقوم بفتح النوت باد Run... ثم Run ثم نذهب لقائمة F5 او اضغط الآن تظهر لك نافذة هكذا ... نقوم بضعط الزر ستأتي لك نافذة تحديد مسار ثم نحدد مسار الباتش المحمل مسبقا ومن ثم مسافة ونكتب "$(FULL_CURRENT_PATH)" ليصبج هكذا "C:\rlua.bat" "$(FULL_CURRENT_PATH)" Save...ومن ثم نقوم بضغط ثم نقوم بتحديد المعطيات كما في الصورة ونحفظ التغيرات اتبع الخطوات بالارقام ثم سيكون لديك الاختصار جاهز هكذا الان اضغط ازرار الاختصار الذي قمت بتحديده وسيعمل كما في الصورة 32bit : Lua5.1.5.zip 64bit : Lua5.1.5.zip وانتهى الشرح بفضل الله تعالى أتمنى استفدتم من هذا الشرح ويكون كافيا والسلام عليكم ورحمة الله وبركاته
  15. Hello everyone. I was testing some commands on Console, and I can use normally this to make the player User#ff00ffname logout from the server. aexec User#ff00ffname logout BUT If I try this below, it doesn't work. aexec User#ff00ffname disconnect or aexec User#ff00ffname quit Can someone explain a way to make it? Or it is not possible anyway?
×
×
  • Create New...