Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. isObjectInAclGroup for it. You forget some parameters for onPlayerChat. You can use the type of team message and then not cancel it.
  2. It depends on what you like. If you like race then maybe there some resource like you like the most. If you like tdm there are some resources. If realy say it depends on what you like.
  3. Anubhav

    gangs....

    Edited the post. Sorry i forgot a end in last. EDIT: You can loop through the table for list.
  4. Anubhav

    gangs....

    Agree to create col shape and radar area's with hercule. You need to make exports something like: function getGangTurfColor() local lop = getElementData(player,"group") for k,v in ipairs(lop) do return getElementData(group,"gangColor") end end gangColor's value should be in R,G,B I suggest. The players group's value should be his group name. EDIT: Your tables are wrong. diskHead = {} function createGroup(name,...) local name = table.concat({...},"") local owner = getPlayerName(source) if name then diskHead[name] = tostring (owner) end addCommandHandler("creategroup",createGroup)
  5. Anubhav

    Random Maps

    Lock the topic please . Did it myself!
  6. Anubhav

    Random Maps

    =__=. Will get the maps from each resource? I need it only for one resource name : tdmMaps
  7. Anubhav

    Random Maps

    I know but how should i do that?
  8. Anubhav

    Random Maps

    Is it a way to start random map? Something with my own script?
  9. https://wiki.multitheftauto.com/wiki/IsElementInWater
  10. Anubhav

    Health

    If he want's to do that easy. function heal(thePlayer) local health = getElementHealth(thePlayer) if health < 100 then setElementHealth(thePlayer,health+5) end end setTimer(heal,1000,0)
  11. got it how to do it. if weapon1 == "M95 BARRETT" then m95a = createObject(1900, x,y,z) attachElementToBone(m95a, source, 12, 0,0,0,0,-90,0) setElementData(source,"objectperm",true) end if getElementData(source,"objectperm") == true then setElementAlpha(m95a,255) else setElementAlpha(m95a,0) end
  12. got it how to do it. if weapon1 == "M95 BARRETT" then m95a = createObject(1900, x,y,z) attachElementToBone(m95a, source, 12, 0,0,0,0,-90,0) setElementData(source,"objectperm",true) end if getElementData(source,"objectperm") == true then setElementAlpha(m95a,255) else setElementAlpha(m95a,0) end
  13. got it how to do it. if weapon1 == "M95 BARRETT" then m95a = createObject(1900, x,y,z) attachElementToBone(m95a, source, 12, 0,0,0,0,-90,0) setElementData(source,"objectperm",true) end if getElementData(source,"objectperm") == true then setElementAlpha(m95a,255) else setElementAlpha(m95a,0) end
  14. got it how to do it. if weapon1 == "M95 BARRETT" then m95a = createObject(1900, x,y,z) attachElementToBone(m95a, source, 12, 0,0,0,0,-90,0) setElementData(source,"objectperm",true) end if getElementData(source,"objectperm") == true then setElementAlpha(m95a,255) else setElementAlpha(m95a,0) end
  15. Anubhav

    Health

    /debugscript 3 .
  16. if weapon1 == "M95 BARRETT" then m95a = createObject(1900, x,y,z) attachElementToBone(m95a, source, 12, 0,0,0,0,-90,0) setElementVisibleTo(m95a,root,false) setElementVisibleTo(m95a,source,true) end
  17. No problem. If you ever need help you can add me on skype even anubhav.agarwal87
  18. function bribe () local bribe = createPickup ( 2507.1298828125, -1701.2734375, 14.508857727051, 3, 1247, 25000, 1) end addEventHandler ( "onResourceStart", getRootElement(), bribe ) function pickedUpWantedCheck ( thePlayer ) local level = getPlayerWantedLevel(thePlayer) if ( level > 0 ) then setPlayerWantedLevel ( thePlayer, level-1 ) end end addEventHandler ( "onPickupHit", bribe, pickedUpWantedCheck )
  19. Any errors? If no errors then:
  20. Good luck! Your hosting is very good . Just one problem is that we need to download ftp to add/delete files-_-
  21. I din't understand what you told? And what does it dO?
  22. I din't made the exact thing. But if you press it one time it will take 5 seconds to toggle! function toggleEngine() setTimer(funcName,5000,1) end bindKey("I", "down",toggleEngine) function funcName() local checkPlayerVehicle = getPedOccupiedVehicle( localPlayer ) if ( checkPlayerVehicle and getVehicleController( checkPlayerVehicle ) == localPlayer ) then local checkState = getVehicleEngineState( checkPlayerVehicle ) setVehicleEngineState( checkPlayerVehicle, not checkState ) end end
×
×
  • Create New...