Jump to content

mustang

Members
  • Posts

    171
  • Joined

  • Last visited

Everything posted by mustang

  1. تم إطلاق نسخة البيتا من السكريبت الحمدلله تم الإنهاء من بناء السكريبت التجريبي ، يرجى الأخذ بعين الإعتبار أن السكريبت بيتا و هذا يعني أنه لم يكتمل بعد و أنه قد يحتوي على أخطاء عدة . إذ تم العثور على أخطاء يرجى ذكرها لتصحيحها ، و شكرا * سيتم إضافة حركة الأجنحة قريبا السيارة تستبدل آل INFERNUS الفيديو : التعليمات : انقر على زر الفأرة الأيمن لإظهار الماوس. قم بتحريك الشريط الذي على يمينك للتحكم بالمحركات Release 1.2 (Beta) : DOWNLOAD COMMUNITY DOWNLOAD Thank You, Enjoy ! / ! شكرا لك ، إستمتع تصحيحات 1.1 : * تصحيح : كبسة التسارع لم تكن تعمل بعد إنفجار السيارة * إضافة : تم إضافة RPM المحركات على إل جي يو إي تصحيحات 1.2 : * تم إصلاح بعض الأخطاء الصغيرة * تم إضافة كبسة لتشغيل المحركات و إطفائها : BY MUSTANG
  2. تطير ؟ هههههه لا والله ، مشكور ع التعليق ، صراحة قاعد أعمل مود السيارة تطير و راح يكون مجانا قريبا
  3. You mean like buying it ? if yes then iam not willing to sell it , Thanks
  4. يسلمو ! edit: شكرا لك ، صراحة ما عرفت وين أحطه
  5. أول سكريبت إلي (بدون سرقة ولا كود ) طول السكريبت : سطر 336 viewtopic.php?f=161&t=79590
  6. mustang

    Fixed now

    You CAN create a database on your PC , Search for XAMPP
  7. oooh So i dont have to define dt , thanks its working now
  8. i think i got it , Thanks man , i will try it and give you the results I am having some trouble doing it , for example if i want to move the object 1 unit in (Y) for everyframe what would delta be if my fps was 100 ? i mean i need to move it 1 unit only if my fps was 100 then what would be the script ? This is totally a new thing for me , sorry for that
  9. i think i got it , Thanks man , i will try it and give you the results
  10. Iam not sure about this but try getting someone in your server and test it
  11. Did you test the new script i gave you with someone ? cause it wont change the grav for all player in the newer one i gave you
  12. There you go , i found one and edited it for you https://mega.co.nz/#!SwVngICK!C7MOCk_n8 ... zwz_HxDMb4
  13. You mean only for one player ? if so i will add a command for the players that want to jump higher playerDo = 0 -- Default Status , change to 1 if you want the default status ON which will make all players jump high when the resource start function jump() if playerDo == 1 then if not isPedInVehicle(getLocalPlayer()) then -- here you check if the player is not in a vehicle (in other words "on foot") local moveState = getPedMoveState( getLocalPlayer() ) -- Get the player move state if moveState == "jump" then setGravity ( 0.001 ) elseif moveState ~= "jump" then setGravity ( 0.008 ) end end end end addEventHandler("onClientRender", getRootElement(), jump) function jumpset() if playerDo == 0 then outputChatBox("Cheat Activated", 0, 255, 0, true ) playerDo = 1 elseif playerDo == 1 then outputChatBox("Cheat Deactivated", 255, 0, 0, true ) setGravity ( 0.008 ) playerDo = 0 end end addCommandHandler("jumptoggle", jumpset) -- Command to toggle the status(Cheat) if you type /jumptoggle you will toggle it, default is off
  14. I actually didn't understand , could you explain more Thanks for your response
  15. Try using gravity for example : Client Script : function jump() if not isPedInVehicle(getLocalPlayer()) then -- here you check if the player is not in a vehicle (in other words "on foot") local moveState = getPedMoveState( getLocalPlayer() ) -- Get the player move state if moveState == "jump" then setGravity ( 0.001 ) elseif moveState ~= "jump" then setGravity ( 0.008 ) end end end addEventHandler("onClientRender", getRootElement(), jump) ^tested and working
  16. try this local pBlips = { } addEventHandler("onResourceStart", resourceRoot, function() for index, player in ipairs(getElementsByType("player")) do addTeamBlip(player) end end ) function addTeamBlip(player) if ( pBlips[player] ) then return false end -- Adding a prevention of duplicate blips local theGang = getElementData ( player, "gang" ) if ( theGang and theGang ~= "None" ) then local r, g, b = getPlayerNametagColor( player ) local theBlip = createBlipAttachedTo( player, 0, 2, 0, 255, 0 ) -- Change visibility to only the team members setElementVisibleTo( theBlip, root, false ) for index, value in ipairs ( getPlayersByGang ( theGang ) ) do -- THIS setElementVisibleTo( theBlip, value, true ) end pBlips[player] = theBlip end setTimer ( function() addTeamBlip() end, 10000, 1 ) -- Change the time here , every 1000 = 1 second end function destroyBlip(element) local theElement = source or element if ( theElement ) then destroyElement(pBlips[theElement]) pBlips[theElement] = nil -- Just in-case... end end -- Events addEventHandler ( "onPlayerSpawn", root, addTeamBlip ) addEventHandler ( "onPlayerQuit", root, destroyBlip ) addEventHandler ( "onPlayerWasted", root, destroyBlip ) function getPlayersByGang ( gang ) local players = { } for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( player, "gang" ) == gang ) then table.insert ( players, player ) end end return players end
  17. Hello guys , I would like to know if there is any alternative for "onClientRender" or "onClientPreRender" because iam working on a new project the uses alot of this event , the problem with this event is that it depends on the player's FPS , which will effect the results of my script in example : the time it takes to move an object 1 unit forward for every frame on a player's machine that is running 100fps will take less time than a 36 fps machine . I suppose you understood what i meant so i need a way to move that object with same time it takes for all players , you would tell me to use "setTimer" but it is too slow and wont give me a great smoothness as the "onClientRender" would give. If you need more information of what i need just post a comment . Thanks.
×
×
  • Create New...