Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Anubhav

    Help me

    Nope. I Can just that at login panel the circle which loads stops and it be's not responding.
  2. I din't understood what you are trying to say.
  3. Hello players of MTA, If you are very new in LUA Scripting i will help you anytime if you need. You can add me on skype : anubhav.agarwal87 I Will help you for free. You can post here also.
  4. Anubhav

    Help me

    Please reply! I realy want to play MTA. I Can't play my some of the favourite servers:/ please please help me ccw!
  5. function showGUI ( ) --markerhit createMarker (x,y,z) guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end addEventHandler("onPlayerMarkerHit",source,showGUI) Just use markers.
  6. Use a meta generator or re-write it.
  7. Cool app! Pictures look very good.
  8. I Suggest use db functions. Use SQL Module. There examples . Go to community and search serverupdates its made by MySQL database.
  9. OMG Guyz why all are posting in old topics?
  10. Seems cool. I Will check it out . Sorry if i bumped this topic.
  11. Bilal you are bumping this topic. Stop posting in old topics.
  12. Lopez add me on skype anubhav.agarwal87 , i will help you in LUA.
  13. Ofcouse. Meta is main thing of resource.
  14. There is. You should have asked this question in scripting board. XML, SQL Are ways of saving.
  15. put the both in folder of it or make backup of lua and delete that. LUAC Is a encrypted version of LUA.
  16. [meta] friendlyname="Race color" group="Display" accept="*" examples="#FF0000,#776655" desc="Color what you want use in your race." /> friendlyname="Message color" group="Display" accept="*" examples="#FF0000,#776655" desc="Color of the Race chat box messages." /> friendlyname="Hurry time" accept="0-120" group="Gameplay" desc="Display HURRY! message this many seconds before the time runs out." /> friendlyname="Finish race time" accept="0-120" group="Gameplay" desc="The number of seconds the race continues for after someone wins." /> friendlyname="Respawn mode" accept="timelimit,none" group="Gameplay" desc="Default respawn mode, if one is not set in the map." /> friendlyname="Respawn time" accept="0-60" group="Gameplay" desc="Default respawn time in seconds, if one is not set in the map." /> friendlyname="Map duration" accept="1-3600" group="Gameplay" desc="Default duration in seconds, if one is not set in the map." /> friendlyname="Ghost mode" accept="false,true" group="Gameplay" desc="Set to true to disable collisions." /> friendlyname="Ghost alpha" accept="false,true" group="Graphics" desc="Set to true to make vehicle semi-transparent when collisions are disabled." /> friendlyname="Random maps" accept="false,true" group="Gameplay" desc="Set to true to make the next map selection automatic." /> accept="name,serial" group="none" desc="To identify players for stats." /> friendlyname="Vehicle colors" accept="file,random" group="Graphics" desc="Set to file to use the server file: mods\deathmatch\vehiclecolors.conf" /> friendlyname="Driver skin" group="Graphics" accept="*" examples="cj,random,7 10 16-20 15" desc="Choose a driver skin. Acceptable values can be 'cj' or 'random' or a range list like this:'7 10 16-20 15'" /> friendlyname="Vehicle weapons" group="Gameplay" accept="false,true" desc="Set to true to allow vehicle weapons." /> friendlyname="Auto pimp" group="Graphics" accept="false,true" desc="Set to true to apply a selection of visual upgrades to vehicles." /> friendlyname="Fire water" group="Graphics" accept="false,true" desc="Set to true to explode the player when entering the water." /> friendlyname="Admin group list" group="_Advanced" accept="*" examples="Admin,Moderator,SuperModerator" desc="To issue certain commands, the player must belong to one of the groups listed." /> accept="*" desc="List of race addon resources to load automatically" /> friendlyname="Blur level" group="Display" accept="0-36" desc="Set to 0 to turn off blur." /> friendlyname="Clouds enable" group="Display" accept="false,true" desc="Set to false to turn off clouds." /> friendlyname="Join spectating" group="Spectating" accept="false,true" desc="Set to true to make joining players spectate the race in progress." /> friendlyname="Admin stealth spectate" group="Spectating" accept="false,true" desc="Set to true to hide the state of spectating admins." /> friendlyname="Classic change Z" group="_Advanced" accept="false,true" desc="Set to true to move the player up when changing vehicles." /> friendlyname="Countdown effect" group="Display" accept="false,true" desc="Set to true for a fancy effect on the last countdown image." /> friendlyname="Show map name" group="Display" accept="false,true" desc="Set to true to show the current map name in the bottom left." /> friendlyname="Hunter minigun enable" group="Gameplay" accept="false,true" desc="Set to true to allow the Hunter minigun." /> friendlyname="Security level" group="_Advanced" accept="0-2" desc="Detect fake packets. 0-No checks 1-Some checks 2-All checks." /> friendlyname="Anyone can spectate" group="Spectating" accept="false,true" desc="Allow any player to start spectating with the 'B' key. (Does not work in no repawn maps)" /> friendlyname="Admin no respawn spectate" group="Spectating" accept="false,true" desc="Allow admins to spectate while alive in no respawn maps." /> friendlyname="Race respawn after spectate" group="Spectating" accept="false,true" desc="Force players to spawn like after death." /> friendlyname="Random vote on join" group="Gameplay" accept="false,true" desc="If someone joins a lone player, start a vote to change to a random map." /> friendlyname="Asynchronous Loading" group="_Advanced" accept="false,true" desc="Enabling this can reduce model loading lag for certain maps. It is only applied for clients who have chosen the 'Auto' option for asynchronous loading in their main settings menu." /> friendlyname="Show author name" group="Display" accept="false,true" desc="Set to true to show the map author name on the travelling screen." /> [/meta] try that.
  17. luac.multitheftauto.com Remember to keep a copy of it!
  18. Did not tested , but my MTA Script editor showed no error. (after fixing hat string.)
  19. function heladosVender (thePlayer) local vehocc = getPedOccupiedVehicleSeat (thePlayer) local playerveh = getPedOccupiedVehicle (thePlayer) local x, y, z = getElementPosition (thePlayer) if isPedInVehicle (thePlayer) then if (getElementModel ( playerveh ) == 423 and vehocc == 0) then markerIce = createMarker (x, y, z-1, "cylinder", 4, 0, 255, 0, 255) setElementFrozen (playerveh, true) addEventHandler ("onMarkerHit", markerIce, heladosMarker) else outputChatBox ("*****************************", thePlayer, 255, 0, 0) end end end addCommandHandler ("sell", heladosVender) function noVender (thePlayer) local playerveh = getPedOccupiedVehicle (thePlayer) if isElementFrozen (playerveh) then setElementFrozen (playerveh, false) if isElement (markerIce) then destroyElement (markerIce) end end end addCommandHandler ("nosell", noVender) function heladosMarker (hitElement) if getElementType(hitElement) == "player" and hitElement and not isPedInVehicle (hitElement) then triggerClientEvent (hitElement, "openIceP", hitElement) end end function onPlayerExitWhoper () if (getElementModel ( source ) == 423) then if isElement (markerIce) then destroyElement (markerIce) if isElementFrozen (source) then setElementFrozen (source, false) end end end end addEventHandler ("onVehicleExit", getRootElement(), onPlayerExitWhoper) function consvaini (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 1500) then if (consumerHealth <= 70) then setElementHealth (thePlayer, consumerHealth+30) takePlayerMoney (thePlayer, 1500) givePlayerMoney (thePlayer, 1500) outputChatBox (name.. " *****************", seller, 0, 255, 0) outputChatBox ("**********************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 1500) givePlayerMoney (seller, 1500) outputChatBox (name.. " *****************", seller, 0, 255, 0) outputChatBox ("********************", thePlayer, 0, 255, 0) end else outputChatBox ("*********************", thePlayer, 255, 0, 0) end end addEvent ("vaini", true) addEventHandler ("vaini", getRootElement(), consvaini) function conschoc (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 3000) then if (consumerHealth <= 10) then setElementHealth (thePlayer, consumerHealth+90) takePlayerMoney (thePlayer, 3000) givePlayerMoney (seller, 3000) outputChatBox (name.. " *************************", seller, 0, 255, 0) outputChatBox ("*************************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 3000) givePlayerMoney (thePlayer, 3000) outputChatBox (name.. " ****************", seller, 0, 255, 0) outputChatBox ("*********************", thePlayer, 0, 255, 0) end else outputChatBox ("********************", thePlayer, 255, 0, 0) end end addEvent ("choco", true) addEventHandler ("choco", getRootElement(), conschoc) function consfres (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 2500) then if (consumerHealth <= 20) then setElementHealth (thePlayer, consumerHealth+80) takePlayerMoney (thePlayer, 2500) givePlayerMoney (seller, 2500) outputChatBox (name.. " *******************", seller, 0, 255, 0) outputChatBox ("**********************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 2500) givePlayerMoney (seller, 2500) outputChatBox (name.. " ********************", seller, 0, 255, 0) outputChatBox ("***********************", thePlayer, 0, 255, 0) end else outputChatBox ("**********************", thePlayer, 255, 0, 0) end end addEvent ("berry", true) addEventHandler ("berry", getRootElement(), consfres) function consment (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local money = getPlayerMoney (thePlayer) local seller = getVehicleOccupant ( source, 0 ) if (money >= 2000) then if (consumerHealth <= 50) then setElementHealth (thePlayer, consumerHealth+50) takePlayerMoney (thePlayer, 2000) givePlayerMoney (seller, 2000) outputChatBox (name.. " ****************", seller, 0, 255, 0) outputChatBox ("**************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 2000) givePlayerMoney (seller, 2000) outputChatBox (name.. " ****************", seller, 0, 255, 0) outputChatBox ("***************", thePlayer, 0, 255, 0) end else outputChatBox ("*****************", thePlayer, 255, 0, 0) end end addEvent ("ment", true) addEventHandler ("ment", getRootElement(), consment) function conspolo (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 1000) then if (consumerHealth <= 80) then setElementHealth (thePlayer, consumerHealth+20) takePlayerMoney (thePlayer, 1000) givePlayerMoney (seller, 1000) outputChatBox (name.. " **************", seller, 0, 255, 0) outputChatBox ("****************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 1000) givePlayerMoney (seller, 1000) outputChatBox (name.. " ***************", seller, 0, 255, 0) outputChatBox ("************", thePlayer, 0, 255, 0) end else outputChatBox ("*******************", thePlayer, 255, 0, 0) end end addEvent ("polo", true) addEventHandler ("polo", getRootElement(), conspolo) function conssorbet (thePlayer, seller) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 3500) then setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 3500) givePlayerMoney (seller, 3500) outputChatBox (name.. " *****************", seller, 0, 255, 0) outputChatBox ("***************", thePlayer, 0, 255, 0) else outputChatBox ("**********", thePlayer, 255, 0, 0) end end addEvent ("sorbet", true) addEventHandler ("sorbet", getRootElement(), conssorbet) I Fixed the unfinished string else i dint saw. Replace that with server side.
  20. community.multitheftauto.com We won't script for free go to that website which i gave and search.
  21. Anubhav

    Problem

    function Check ( player ) local playerTeam = getPlayerTeam ( player ) if playerTeam then outputChatBox ( "#F4A460[GANG]#F08080 Bem vido a gang " .. getTeamFromName ( "playerTeam" ).." ! ", player, 255, 255, 255, true ) end end addEventHandler ( "onPlayerLogin", root, Check ) this?
  22. Anubhav

    Problem

    function Check ( player ) local playerTeam = getPlayerTeam ( player ) if ( playerTeam ) then outputChatBox ( "#F4A460[GANG]#F08080 Bem vido a gang " .. getTeamFromName ( "PlayerTeam" ).." ! ", player, 255, 255, 255, true ) end end addEventHandler ( "onPlayerLogin", root, Check ) Try that.
  23. gate = createObject ( 2951, -1868.5, -3104.1999511719, 54.700000762939, 0, 0, 318) -- Gate. function Open ( pla ) -- the function if getElementType ( pla ) == "player" then -- if he is a player. if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then -- it is only for admins. moveObject (othergate1, 2500, -1868.5, -3104.1999511719, 56.900001525879) -- It will move the gate. end -- Closing functions and all... end end addEventHandler ( "onColShapeHit", col, Open) -- Adding a event handler. addCommandHandler ( "open",Open) -- Adding the command. function Close ( pla ) -- Function if getElementType ( pla ) == "player" then -- as i said for checking if its a player. if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then -- for admins only./ moveObject (othergate1, 2500,-1868.5, -3104.1999511719, 54.700000762939) -- close the gate. end end end addEventHandler ( "onColShapeLeave", col, Close ) addCommandHandler ("close", Close) gate = createObject ( 2951, y, x, z) to get the x,y,z go to freeroam and where you want to put do /getpos and replace it with it.
  24. Anubhav

    Help me

    Not all , there are some server which i can't login . It just not responds
×
×
  • Create New...