Jump to content

WASSIm.

Members
  • Posts

    1,411
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. WASSIm.

    Slothbot

    https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
  2. download this: https://community.multitheftauto.com/index.php?p= ... ls&id=7401
  3. thx but i fixed it thx all
  4. no no no i want if player hit zone start triggerClientEvent and if stop remove triggerClientEvent
  5. hi guys how remove triggerClientEvent addEventHandler("onColShapeHit", getRootElement(), function test (hitElement) if (source == zone) and getElementType ( hitElement ) == "player" then triggerClientEvent ("BARhealth", hitElement, nemesis) end end) addEventHandler("onColShapeLeave", getRootElement(), function (leaveElement) if (source == zone) and getElementType ( leaveElement ) == "player" then triggerClientEvent ("BARhealth", hitElement, nemesis) end end)
  6. WASSIm.

    help

    nothing projectile
  7. WASSIm.

    help

    Is that everything you can say? Well why don't you create it your self? Instead of post other people their code and let us fix it. You did not even mention the owner of this script, in my opinion this one can be locked. -_____________- i create this script and i want fixed it
  8. function enterVehicle() if ( source == hunter ) and (isVehicleLocked(hunter)) then outputChatBox ("* Vehicle locked for a few minutes *", enteringPlayer, 255, 0, 0) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
  9. function startMySound() sound = playSound( "sound.mp3", false ) end addCommandHandler ( "startsound", startMySound )
  10. WASSIm.

    help

    Projectile not working rocket = { } col = { } theProjectile = { } function move ( ) for k, v in ipairs(getElementsByType ("vehicle")) do if getElementModel(v) == 600 then if not rocket [ v ] then local x, y, z = getElementPosition (v) rocket [ v ] = createObject ( 3267, x, y, z) col [ v ] = createColSphere ( x, y, z, 50) attachElements (rocket[ v ], v, 0, -1.7, -0.4) attachElements (col [ v ], rocket [ v ], 0, 0, 0) end end end for k, v in ipairs(getElementsByType ("player")) do local theVehicle = getPedOccupiedVehicle ( v ) if (theVehicle) then if (getElementModel(theVehicle) == 600) and (rocket) then local xt, yt, zt, rxt, ryt, rzt = getCameraMatrix(theVehicle) --attachElements (rocket[ v ], theVehicle, 0, -1.7, -0.4, 0, 0, ryt ) end end end end addEventHandler ( "onClientRender", root, move) function shot(player) if getElementType(player) == "player" then if getPedOccupiedVehicle(player) then if getVehicleType(getPedOccupiedVehicle(player)) == "Helicopter" or getVehicleType(getPedOccupiedVehicle(player)) == "Plane" then if isElementWithinColShape(player,col [ v ]) then local x, y, z = getElementPosition ( rocket [ v ] ) theProjectile [ v ] = createProjectile(player,x,y,z+10,1) end end end end end function onHit(hitElement) if hitElement and getElementType(hitElement) == "player" then if isTimer(shootTimer) then killTimer(shootTimer) end shootTimer = setTimer(shoot,2500,0,hitElement) end end addEventHandler("onColShapeHit",getRootElement(),onHit) function onLeave() if isTimer(shootTimer) then killTimer(shootTimer) end end setDevelopmentMode ( true ) addEventHandler("onColShapeLeave",getRootElement(),onLeave)
  11. try this: MilitaryN = guiCreateLabel(104, 427, 70, 19, "", false, TeaSelectorWin) guiLabelSetColor(MilitaryN, 106, 105, 109) addEventHandler('onClientRender',root, function ( ) local Count = countPlayersInTeam ( getTeamFromName ( 'Military' ) ) guiSetText ( MilitaryN, Count ) end )
  12. WASSIm.

    help

    its already working position but my problem projectile and rotation object like camera not working
  13. WASSIm.

    help

    1- Projectile not working 2- Rotation object not moveing
  14. WASSIm.

    help

    only help ?
  15. WASSIm.

    help

    hi all i have problem in rotation (minigun1) i want rotation like target projectile on vehicle addEventHandler("onClientResourceStart", root, function( ) for k, v in ipairs(getElementsByType ("vehicle")) do if getElementModel(v) == 600 then minigun1= createObject ( 3267,getElementPosition (v)) attachElements (minigun1, v, 0, -1.7, -0.4) end end end ) function move ( ) theVehicle = getPedOccupiedVehicle ( localPlayer ) if (theVehicle) then if (getElementModel(theVehicle) == 600) and (minigun1) then bindKey ( "vehicle_fire", "down", shot ) local xt, yt, zt, rxt, ryt, rzt = getCameraMatrix(localPlayer) attachElements (minigun1, theVehicle, 0, -1.7, -0.4, 0, 0, zt ) else unbindKey ( "vehicle_fire", "down", shot ) end end end addEventHandler ( "onClientRender", root, move) function shot( ) theVehicle = getPedOccupiedVehicle ( localPlayer ) if (theVehicle) then if getElementModel(theVehicle) == 600 and minigun1 then local x, y, z = getElementPosition ( minigun1 ) local rx,ry,rz = getElementRotation ( minigun1 ) theProjectile = createProjectile(theVehicle,20,x,y,z+10,1,vehicle) end end end
  16. i remove some object with map editor but not removed and i change scale object with map editor too but i see changed but really its not changed
×
×
  • Create New...