Jump to content

igthomas

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by igthomas

  1. I was trying to mess with setWeaponProperty and wanted to make the katana the weapon that does 1 hit 1 kill but appearantly didn't work local rangeSet = setWeaponProperty (8, "pro", "damage", 10000 ) if (rangeSet) then outputChatBox("Your katana damage is maximized") end Here's the script. The script works because I see the outputChatBox message but don't know why the damage isn't working
  2. Oh as I can see it's not as easy as the other setElement functions Anyway thanks for explaining on how it works.
  3. Today I wanted to make players faster and thought that it's like setElementVelocity (source, speed) but then I saw X Y Z and why are they for and how could I use like to make the source 2 times faster?
  4. Haha Thanks it works like a charm now
  5. Thanks it worked but blips are still visible
  6. no it should be so when player spawn as skin 310 or 217 then his blip and tagname should be invisible
  7. Well players arent invisible iv = 0 function toggleInvis( source ) local skin = getElementModel (source) if ( skin == 310 or skin == 217 ) then if iv == 0 then iv = 1 setPlayerNametagShowing(source, false) setElementAlpha(source, 0) else iv = 0 setPlayerNametagShowing(source, true) setElementAlpha(source, 255) end end end addEventHandler ( "onPlayerSpawn", getRootElement(), toggleInvis ) In meta I've added it as a server type
  8. I have a problem when using this script and a real time script at same time. I makes my screen flash,I don't know how to explain it but yeah it makes my screen flash.
  9. Ok I've done and zombies don't attack me now but if I spawn like x skin then they remember that I'm one of them and even if I respawn as a different skin they still think I'm one of them
  10. I have a question is it possible to make so that the zombies won't attack a certain skin even if I shoot them?
  11. Hi I wanted to know how to disable this command because it isn't in any of my scripts but somewhere in the default MTA scripts. So is it possible to turn it off?
  12. Thanks man it works perfectly now
  13. Yes you are right but when I log in as Admin or FBI and try to enter vehicle it writes me "Only FBI can enter this vehicle"
  14. It writed the Outputchatbox but nobody can enter it
  15. Only FBI members can enter the vehicles not admins
  16. Sorry to bump but why doesn't it want to work with ACL Groups? fbi1 = createVehicle ( 596, -2429.7998046875, 515.2998046875, 29.700000762939, 0, 0, 215.99670410156 ) fbi2 = createVehicle ( 596, -2425.69921875, 518.5, 29.700000762939, 0, 0, 221.99523925781 ) fbi3 = createVehicle ( 596, -2422.3994140625, 521.599609375, 29.700000762939, 0, 0, 225 ) function lockfbi(player, seat, jacked) if (source == fbi1 or source == fbi2 or source == fbi3) then if (seat == 0) then if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("FBI" or "Admin")) then cancelEvent() outputChatBox ( "Only FBI can enter this vehicle", player, 0, 0, 150, true ) end end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockfbi )
  17. so that means there no way only to change the player color name unless he does #.....?
  18. haha Guys it worked the problem was that yesterday I was testing it with editor (Full Test) so it didn't warp me but today I've started play(resource) and tried the marker and it warped me anyways thanks guys to be so cool and helping me, I really appreciated your helps oh and last problem why do I get this error in console : WARNING: (SantaB)RvB\teleports.lua:10: Bad 'team' pointer @ 'setTeamColor'(1) local marker_red = createMarker(-840.5, 502, 1357.3, "cylinder", 3 , 255, 0, 0, 255 ) setElementInterior ( marker_red, 1 ) local marker_blue = createMarker(-840.5, 495.60000610352, 1357.3, "cylinder", 3, 0, 0, 255, 255 ) setElementInterior ( marker_blue, 1 ) function rvbstart( thePlayer, hitElement ) outputChatBox 'Debug:hit' if source == marker_red then setTeamColor ( thePlayer, 255, 0, 0 ) setElementPosition ( thePlayer, 697.5, -2677.8000488281, 8.8000001907349, true ) setElementInterior ( thePlayer, 0 ) setElementDimension ( thePlayer, 10 ) elseif source == marker_blue then setTeamColor ( thePlayer, 0, 0, 255 ) setElementPosition ( thePlayer, 534.70001220703, -2694.1000976563, 8.8000001907349, true ) setElementInterior ( thePlayer, 0 ) setElementDimension ( thePlayer, 10 ) end end addEventHandler ( "onMarkerHit",root,rvbstart )
  19. Never tried colshape gonna learn it
  20. Added and same problem I think I'm not lucky
  21. Tried and same problem local marker_red = createMarker(-840.5, 502, 1357.1999511719, "cylinder", 3 , 255, 0, 0, 255 ) setElementInterior ( marker_red, 1 ) local marker_blue = createMarker(-840.5, 495.60000610352, 1357.1999511719, "cylinder", 3, 0, 0, 255, 255 ) setElementInterior ( marker_blue, 1 ) function redstart( thePlayer, hitElement ) if source == marker_red then setElementPosition ( thePlayer, 697.5, -2677.8000488281, 8.8000001907349, true ) setElementInterior ( thePlayer, 0 ) end end addEventHandler ( "onMarkerHit",marker_red,redstart ) function bluestart( thePlayer, hitElement ) if source == marker_blue then setElementPosition ( thePlayer, 534.70001220703, -2694.1000976563, 8.8000001907349, true ) setElementInterior ( thePlayer, 0 ) end end addEventHandler ( "onMarkerHit",marker_blue,bluestart )
  22. Strange when I touch the marker (cylinder) it doesn't say Debug:hit
  23. Yes because it's the place where the marker is and I see the marker
  24. "SantaB" type="script" name="RvB" description="RvB" />
  25. Here's a scripts that I've done but the problem is that markers show up but nothing happens Could someone please explain my fault? function rvb() marker_red = createMarker(-840.5, 502, 1357.1999511719, "cylinder", 3 , 255, 0, 0, 255 ) setElementInterior ( marker_red, 1) marker_blue = createMarker(-840.5, 495.60000610352, 1357.1999511719, "cylinder", 3, 0, 0, 255, 255 ) setElementInterior ( marker_blue, 1) end addEventHandler ("onResourceStart",resourceRoot,rvb) function rvbstart(thePlayer, hitElement) if source == marker_red then setElementPosition ( thePlayer, 697.5, -2677.8000488281, 8.8000001907349, true ) setElementInterior ( thePlayer, 0) elseif source == marker_blue then setElementPosition ( thePlayer, 534.70001220703, -2694.1000976563, 8.8000001907349, true ) setElementInterior ( thePlayer, 0) end end addEventHandler ("onMarkerHit",getRootElement(),rvbstart)
×
×
  • Create New...