Jump to content

Vision

Members
  • Posts

    405
  • Joined

  • Last visited

Everything posted by Vision

  1. Try to change this local result, row, errmsg = dbPoll( qh, -1 ) to this local result, row, errmsg = dbPoll ( character, -1 )
  2. Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=7376 DONE
  3. Vision

    how to??

    https://community.multitheftauto.com/index.php?p= ... ls&id=2963
  4. Try this function dmg(thePlayer) local account = getPlayerAccount(thePlayer) if not account or isGuestAccount(account) then return end local accountName = getAccountName(account) if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Moderator" ) ) then end car = getPedOccupiedVehicle (thePlayer) if isVehicleDamageProof(car) == true then setVehicleDamageProof(car, false) else setVehicleDamageProof(car, true) end end addCommandHandler ( "damage", dmg )
  5. Tenta esse local kitarmasCommand = { } local tempo = 60000 addCommandHandler ( "kitarmas", function ( source ) if ( kitarmasCommand [ source ] ) then return outputChatBox ( "Aguarde 1 minuto para usar este comando novamente", source, 225, 0, 0 ) end giveWeapon ( source, 4, 200, true ) giveWeapon ( source, 24, 200, true ) kitarmasCommand [ source ] = true setTimer ( function ( ) kitarmasCommand [ source ] = false end , tempo, 1 ) end ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( kitarmasCommand [ source ] ) then kitarmasCommand [ source ] = nil end end )
  6. for _, players in ipairs ( getPlayersInTeam ( getTeamFromName ( "SomeTeam" ) ) ) do createBlipAttachedTo ( players ) end
  7. Add this to Admin group.
  8. Vision

    Vehicle Fix

    Is that what you wanted to? UKMarker = createMarker ( -2079.88, 2099.58, 15.5,"cylinder",6.0,255,255,0,125) USAMarker = createMarker (349.18, 2540.00, 15.5,"cylinder",6.0,255,255,0,125) RUSMarker = createMarker ( 2205.92, -219.31, 16.5,"cylinder",6.0,255,255,0,125) GERMarker = createMarker ( -1088.41, -1036.57, 128.25,"cylinder",6.0,255,255,0,125) UKBlip = createBlipAttachedTo ( UKMarker,63, 1,0,0,0,255,0,3000,getRootElement()) USABlip = createBlipAttachedTo ( USAMarker,63, 1,0,0,0,255,0,3000,getRootElement()) RUSBlip = createBlipAttachedTo ( RUSMarker,63, 1,0,0,0,255,0,3000,getRootElement()) GERBlip = createBlipAttachedTo ( GERMarker,63, 1,0,0,0,255,0,3000,getRootElement()) function fixUK ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then if ( getElementType ( hitPlayer ) == "player" ) then local vehicle = getPedOccupiedVehicle ( hitPlayer ) if ( vehicle ) then local vehicleHealth = getElementHealth ( vehicle ) if ( vehicleHealth < 1000 ) then fadeCamera ( false ) --toggleAllControls ( false ) setElementFrozen ( vehicle, true ) setTimer ( function ( ) fixVehicle ( vehicle ) --toggleAllControls ( true ) setElementFrozen ( vehicle, false ) fadeCamera ( true ) takePlayerMoney ( 250 ) outputChatBox ( "Your vehicle was fixed for $250!", 255, 0, 0 ) end , 2000, 1 ) end else outputChatBox ( "You need to be in a vehicle!", 255, 0, 0 ) end end end end addEventHandler ( "onClientMarkerHit", UKMarker, fixUK )
  9. Vision

    smal help

    You're welcome.
  10. Vision

    smal help

    Try this addEventHandler("onClientRender",root, function ( ) days = { [ 0 ] = 'SUN', [ 1 ] = 'MON', [ 2 ] = 'TUE', [ 3 ] = 'WED', [ 4 ] = 'THU', [ 5 ] = 'FRI', [ 6 ] = 'SAT', } day = days [getRealTime().weekday] dxDrawBorderedText(""..tostring(day).."",dx1, dy1, dx2,dy2,tocolor(195,195,195,255),5,scale2,font2,"center","top",false,false,false) end end )
  11. The first argument is totalAmmo not killer. addEventHandler ( "onPlayerWasted", root, function ( _, killer ) local message if ( killer ) then if ( killer ~= source ) then local killerType = getElementType ( killer ) if ( killerType == "player" ) then message = getPlayerName ( killer ) .. " mató a " .. getPlayerName ( source ) .. "." givePlayerMoney ( killer, 10000 ) outputChatBox ( message ) end end end end )
  12. Vision

    ACL rights

    hasObjectPermissionTo
  13. Troca esse triggerClientEvent ( "verShop", root, hitElement ) por esse triggerClientEvent ( hitElement, "verShop", root )
  14. Modification https://community.multitheftauto.com/ind ... ls&id=7055 DONE
  15. Vision

    Sql problem

    SQLite Database Browser.
  16. Try this addEventHandler ( 'onPlayerCommand', root, function ( cmd ) if ( cmd == "superman" and isGuestAccount ( getPlayerAccount ( source ) ) ) then cancelEvent ( ) end end )
  17. Change this local ids = theFormat(player) to this local ids = theFormat ( source )
  18. Tente isso -- client addEvent ( "ControlState", true ) addEvent ( "AnalogControlState", true ) addEventHandler ( "ControlState", root, function ( thePed, control, bol ) setPedControlState ( thePed, control, bol ) end ) addEventHandler ( "AnalogControlState", root, function ( thePed, control, Time ) setPedAnalogControlState ( thePed, control, Time ) end ) -- server function PedHelpHydraStart ( ) aviao = createVehicle ( 520, 2051.0708007813, -2494.2114257813, 14.546875, 0, 0, 90 ) pedPilot = createPed ( 287, 2050.0708007813, -2493.2114257813, 13.546875 ) warpPedIntoVehicle ( pedPilot, aviao ) triggerClientEvent ( "ControlState", root, pedPilot, "accelerate", true ) triggerClientEvent ( "AnalogControlState", root, pedPilot, "special_control_up", 0.5 ) end setTimer ( PedHelpHydraStart, 100, 1 )
×
×
  • Create New...