Jump to content

Minotaur

Members
  • Posts

    134
  • Joined

  • Last visited

Everything posted by Minotaur

  1. Minotaur

    Score save

    addEventHandler("onPlayerQuit", saveScore) getElementData its good?
  2. Minotaur

    Score save

    I dont understand that things... if anyone can teach me the scripting ... i want to learn it but no ones teach me and the wiki is hard to me
  3. Valaki megtudna tanítani scriptelni? nagyon szeretném megtanulni mert már unom állandóan kérdezni a dolgokat..
  4. Minotaur

    Skills

    its very hard for me if any hungaryan can explain to me i understand it but in english its very hard..
  5. Minotaur

    Skills

    I want anything for save skills when the player is die i mean he set weapon skills to max if he die his stats stay on max.. thanks in advance
  6. Minotaur

    Score save

    i want a script to save players scores when they quit i tryed a few scripts but not working .. anyone can help?
  7. Minotaur

    Skin mod

    How can i put skins mods ill tryed all scripts and dont work... anyone can help me?
  8. i created this but not working function playerDamage_text ( attacker, weapon, bodypart, loss == 50 ) --when a player is damaged if ( bodypart == 9 ) then -- if the body part is 9, i.e. the head outputChatBox ( "Headshot!", getRootElement (), 255, 170, 0 ) --output "Headshot" into the chatbox end addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage_text )
  9. local playerHealth = getElementHealth ( getLocalPlayer() ) if playerHealth = -<99 then setElementHealth ( getLocalPlayer(), 100) end function afkstart ( player ) local name = getPlayerName ( player ) local x,y,z = getElementPosition ( player ) if isElementFrozen ( player ) then setElementFrozen ( player, false ) destroyElement ( znak ) outputChatBox ( "#ffffffGracz #ff0000"..name.."#ffffff wraca do gry, można w niego strzelać !", getRootElement(), 255, 0, 0, true ) else setElementFrozen ( player, true ) znak = createMarker ( x, y, z+2, "checkpoint", 1.5, 0, 255, 0 ) outputChatBox ( "#ffffffGracz #ff0000"..name.."#ffffff przechodzi w tryb AFK, nie strzelac do niego !", getRootElement(), 255, 0, 0, true ) end end addCommandHandler ( "afk", afkstart ) not good. script error: afksystem/afk.lua:2: 'then' expected near '='
  10. function afkstart ( player ) local name = getPlayerName ( player ) local x,y,z = getElementPosition ( player ) if isElementFrozen ( player ) then setElementFrozen ( player, false ) destroyElement ( znak ) outputChatBox ( "#ffffffGracz #ff0000"..name.."#ffffff wraca do gry, można w niego strzelać !", getRootElement(), 255, 0, 0, true ) else setElementFrozen ( player, true ) znak = createMarker ( x, y, z+2, "checkpoint", 1.5, 0, 255, 0 ) outputChatBox ( "#ffffffGracz #ff0000"..name.."#ffffff przechodzi w tryb AFK, nie strzelac do niego !", getRootElement(), 255, 0, 0, true ) end end addCommandHandler ( "afk", afkstart ) i want to if the players is afk set him to godmode anyone can help me?
  11. can you help me a little bet ? i really noob for for example plz
  12. Hey all! I want a so headshot script that if no armor the player die if the player have armor his health go to half only with sniper. with another weapons like m4 you can kill the player with 4 headshot with also armor. with deagle if player have armor go his armor down with 1 headshot, with another headshot go his health to 10%. anybody can help me? thx and sorry for english
  13. Minotaur

    UDP IS CLOSED

    you can do it for me in teamviewer?
  14. Minotaur

    UDP IS CLOSED

    i have 1 problem i cant open bsnl broadband
  15. Minotaur

    UDP IS CLOSED

    Please help my i type openports always write udp is closed and players can not join to my server anybody help me pls?
  16. i cant do this shit pls anybody help
  17. im started my server and type to the panel "openports" and write this.. Port 22126 UDP is closed. Players can not browse! Port 22003 UDP is closed. Players can not join! Port 22005 TCP is open! please help me what is the problem? and this is my mtaserver.conf file: -- This parameter specifies the name the server will be visible as in the ingame server browser and on Game-Monitor. It is a required parameter. --> Default MTA Server -- ONLY USE THIS PARAMETER IF YOU ARE SURE OF WHAT YOU ARE DOING - it is generally only needed for professional servers and should be left blank otherwise. This parameter specifies the IP to use for servers that have multiple IP addresses. If left blank, it will default to server's standard local IP address. --> 1264 22003 32 1 22005 1 4 1 -1 1 0 -- Specifies the location and name of the main server log file. If left blank, server won't be saving this file. --> logs/server.log -- As well as the main log file, login successes and failures are logged here for easy reviewing of security issues. If left blank, this file is not used --> logs/server_auth.log -- This parameter specifies the location and name of the Access Control List settings file. If left blank, server will use acl.xml file, located in the same folder as this configuration file. --> acl.xml -- Specifies the location and name of the debugscript log file. If left blank, server won't be saving this file. --> logs/scripts.log -- Specifies the level of the debugscript log file. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> 0 -- Specifies the level of the html debug. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> 0 -- Specifies the server frames limit. Minimum value: 25, default: 36. --> 36 -- Specifies the module(s) which are loaded with the server. To load several modules, add more parameter(s). Optional parameter. --> -- --> -- --> -- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more parameter(s). --> "admin" startup="1" protected="0"/> "helpmanager" startup="1" protected="0"/> "joinquit" startup="1" protected="0"/> "defaultstats" startup="1" protected="0"/> "mapcycler" startup="1" protected="0"/> "mapmanager" startup="1" protected="0"/> "parachute" startup="1" protected="0"/> "resourcebrowser" startup="1" protected="1" default="true"/> "resourcemanager" startup="1" protected="1"/> "scoreboard" startup="1" protected="0"/> "spawnmanager" startup="1" protected="0"/> "votemanager" startup="1" protected="0"/> "webadmin" startup="1" protected="0"/> -- play is the default freeroam gamemode. Remove the following line to prevent it from starting. --> "play" startup="1" protected="0"/> Hide details Change log r2156 by ccw808 on Dec 28, 2010 Diff [1.0.4] Fixed older clients overloading external web server Go to: Sign in to write a code review Older revisions r1963 by ccw808 on Aug 29, 2010 Diff r1764 by ccw808 on Jun 11, 2010 Diff r1757 by ccw808 on Jun 9, 2010 Diff All revisions of this file File info Size: 7676 bytes, 142 lines View raw file
  18. for example /bind h sp
  19. i not want script i want bind command
  20. Hey all! I want one bind. for example i press 4 im in hunter.. thanks in advance and please help me
  21. I cant do it Help please
  22. --[[ original script by Justus (GA_Justus) --]] function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) and ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} end end addEventHandler("onPlayerQuit", getRootElement(), saveClothes) function setClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) setElementModel(source,0) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(source, textures[i+1], models[i+1], i) end end outputChatBox("Clothes were added by clothessaver", source, 0, 255, 0) textures = {} models = {} end end addEventHandler("onPlayerLogin", getRootElement(), setClothes) function loadClothes(player) local account = getPlayerAccount(player) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) setElementModel(player,0) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(player, textures[i+1], models[i+1], i) end end outputChatBox("Clothes were added by clothessaver", player, 0, 255, 0) textures = {} models = {} else outputChatBox("Please login!", player, 255, 0, 0) end end addCommandHandler("loadClothes", loadClothes) function saveClothes(player) local account = getPlayerAccount(player) if ( not isGuestAccount(account) ) then if ( getElementModel(player) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(player, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} else outputChatBox("Your skin must be skin 0 (CJ Skin)", player, 255, 0, 0) end else outputChatBox("Please login!", player, 255, 0, 0) end end addCommandHandler("saveClothes", saveClothes) it's not so bad, but I want to be window and one command to open the window /skin. I want something like this:https://www.facebook.com/photo.php?fbid=1381242018758269&set=a.1377594592456345.1073741828.100006174515990&type=1&theater
×
×
  • Create New...