Dimos7

Members
  • Content Count

    1,420
  • Joined

  • Last visited

Community Reputation

70 Popular

6 Followers

About Dimos7

  • Rank
    Loc
  • Birthday 09/02/1994

Details

  • Location
    Greece

Recent Profile Visitors

2,762 profile views
  1. Dimos7

    Ignore all player's messages

    do something like this and onPlayerMessage to see if works
  2. Dimos7

    Ignore all player's messages

    local blockedPlayers = {} function getPlayerFromPatrialName(name) local name = name and name:gsub("#%x%x%x%x%X%x", ""):lower() or nil if name then for _ , player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end addEventHandler("onClientMessage", root, function() if blockedPlayers[source] then cancelEvent() outputChatBox(getPlayerName(source).." wrote something in chat, but you block him!") end end ) function block(cmd, target) local targetPlayer = getPlayerFromPatrialName(target) if target and targetPlayer then if not blockedPlayers[targetPlayer] then blockedPlayers[targetPlayer] = true outputChatBox("player "..getPlayerName(targetPlayer).. " blocked") else blockedPlayers[targetPlayer] = nil outputChatBox("player ".. getPlayerName(targetPlayer).." unblocked") end else outputChatBox("Player not found!") end end addCommandHandler("block", block) <meta> <script src="namefile.lua" type="client"/> </meta>
  3. Dimos7

    Ignore all player's messages

    i don't have such error myself
  4. Dimos7

    Ignore all player's messages

    local blockedPlayers = {} function getPlayerFromPatrialName(name) local name = name and name:gsub("#%x%x%x%x%X%x", ""):lower() or nil if name then for _ , player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end addEventHandler("onClientMessage", root, function() if blockedPlayers[source] then cancelEvent() outputChatBox(getPlayerName(source).." wrote something in chat, but you block him!") end end ) function block(cmd, target) local targetPlayer = getPlayerFromPatrialName(target) if target and targetPlayer then if not blockedPlayers[targetPlayer] then blockedPlayer[targetPlayer] = true outputChatBox("player "..getPlayerName(targetPlayer).. "blocked") else blockedPlayers[targetPlayer] = nil outputChatBox("player ".. getPlayerName(targetPlayer).." unblocked") end else outputChatBox("Player not found!") end end addCommandHandler("block", block)
  5. Dimos7

    Help !!!

    Lower the 3rd argument
  6. Any errors or warnings in /debugscipt 3?
  7. Dimos7

    giveWeapon for first join

    wired you are sure have it in mtaa folder resource also trtied to restart the resource after change it?
  8. Dimos7

    giveWeapon for first join

    <meta> <script src ="server.lua" type="server"/> </meta>
  9. Dimos7

    giveWeapon for first join

    Show us the meta
  10. Dimos7

    Warp player into vehicles

    well it not goint to work like this try this server side car = createVehicle( 411, 0, 0, 1, 0, 0 , 0) function testing(thePlayer) warpPedIntoVehicle(thePlayer, car) end addCommandHandler("w", testing)
  11. Dimos7

    Group name over head.

    dxDrawTextOnElement
  12. Dimos7

    Command RP

    /me exist from mta itself but you can create costum chat addCommandHandler getPlayerName outputChatBox outputServerLog
  13. Dimos7

    0905: toggle_door/set_door opcode in LUA?

    createObject createColRectangle moveObject you can use that
  14. Dimos7

    Login Panel

    interpolateBetween dxDrawRectangle dxDrawText dxDrawImage
  15. Dimos7

    Scripting in C++

    first watch some youtube videos may help you or look for someone know the langaunge