Jump to content

Vision

Members
  • Posts

    405
  • Joined

  • Last visited

Everything posted by Vision

  1. special_control_up
  2. De nada.
  3. detachElements
  4. Not a resource https://community.multitheftauto.com/ind ... ls&id=6926 DONE
  5. Good work.
  6. Change this if model = 61 then to this if model == 61 then
  7. addEventHandler ( "onPlayerChat", root, function ( message ) if ( message == "showping" ) then outputChatBox ( getPlayerPing ( source ), source ) cancelEvent ( ) end end )
  8. You're welcome.
  9. Try this function teamPayday ( ) for _, players in ipairs ( getPlayersInTeam ( getTeamFromName ( "Police" ) ) ) do if ( players ) then givePlayerMoney ( players, 2000 ) outputChatBox (" ------Police-bonus------ ", players, 255, 255, 255, false) outputChatBox ("|--------------------------|", players, 0, 100, 180, false) outputChatBox ("+2000$", players, 0, 255, 0, false) outputChatBox ("|--------------------------|", players, 0, 100, 180, false) end end end function onResourceStart(thisResource) setTimer ( teamPayday, 990000, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), onResourceStart )
  10. Modification and Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6797 https://community.multitheftauto.com/index.php?p= ... ls&id=6799 DONE
  11. Vision

    isPlayerMuted

    local isChatDisabled = {} function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer); for _,v in ipairs(getElementsByType("player")) do if ( not isChatDisabled[v] and not isPlayerMuted ( thePlayer ) ) then outputChatBox("#FF0000[GLOBAL]#00FF00"..name..": #FFFFFF"..message,v, 255, 255, 255, true) end end end addCommandHandler("global", globalMessage); addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"b", "down", "chatbox", "global"); end end ) addEventHandler("onPlayerJoin",root, function () bindKey(source,"b", "down", "chatbox", "global"); end ); addCommandHandler("gcoff", function(p) isChatDisabled[p] = true; end ); addCommandHandler("gcon", function(p) isChatDisabled[p] = false; end );
  12. Modification https://community.multitheftauto.com/index.php?p= ... ls&id=6791 https://community.multitheftauto.com/index.php?p= ... ls&id=6790 DONE
  13. Vision

    stop command

    You're welcome.
  14. Vision

    stop command

    addEventHandler ( "onPlayerCommand", root, function ( command ) if ( command == "me" ) then cancelEvent ( ) end end )
  15. Vision

    help

    You have an extra 'end'.
  16. Try this one function KickDM ( _, attacker ) if ( attacker ) then if ( getElementType ( attacker ) == "player" ) then kickPlayer ( attacker, "You have been kicked for killing another player" ) outputChatBox ( getPlayerName ( attacker ) .. " have been kicked for DM!", root, 250, 60, 60, true ) end end end addEventHandler ( "onPlayerWasted", root, KickDM )
  17. Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6711 DONE
  18. Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6700 DONE
  19. Happy birthday!
  20. You're welcome.
  21. onMarkerHit setElementFrozen setTimer
  22. Are you using this code in server side?
  23. Vision

    I'm... Back?

    Welcome back dude.
  24. Asking for delete https://community.multitheftauto.com/ind ... ls&id=6656 DONE
×
×
  • Create New...