Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 18/07/19 in all areas

  1. Remastered GTA:SA's Classic HUD Preview Download: Github Community Resources
    2 points
  2. You may use: addCommandHandler -- to make the command like you've said 'lmute'. getPlayerFromName -- get the player's name from what you've typed in the command. setElementData / setAccountData -- use either of them to give data to the player you want to mute. Then you should modify your local chat script and add a check, it should be something like: if getElementData(...) then return false end since MTA doesn't have a local chat system he's talking obviously about a custom chat system. You may use: addCommandHandler -- to make the command like you've said 'lmute'. getPlayerFromName -- get the player's name from what you've typed in the command. setElementData / setAccountData -- use either of them to give data to the player you want to mute. Then you should modify your local chat script and add a check, it should be something like: if getElementData(...) then return false end since MTA doesn't have a local chat system he's talking obviously about a custom chat system.
    1 point
  3. setPlayerMuted isPlayerMuted onPlayerChat cancelEvent For type 0 if local is default chat if not and is a costum command then not put the event
    1 point
  4. Everything works now, if something happens i will update this post. Thanks @Dutchman101 Tudo está normal agora, se algo acontecer eu atualizarei este post.
    1 point
  5. Making 500 Topics For Server Name SAEG:RPG ? OMG One Topic enough
    1 point
  6. Da próxima vez, permaneça naquele tópico. Uma vez que o assunto é o mesmo. Você chegou a ler a Wiki do Anti-Cheat? Lá mostra outros números e o que eles bloqueiam respectivamente. De acordo com você, ainda há jogadores usando macro no seu servidor. Será mesmo? Talvez seja outro tipo de hack que não seja macro especificamente.
    1 point
  7. Está certo. Quando você conecta no server irá mostrar no console, certifique-se que esteja mostrando: Server AC info: [Allowed client files: None] [Disabled AC: None] [Enabled SD: 31,32] em Enabled SD Edit: Você deveria ter postado aqui: https://forum.multitheftauto.com/topic/118682-detestação-de-programa/ Ou aguardar responderem. Além do mais esse local não tem a ver com esse problema, você deveria postar em: Portuguese / Português > Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
    1 point
  8. I recommend you coping the file that has the binds saved on here: MTA San Andreas 1.5\MTA\config\coreconfig.xml just save a backup the file whenever it's fixed and replace it again if the trouble happen again
    1 point
  9. وعليكم السلام ورحمة الله print ( tostring ( getResourceName ( sourceResource ) ) )
    1 point
  10. تبي تصير مبرمج؟ اتركك من الخرابيط والي يقول رح تعلم البرمجه من الاساس ومدري ايش كلها كلام فاضي رح اخذلك تعلم كيف يتم بناء الخوارزميات وفيه شروحات كثييير.. وقتها تعال تعلم من الاكواد او شوف لك شروحات عن ال لوا وعلى حسب ماتريد اذا تبي ويب 1 - HTML & CSS & JS بعدين تقدر تختار اي لغة تحتاجها عشان تسوي الهوست PHP & NODEJS & PYTHON وفيه لغات كثييررر بالتوفيق ):
    1 point
  11. Try this: function rewardTimer(player) local player = source or player setTimer ( rewardOnRun, 10000, 1,player ) givePlayerMoney ( player, 3000 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), rewardTimer ) function rewardOnRun(player) givePlayerMoney ( player, 3000 ) setTimer ( rewardTimer, 10000, 1,player ) end You did not give any argument to the rewardOnRun() function. This would make it work, although i am not sure what you are trying to do with the code.
    1 point
  12. 1 point
  13. https://wiki.multitheftauto.com/wiki/Se ... oubleSided
    1 point
  14. (not tested) I used timers this time, but same can be applied with getTickCount() --------------------------- -- Repair vehicle --------------------------- local repairDelayTime = 30000 -- delay time in ms local repairTimer = false function repairVehicle() if isTimer(repairTimer) then local timeleft = math.ceil( getTimerDetails(repairTimer)/1000 ) -- Get seconds left from timer if timeleft then local secondString = " second" if timeleft > 1 then secondString = " seconds" end outputChatBox("Repair failed! Repair is possible again in "..tostring(timeleft)..secondString) return false end end local vehicle = getPedOccupiedVehicle(g_Me) if vehicle then server.fixVehicle(vehicle) repairDelayTime = setTimer(function() repairTimer = false end,repairDelayTime,1) end end addCommandHandler('repair', repairVehicle) addCommandHandler('rp', repairVehicle)
    1 point
  15. Are you sure textFrom is returning the proper text? I tested this in runcode: crun outputChatBox( split("Dollars - USD"," - ")[1] ) outputChatBox( split("Dollars - USD"," - ")[2] ) And it works properly, so i really think it's textForm (guiComboBoxGetItemText) causing the issue.
    1 point
  16. You can do it with getTickCount() Example: local repairDelay = 30000 -- 30 seconds delay (in ms) local delayTick = false function repairFunction() -- Check when the last repair was if getTickCount() - delayTick < repairDelay then return end -- If it's less then repairDelay ms ago then abort -- repair code --set tick when repair happened delayTick = getTickCount() end Not tested, but you get the point.
    1 point
  17. local myMessage = exports.msg:message setTimer(myMessage,23000,1,"Let's try this way",source,255,255,0) That should work.
    1 point
×
×
  • Create New...