Jump to content

Mefisto_PL

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by Mefisto_PL

  1. It's working ; ) Don't worry.
  2. How can I add rights to use this commands? ;x I want to add Admin and HeadAdmin
  3. Yeah it's cool, but can you add command to toggle it please? :
  4. Hmm I have suggestion. Make only onClientPlayerDamage, cancelEvent and command. Next add to acl group Admin <right name="command.godmode" access="true"></right>
  5. Can you give command to toggle it?
  6. @UP Hmm You think that's working? addEventHandler ( "onClientPlayerDamage", getRootElement (), function(attacker, weapon, bodypart, loss) local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then cancelEvent() end end
  7. >.< My code have 1010 but I give Castillo code >.< Okey Thanks (Castillo too <3)
  8. I was write topic about it, but nobody answered me. I want to make bind to nitro (LPM). Castillo wrote me this code but it doesn't working.. addEventHandler("onPlayerJoin",root, function () bindKey(source,"mouse1","down",nitro) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"mouse1","down",nitro) end end) function nitro ( thePlayer ) if ( isPedInVehicle ( thePlayer ) ) then local id = 1010 local theVehicle = getPedOccupiedVehicle ( thePlayer ) local success = addVehicleUpgrade ( theVehicle, 2010 ) if ( success ) then outputConsole ( getVehicleUpgradeSlotName ( 2010 ) .. " dodane.", thePlayer ) else outputConsole ( "Nieudana próba dodania nitro.", thePlayer ) end else outputConsole ( "Musisz być w pojeździe !", thePlayer ) end end addCommandHandler ( "nitro", nitro )
  9. FX = means shaders Okey Okey :< Don't worry :< Anybody can't help me at this problem ? :<
  10. Anybody can help me ? :
  11. Hmm, but on FX it's working yeah?
  12. b) So How I can make vehicle set dirt level ? ;x I must have this because I want to make Car Wash.
  13. Oh >.< I'm stupid I don't add it. Sorry all. But I have problems with: That
  14. It doesn't work.. It's bind a key, but I don't have nitro and show me on console my error message "Nieudana próba dodania nitro."
  15. Script isn't my and I don't know everything about it. It's a P-Login I translate only messages. I can log in, but I can't register
  16. My login panel don't create new accounts In debugscript 3 i didn't see any error.. Look this: function passwordHandler(player, oldpassword, newpassword) local account = getPlayerAccount(player) if (account) then if (isGuestAccount(account)) then outputChatBox("Zaloguj się, aby zmienić hasło.", player) return end local playerName = getPlayerName(player) local password_check = getAccount(playerName, oldpassword) if (password_check ~= false) then if (string.len(newpassword) >= 5) then setAccountPassword(account, newpassword) triggerClientEvent(player, "hidePasswordWindow", getRootElement()) else outputChatBox("Twoje hasło musi mieć minimum 5 znaków !", player) end else outputChatBox("Stare hasło niepoprawne.", player) end end end function loginHandler(player, username, password) local account = getAccount(username, password) if (account ~= false) then if (logIn(player, account, password) == true) then outputChatBox("Witaj na Polskim Serwerze Zabawy !", player) triggerClientEvent (player, "hideLoginWindow", getRootElement()) else triggerClientEvent (player, "unknownError", getRootElement()) end else triggerClientEvent (player, "loginWrong", getRootElement()) end end function registerHandler(player, username, password) local account = getAccount(username, password) if (account ~= false) then triggerClientEvent(player, "registerTaken", getRootElement()) else account = addAccount(username, password) if (logIn(player, account, password) == true) then outputChatBox("Witaj na Polskim Serwerze Zabawy !", player) triggerClientEvent(player, "hideLoginWindow", getRootElement()) else triggerClientEvent(player, "unknownError", getRootElement()) end end end addEvent("submitChangepw", true) addEvent("submitLogin", true) addEvent("submitRegister", true) addEventHandler("submitChangepw", root, passwordHandler) addEventHandler("submitLogin", root, loginHandler) addEventHandler("submitRegister", root, registerHandler)
  17. Mefisto_PL

    Bind ...

    I hate binds ... I can't make them so I want to somebody make me bind to nitro.. (Key: LPM) function nitro ( thePlayer, commandName, id ) if ( isPedInVehicle ( thePlayer ) ) then local id = 1010 local theVehicle = getPedOccupiedVehicle ( thePlayer ) local success = addVehicleUpgrade ( theVehicle, id ) if ( success ) then outputConsole ( getVehicleUpgradeSlotName ( id ) .. " dodane.", thePlayer ) else outputConsole ( "Nieudana próba dodania nitro.", thePlayer ) end else outputConsole ( "Musisz być w pojeździe !", thePlayer ) end end addCommandHandler ( "nitro", nitro ) Please help me ! :<
  18. Okey.. I found it in gui.lua addEvent ( "doOutputMessage", true ) function outputMessage ( message, r, g, b, font ) if type(message) ~= "string" and type(message) ~= "table" then outputDebugString ( "outputMessage - Bad 'message' argument", 0, 112, 112, 112 ) return false end if type(font) ~= "string" then font = "default" end r = tonumber(r) or 255 g = tonumber(g) or 255 b = tonumber(b) or 255 ---shift everything up shiftUpGUI() --Delete the first line destroyLine (1) table.remove ( contentMessages, 1 ) if type(message) == "string" then message = {message} end Here is a font too..
  19. I think it's a 16 line.. dxText = {} dxText_mt = { __index = dxText } local idAssign,idPrefix = 0,"c" local g_screenX,g_screenY = guiGetScreenSize() local visibleText = {} ------ local defaults = { fX = 0.5, fY = 0.5, bRelativePosition = true, strText = "", bVerticalAlign = "center", bHorizontalAlign = "center", tColor = {255,255,255,255}, fScale = 1, strFont = "default", Because in a DxDraw is a "default" font. Look this: https://wiki.multitheftauto.com/wiki/DxDrawText Maybe this can help you.
  20. Hmm... I try this on my laptop, but now it's working
  21. Oh sorry I can don't understand because I'm from Poland But thanks.
  22. I must use local rectangleHeight = y-position ?
×
×
  • Create New...