Jump to content

iFerasMO

Members
  • Posts

    53
  • Joined

  • Last visited

Posts posted by iFerasMO

  1. السلام عليكم

    MTA SA تم إفتتاح | ليبو هوست | للإستضافة سيرفرات

    topBanner.png

    عروض خاصة :: جميع العروض بـ 10 دولار كآش يو ولكن الإختلاف في المدة و عدد اللاعبين

    عدد الاعبين من 50 إلى 1024

    مدة اللإشتراك من 30 إلى 45 يوم

    لمزيد من التفاصيل تفضل بزيارة موقع الإستضافة :

    http://www.libohost.com/

    ويمكنك مشاهدة لوحة التحكم من هنا :

    http://login.libohost.com/

    للطلب و للإستفسار يمكنك مراسلتنا عبر البريد :

    [email protected]

    أو عبر صفحة اللإستضافة على الفيس بوك :

    https://www.facebook.com/LiboHost

  2. google translator :D

    the script works in Client-Side only ..

    how can i make it in Server-Side ?

    i want all the players see the minigun bullets & hear the sound .

    this's my english :]

  3. Hello..

    I have a script beating weapons out of the car and running a sound when hit

    The script works seriously, but at the client side ..

    when someone hits me I do not see the weapon and do not hear the sound

    Only he sees and hears, and he can not kill one

    What should I put any server-side ?

    addEventHandler("onClientVehicleEnter", root, 
        function(thePlayer, seat) 
            local theVehicle = source 
            if seat == 0 and thePlayer == localPlayer and  getElementModel(theVehicle) == 405 then 
             local x, y, z = getElementPosition ( theVehicle ) 
             local rx, ry, rz = getElementRotation ( theVehicle ) 
             minigun = createWeapon ( "minigun",  x,  y,  z ) 
             setElementAlpha ( minigun,0) 
             attachElements ( minigun, theVehicle, -0.09, -1.1, 1.245, 0, 0, 90)  
             bindKey ( "mouse1", "down", enableFire )         
             bindKey ( "mouse1", "up", disableFire )   
      
             end 
        end 
    ) 
    addEventHandler("onClientVehicleExit", root, 
        function(thePlayer, seat) 
            local theVehicle = source 
            if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 405 then 
            if minigun then 
            destroyElement (minigun) 
             unbindKey ( "mouse1", "down", enableFire )       
             unbindKey ( "mouse1", "up", disableFire ) 
      
            end 
        end 
        end 
    ) 
     function enableFire() 
     if isTimer(MGtimer) and minigun then 
      killTimer(MGimer) 
       else 
        MGimer = setTimer(function()  
            local PlayerMoney = getPlayerMoney(source) 
        if PlayerMoney >= 10000 then 
        triggerServerEvent ("myLK", root) 
        setTimer(setWeaponState (minigun, "firing"),5000,1) 
        stopSound ( MiniSound ) 
        MiniSound = playSound ( "LK.mp3",true) 
        setSoundVolume(MiniSound, 1) 
        outputChatBox("#D31141 Libyan Kingdom #E2F50F|#FFFFFF تم سحب منك 10,000 ثمن الذخيرة", 255, 255, 255, true) 
        else  
        outputChatBox("#D31141 Libyan Kingdom #E2F50F|#FFFFFF ليس لديك المال الكافي", 255, 255, 255, true) 
         end 
            end, 50, 1) 
      
            end 
        end 
    function disableFire() 
     if isTimer(MGtimer) and minigun  then 
      killTimer(MGimer) 
       else 
        MGimer = setTimer(function() setWeaponState ( minigun, "ready" ) end, 50, 1) 
          stopSound ( MiniSound ) 
            end 
        end   
          
    function unb () 
        unbindKey ( "mouse1", "down", unb ) 
      
    end 
    addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), unb ) 
      
    

    addEvent("myLK",true)  
    addEventHandler("myLK",resourceRoot, function() 
        takePlayerMoney(source, 10000) 
    end) 
    

  4. hello,

    I've put Ped in the back of the car as if sitting on a heavy weapon - Anti-Aircraft chair,

    But when I change the direction of the car does not change the direction of the person with it ..

×
×
  • Create New...