Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Days Won

    27

Everything posted by iPrestege

  1. iPrestege

    zombie

    غيرت اسم المود؟
  2. iPrestege

    help

    Yes you can modify it for sure freeroam or the resource i gave it to you above.
  3. iPrestege

    Sound problem

    Change the function startMusic and command 'sux' to 'wtf' like: function startMusic ( ) setRadioChannel ( 0 ) if song and isElement ( song ) then destroyElement ( song ) song = nil end song = playSound ( 'yousuck.mp3' ) soundName = soundName or 'N/A' playerName = playerName or getPlayerName ( localPlayer ) outputChatBox ( '[sOUND] '..playerName ..' has started sound '..soundName ) end addCommandHandler ( 'sux',startMusic ) function wtfSound ( ) setRadioChannel ( 0 ) if wtf and isElement ( wtf ) then destroyElement ( wtf ) wtf = nil end wtf = playSound ( 'path of wtf.mp3' ) soundName = soundName or 'N/A' playerName = playerName or getPlayerName ( localPlayer ) outputChatBox ( '[sOUND] '..playerName ..' has started sound '..soundName ) end addCommandHandler ( 'wtf',wtfSound )
  4. iPrestege

    Sound problem

    What you mean by that? That sound but with different name? What's the reason for that?
  5. iPrestege

    Sound problem

    You mean random sounds?
  6. iPrestege

    Sound problem

    function startMusic ( ) setRadioChannel ( 0 ) if song and isElement ( song ) then destroyElement ( song ) song = nil end song = playSound ( 'yousuck.mp3' ) soundName = soundName or 'N/A' playerName = playerName or getPlayerName ( localPlayer ) outputChatBox ( '[sOUND] '..playerName ..' has started sound '..soundName ) end addCommandHandler ( 'sux',startMusic )
  7. تم تثبيت الموضوع لـ تنبيه الكل و ايضاحة مؤقتاً لـ حين اصلاح المشكلة ... الطريقة ليس من ابتكاري لكن لـ قراءة الاكواد بشكل أوضح .
  8. addEventHandler ( ) 'onClientPlayerDamage' getPlayerSerial ( ) cancelEvent ( )
  9. iPrestege

    Sound problem

    function startMusic ( ) setRadioChannel ( 0 ) if song and isElement ( song ) then destroyElement ( song ) song = nil end song = playSound('yousuck.mp3',true) outputChatBox ( '[sOUND] '..playerName ( localPlayer )..' has started sound '..soundName ) end addCommandHandler ( 'sux',startMusic ) PS. playerName and soundName defined?
  10. iPrestege

    Sound problem

    Remove this part : addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic)
  11. iPrestege

    Sound problem

    Yeah as i thought you aren't define a type of the client file so it should be like that : <script src="client.lua" type="client" />
  12. iPrestege

    Sound problem

    I think you are using it server side ? Also : outputChatBox("[sOUND] "..playerName(player).." has started sound "..soundName) Should be : outputChatBox("[sOUND] "..playerName(localPlayer).." has started sound "..soundName) Are you sure about the path it's exists? PS. If didn't work then post your meta.xml FILE.
  13. iPrestege

    Sound problem

    'toggleSong' Function isn't defined anywhere that's the problem.
  14. iPrestege

    Sound problem

    + player isn't defined anywhere in your code . PS. I think your trying to send the outPutChatBox Message to the players in the server it's for the client only 'localPlayer' .
  15. صور لة أو شيء؟ والقيم مود يختص بـ أي نوع؟
  16. iPrestege

    help

    <help>Mabako services version 2.4.0 made originally by mabako on older versions, patched and improved to make it work on MTA SA 1.0 or newer, and 1.1 onwards by XX3. If you don't understand how this works, here's some tutorial: To get food, go to the burger, pizza or cluckin bell blip. (it will appear if you are close enough to the building) Go to the counter and choose one of these food. It will restore some health in one click. To get weapons, go to the ammunation blip, go to the counter and buy each of the weapons included by going to the counter. Jetpacks can be used/removed by pressing "J" (If you got freeroam resource loaded, it will run 2 times at once if you pressed J, so you wouldn`t see the jetpack. Solution: Change the bind key) Jetpacks have fuels, and can be refueled through ammu-nation. Use the jetpack wisely, so you don't run out of fuel in the air. For owners: You can edit the price, available weapons, ammo included per buy, locations of pay'n'spray, in the maps folder. </help>
  17. State isn't defined anywhere?
  18. على الرحب و السعه
  19. You mean shaders? viewtopic.php?f=108&t=51770 Take a look there.
  20. معليش مسحت الرد ^ لكن كودك يصير كذآ : -- P.S : لم يتم التجربة local gate = createObject ( 3095, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0 ) local marker2 = createMarker ( 2969.291015625,-700.45721435547,2.100, 'cylinder', 2, 255, 0, 0 ) Timer = { } addCommandHandler ( 'aaa', function ( player ) if isElementWithinMarker ( player,marker2 ) then if not isPedInVehicle ( player ) then if not isTimer ( Timer [player] ) then setElementFrozen ( player,true ) Timer [player] = setTimer ( function ( player ) setElementFrozen ( player,false ) givePlayerMoney ( player,10000 ) moveObject ( gate, 10000, 2970.1999511719, -691, 687.20001220703, 0, 0, 0 ) setTimer ( moveObject,40000,1,gate, 10000, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0 ) triggerClientEvent ( player,'onShowMoney',player ) end,10000,1,player ) end end end end )
  21. لا لن تكون ثابته هذا حل مؤقت حتى يتم حل المشكلة من قبل الاداره .
  22. السلام عليكم ورحمة الله وبركاتة حبيت أنبهة ممكن البعض مآ أنتبة لكن خاصيه lua في المشاركات والمواضيع معطله .. بامكانك استخدامها بـ هذه الطريقة : function OutPut ( ) outputChatBox ( 'Lua tag is fine.' ) end outPut ( ) عن طريق مشاركة الكود باستخدم "Code" لكن تعديل قبل اضافه الرد الى [code=[b]lua[/b]] أتمنى يكون افاده وتوضيح لـ تسهيل الأكواد .. [b]iPrestege[/b][/center]
×
×
  • Create New...