Jump to content

VictorBRP

Members
  • Posts

    11
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

VictorBRP's Achievements

Square

Square (6/54)

0

Reputation

  1. function verMoney(playerSource, commandName, id) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(playerSource)), aclGetGroup("Staff")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(playerSource)), aclGetGroup("Console")) then for i, v in pairs(getElementsByType("player")) do local IdPlayer = getElementData(v, "ID") or 0 if (id and tonumber(IdPlayer) == tonumber(id)) then local dinheiro = getPlayerMoney(v) outputChatBox('O jogador: '..getPlayerName(v)..'#ffffff Tem R$: #00ff00'..dinheiro.. ' #ffffffDe Dinheiro Na Mão ! ',playerSource, 255, 255, 255, true) end end end end addCommandHandler("rlkver", verMoney)
  2. local Acl = { 'Helper', 'Admin', 'Console', } addEventHandler('onResourceStart', root, function() for i , v in ipairs(getElementsByType('player')) do if getPlayerAcl(v) then if getElementData(v, 'Fome') and getElementData(v, 'Sede') then removeElementData(v, 'Fome') removeElementData(v, 'Sede') end end end end) addEventHandler('onPlayerLogin', root, function() if getPlayerAcl(source) then if getElementData(source, 'Fome') and getElementData(source, 'Sede') then removeElementData(source, 'Fome') removeElementData(source, 'Sede') end end end) function getPlayerAcl(player) for i , v in ipairs(Acl) do if aclGetGroup(v) and isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)), aclGetGroup(v)) then return true end end end
  3. local vehicleIds = {400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611 } function carPlayerInPlayer(player, _, idPlayer, idVehicle) local target = tonumber(idPlayer) local crt = tonumber(idVehicle) local id = getPlayerID(target) local Vehicle = getVehicleByID(crt) if id then if veh[id] and isElement(veh[id]) then destroyElement(veh[id]) veh[id] = nil end iprint(id) iprint(Vehicle) if Vehicle then local x,y,z = getElementPosition(id) veh[id] = createVehicle(crt, x,y,z) warpPedIntoVehicle(id, veh[id]) end end end addCommandHandler('c', carPlayerInPlayer) addEventHandler('onPlayerQuit', getRootElement(), function() if veh[source] and isElement(veh[source]) then destroyElement(veh[source]) veh[source] = nil end end) function getVehicleByID(vehID) vehID = tonumber(vehID) if (vehID) then for _, veh in ipairs(vehicleIds) do if (vehID == veh) then return veh end end end return false end function getPlayerID(id) v = false for i, player in ipairs(getElementsByType("player")) do if getElementData(player, "ID") == id then v = player break end end return v end
  4. zombiehunterpickup55555 = createPickup (289.29, -81.116, 1001.516, 3, 1275, 1000 ) setElementInterior(zombiehunterpickup55555, 4) -- Aqui você coloca o interior que deseja function zombiehunterskinpickup55555 ( thePlayer ) local nomeAcc = getAccountName (getPlayerAccount (thePlayer)) if isObjectInACLGroup ("user."..nomeAcc, aclGetGroup("Console")) then else outputChatBox ("NÃO FOI POSSIVEL, PEGAR A ROUPA. POIS VOCE NÃO É MEMBRO.", thePlayer, 255, 0, 0, true) end end addEventHandler ( "onPickupUse", zombiehunterpickup55555, zombiehunterskinpickup55555 ) addEventHandler ("onPickupUse", getRootElement(), function (playerWhoUses) if (source == zombiehunterpickup55555) then setPlayerNametagText (playerWhoUses, "" .. getPlayerName (playerWhoUses)) setElementData (playerWhoUses, "job", "farm") end end) setElementInterior(zombiehunterpickup55555, 4) -- Aqui você coloca o interior que deseja
  5. setTimer(function() for i,v in ipairs(getElementsByType("player")) do outputChatBox("Você ganhou o seu auxilio", v, 255,255,255, true) -- Mensagem ao receber givePlayerMoney(v, 500) -- Valor a receber end end, 10000, 0) -- <<< Tempo que vai ser executado
  6. local screenW, screenH = guiGetScreenSize() local Exibir_Painel = false function PainelDX () dxDrawRectangle(screenW * 0.3219, screenH * 0.0755, screenW * 0.3633, screenH * 0.7643, tocolor(13, 0, 13, 255), false) dxDrawText("Painel Treino", screenW * 0.4578, screenH * 0.1055, screenW * 0.5359, screenH * 0.1432, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.4094, screenH * 0.2070, screenW * 0.1992, screenH * 0.1003, tocolor(213, 0, 213, 255), false) dxDrawRectangle(screenW * 0.4094, screenH * 0.3932, screenW * 0.1992, screenH * 0.1003, tocolor(213, 0, 213, 255), false) dxDrawRectangle(screenW * 0.4094, screenH * 0.5898, screenW * 0.1992, screenH * 0.1003, tocolor(213, 0, 213, 255), false) dxDrawText("By Baiano", screenW * 0.4578, screenH * 0.7630, screenW * 0.5359, screenH * 0.8008, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("GTR", screenW * 0.4094, screenH * 0.2070, screenW * 0.6086, screenH * 0.3073, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Skin", screenW * 0.4094, screenH * 0.3932, screenW * 0.6086, screenH * 0.4935, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Armas + Colete", screenW * 0.4094, screenH * 0.5898, screenW * 0.6086, screenH * 0.6901, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) end addCommandHandler("treino", function() if Exibir_Painel == false then addEventHandler("onClientRender", getRootElement(), PainelDX) Exibir_Painel = true showCursor(true) else removeEventHandler("onClientRender", getRootElement(), PainelDX) Exibir_Painel = false showCursor(false) end end) function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end -- Modified version for DX Text function isCursorOverText(posX, posY, sizeX, sizeY) if ( not isCursorShowing( ) ) then return false end local cX, cY = getCursorPosition() local screenWidth, screenHeight = guiGetScreenSize() local cX, cY = (cX*screenWidth), (cY*screenHeight) return ( (cX >= posX and cX <= posX+(sizeX - posX)) and (cY >= posY and cY <= posY+(sizeY - posY)) ) end addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4094, screenH * 0.2070, screenW * 0.1992, screenH * 0.1003) then local x,y,z = getElementPosition(localPlayer) veh = createVehicle(490, x,y,z) warpPedIntoVehicle(localPlayer, veh) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4094, screenH * 0.3932, screenW * 0.1992, screenH * 0.1003) then setElementModel(localPlayer, 73) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4094, screenH * 0.5898, screenW * 0.1992, screenH * 0.1003) then setPedArmor(localPlayer, 100) end end end end) Só tem um problema, na hora de destruir o veiculo, vai ter que criar a função para destrui-lo, vai ter que criar uma variavel e armarzenala em uma tabela vazia. outra coisa, comece a usar elseif
  7. function Din(player) local aleatorio = math.random(500, 5000) givePlayerMoney(player,aleatorio ) end addCommandHandler("money",Din ) Acho que não consigo explicar mais fácil que isso
  8. Bom dia, tive problema com minha host e peguei outro ip, porém meu ip antigo esta quase entrando em toplist, gostaria de trocar o ip como faço ?
  9. Good morning guys, I've seen some similar features on some servers, and I would like to know if it is possible to choose the mods that the players will download, example I choose the essential mods for him to download before logging in, and after he logs in he downloads the remaining resources so he can download 200mb of 800 and be able to log in before finishing the download. Sorry for spelling mistakes, I made it with the translator
  10. Bom dia pessoal, já vi alguns recursos parecidos em alguns servidores, e gostaria de saber se é possivel escolher os mods que os players irão baixar, exemplo eu escolhos os mods essencias pra ele baixar antes de logar, e depois que ele loga ele baixa os recursos restantes assim ele podendo baixar 200mb de 800 e poder logar antes de terminar o download.
  11. VictorBRP

    Modloader

    Bom dia pessoal, já vi alguns recursos parecidos em alguns servidores, e gostaria de saber se é possivel escolher os mods que os players irão baixar, exemplo eu escolhos os mods essencias pra ele baixar antes de logar, e depois que ele loga ele baixa os recursos restantes assim ele podendo baixar 200mb de 800 e poder logar antes de terminar o download.
×
×
  • Create New...