Jump to content

X-SHADOW

Members
  • Posts

    721
  • Joined

  • Last visited

Everything posted by X-SHADOW

  1. ---clientSide function onGuiClick (button, state, absoluteX, absoluteY) --- امر عند ضغط الزر if ( source == weapButton_25 ) then --- weapButton_25 في النافذه اذا كان الزر هو local PlayerMoney = getPlayerMoney() --- احضار فلوس الاعب if ( PlayerMoney > 7000 ) then --- اذا كانت فلوسه 7000 takePlayerMoney(7000)---- ناخذ الفلوس outputChatBox("You Have Bought Super M4",source,255,255,0)--- رساله triggerServerEvent("sp", getLocalPlayer()) --- تشغيل وظيفة سيرفر ----serverSide function super(weapon,ammo,ammoInClip,hitX,hitY,hitZ,h itElement) --- الامر if ( weapon == 24) then -- طبعا غير رقم السلاح الى الرشاش killPed(source,source) ---- end
  2. ==DESCRIPTION== You wanted it, you prayed for it, you have it! You always wanted to create zombie bosses, Misterix Mod, a super-human drug, etc...? Now you can do it with this simple script! Add more health to your peds or to a player! No more armour and maximun stats using to increase ped/player resistance!
  3. setElementHealth ? ----- https://community.multitheftauto.com/index.php?p= ... ls&id=1604
  4. You Can Use 2 things https://wiki.multitheftauto.com/wiki/StopSound or https://wiki.multitheftauto.com/wiki/DestroyElement
  5. even if it stolen here in english not russian ------------------------------- Thx Man Any Way Keep it Up !
  6. use camstudio its well get what you want http://camstudio.org/
  7. X-SHADOW

    Car paint

    what is wrong show me please
  8. local carRadios = { } -- Create a table. function attachradio ( thePlayer ) local car = getPedOccupiedVehicle ( thePlayer ) if ( car ) then if ( isElement ( carRadios[ car ] ) ) then -- If the vehicle already has a radio... outputChatBox ( "This vehicle already has a radio.", thePlayer, 255, 0, 0 ) else local x, y, z = getElementRotation ( car ) carRadios[ car ] = createObject ( 2232, 1016.2437133789, -2473.1711425781, 7.6930656433105, x, y, z ) -- Create radio object for the vehicle. attachElements ( carRadios[ car ], car, 0, -4, 0.45 ) -- Attach the radio to the vehicle. triggerClientEvent ( "playRadioCar", root, car ) outputChatBox ( "Here is the radio!", thePlayer ) end end end addCommandHandler ( "radio", attachradio ) addCommandHandler ( "stopradio", function ( thePlayer ) local car = getPedOccupiedVehicle ( thePlayer ) if ( car ) then if ( not isElement ( carRadios[ car ] ) ) then -- If the vehicle has no radio... outputChatBox ( "This vehicle has no radio.", thePlayer, 255, 0, 0 ) triggerClientEvent ( "stopCarRadio", root, car ) end end end ) sounds = "http://www.181.fm/winamp.pls?station=181-power&style=mp3" carSounds = { } function playRadioCar ( car ) local x,y,z = getElementPosition ( car ) if ( isElement ( carSounds[ car ] ) ) then destroyElement ( carSounds[ car ] ) end carSounds[ car ] = playSound3D ( sounds, x, y, z, true ) attachElements ( carSounds[ car ], car ) end addEvent ( "playRadioCar", true ) addEventHandler( "playRadioCar", getRootElement(), playRadioCar ) addEvent ( "stopCarRadio", true ) addEventHandler ( "stopCarRadio", root, function ( car ) if ( isElement ( carSounds[ car ] ) ) then stopSound ( carSounds[ car ] ) end end )
  9. X-SHADOW

    Car paint

    addEventHandler( 'onPlayerLogin', root, function() local veh = getPedOccupiedVehicle( source ); if veh and isObjectInACLGroup( 'user.'..getPlayerName( source ), aclGetGroup( 'Admin' ) ) then setVehicleColor( veh, 0, 0, 0, 0 ); --color it with black end; end );
  10. X-SHADOW

    Car paint

    this well get all players Account and set There Car Lights do you want it for all or just for you = admin ?
  11. ok Sorry Man i wont post any thing befoure i know it Sorry
  12. i found it on topic this topic lol https://forum.multitheftauto.com/viewtop ... 6&p=398145
  13. hope this work local s = false addCommandHandler ( "stopradio", function () if s then stopSound(carSounds[ car ]) s = false return end end)
  14. i well try help you just 1 min wait me
  15. X-SHADOW

    Car paint

    oh its hard you must enter scripting world lol
  16. soldSnake its not worng to help some one i want help him
  17. addEvent ( "stopCarRadio", true ) addEventHandler ( "stopCarRadio", root, function ( car ) if ( isElement ( carSounds[ car ] ) ) then stopSound ( Sounds) end end )
  18. try using this addEvent ( "stopCarRadio", true ) addEventHandler ( "stopCarRadio", root, function ( car ) if ( isElement ( carSounds[ car ] ) ) then stopSound ( carSounds[ car ] ) end end )
  19. X-SHADOW

    Car paint

    my script https://community.multitheftauto.com/index.php?p= ... ls&id=2523
  20. X-SHADOW

    fix pls

    he maybe use it as a triggerServerSideEvent ?
  21. and how to make it defined i see all functions in mta wiki all like this getPlayerPing = (source) just like me
  22. delete All mta versions on your pc and install them again .
  23. i dont get what you mean ?
  24. carRadio = createObject(2232, 1016.2437133789, -2473.1711425781, 7.6930656433105, 0, 2, 30) function attachradio() local car = getPedOccupiedVehicle(source) if(car) then local x, y, z = getElementRotation(car) setObjectRotation(carRadio, x, y, z) triggerClientEvent ( source, "playRadioCar", car) attachElements(carRadio, car, 0, -4, 0.45) setObjectRotation(carRadio, x, y, z) outputChatBox("Here is the radio!", source) end end addCommandHandler("radio", attachradio)
×
×
  • Create New...