Jump to content

Vision

Members
  • Posts

    405
  • Joined

  • Last visited

Everything posted by Vision

  1. Not a resource https://community.multitheftauto.com/ind ... ls&id=6926 DONE
  2. Change this if model = 61 then to this if model == 61 then
  3. addEventHandler ( "onPlayerChat", root, function ( message ) if ( message == "showping" ) then outputChatBox ( getPlayerPing ( source ), source ) cancelEvent ( ) end end )
  4. 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 )
  5. Modification and Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6797 https://community.multitheftauto.com/index.php?p= ... ls&id=6799 DONE
  6. 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 );
  7. Modification https://community.multitheftauto.com/index.php?p= ... ls&id=6791 https://community.multitheftauto.com/index.php?p= ... ls&id=6790 DONE
  8. Vision

    stop command

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

    help

    You have an extra 'end'.
  10. 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 )
  11. Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6711 DONE
  12. Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6700 DONE
  13. onMarkerHit setElementFrozen setTimer
  14. Are you using this code in server side?
  15. Vision

    I'm... Back?

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