Jump to content

☠ RaZeR ☠

Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by ☠ RaZeR ☠

  1. want the countdown to start after opening the GUI ------ want to reset the countdown
  2. i want to reset the countdown by button # and the " if " in line 12 | didnt work >> check if the window visble then start contdown !! the countdown start after the resource start local countdownMS = getTickCount() + 350000 function getTimeMS(ms) local minutes = math.floor(ms/60000) ms = ms - minutes * 60000 local seconds = math.floor(ms/1000) return minutes,seconds end ----------- setTimer (function() if ( guiGetVisible ( idlewind ) == true ) then local m,s = getTimeMS(countdownMS-getTickCount()) guiSetText( timer, " Minutes: "..m.." | Seconds:"..s ); end end, 1000, 0 )
  3. CLIENT triggerServerEvent ( "kick", resourceRoot, abc ) SERVER function fox ( player ) kickPlayer( player ) end In abc, make sure that's a player who you want to kick OR you can do this solution CLIENT triggerServerEvent ( "kick", targetPlayer ) SERVER function fox () kickPlayer( source ) end targetPlayer = the player that you want kick Z??
  4. didn't want to kick me client ! addEventHandler ("onClientGUIClick",guiRoot, function ( ) if ( source == butoon1) then triggerServerEvent ( "kick", resourceRoot ) end end) server ! function fox () kickPlayer(source) end addEvent( "kick", true ) addEventHandler( "kick", resourceRoot, fox ) debug | expected player argument
  5. السلام عليكم ورحمة الله وبركاته اليوم اقدم لكم سيرفر #[F.Q][للـهجولـة والـرنج][KSA][مـلوك الــرنـج][~ وبعد طول غياب | نعود بفضل الله سيرفر ملوك الرنج | حصريات لاتوجد في اي سيرفر الاي بي : 5.231.54.32:44444 الشعار : F.Q ____ --- فري روم حصري : وخاص لوحة المهمات الحصرية القولد بوكس والتوزيعات والجوائز الرائعة _=== ننتظركم على احر من الجمر والكثيرر , في انتظاركم
  6. شكرا خلاص سويته ** انا دايما استعجل واجب في المنتدى
  7. طيب هذي سيرفر :! انا اعرف اسوي التريقر لاكن كيف اجيب مع التريقر عدد اللاعبين يعني احط في الكلنت outputTopChat( "There are now " .. num .. " players on this server!", 0, 150, 250 )
  8. لا يجي كم لاعب في السيرفر
  9. outputTopChat("*#00FF00There Are [ " ..#getElementsByType ( "player" ) "players ", 0, 150, 250) يقولي مشكله في الديبوق atempt to call table
  10. # وانا جالس ادور في الفري روم لقيت كود الماب واحس انه كامل بس ابي اعرف وش ناقصه عشان يشتغل لاني جربته مااشتغل كان يطلعلي مشاكل كثير في الديبوق رغم اني مسوي كل شي صح ! الديبوق يقولي في اخر سطر في السيرفر# عندك مشكله كلنت : g_Me = getLocalPlayer() g_MapSide = (screenHeight * 0.85) local wnd = mapwnd local mapControl = getControl(wnd, 'map') for elem,player in pairs(g_PlayerData) do if not player.gui.mapBlip then player.gui.mapBlip = guiCreateStaticImage(0, 0, 9, 9, elem == g_Me and 'localplayerblip.png' or 'playerblip.png', false, mapControl) player.gui.mapLabelShadow = guiCreateLabel(0, 0, 100, 14, player.name, false, mapControl) local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow) guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false) guiSetFont(player.gui.mapLabelShadow, 'default-bold-small') guiLabelSetColor(player.gui.mapLabelShadow, 255, 255, 255) player.gui.mapLabel = guiCreateLabel(0, 0, labelWidth, 14, player.name, false, mapControl) guiSetFont(player.gui.mapLabel, 'default-bold-small') guiLabelSetColor(player.gui.mapLabel, 0, 0, 0) for i,name in ipairs({'mapBlip', 'mapLabelShadow'}) do addEventHandler('onClientGUIDoubleClick', player.gui[name], function() triggerServerEvent ( "warpMe", elem) guiSetVisible(mapwnd,false) end, false ) end end local x, y = getElementPosition(elem) x = math.floor((x + 3000) * g_MapSide / 6000) - 4 y = math.floor((3000 - y) * g_MapSide / 6000) - 4 guiSetPosition(player.gui.mapBlip, x, y, false) guiSetPosition(player.gui.mapLabelShadow, x + 14, y - 4, false) guiSetPosition(player.gui.mapLabel, x + 13, y - 5, false) end سيرفر : function spawnMe2(x, y, z) if not x then x, y, z = getElementPosition(source) end if isPedTerminated(source) then repeat until spawnPlayer(source, x, y, z, 0, math.random(9, 288)) else spawnPlayer(source, x, y, z, 0, getPedSkin(source)) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end addEvent("warpMe",true) addEventHandler("warpMe",root, function() if isPedDead(source) then spawnMe2() end)
  11. في الديبوق يقولي عرف في جانب السيرفر x,y,z addEventHandler("onClientGUIDoubleClick", resourceRoot, function( ) if source == map then local x, y = getCursorPosition( ) x, y = x*6000, y*6000 triggerServerEvent ( "spawnOnPosition", localPlayer) end end) addEvent("spawnOnPosition", true) addEventHandler('spawnOnPosition', root, function (x, y, z) if getElementHealth ( source ) > 1 then if getPedOccupiedVehicle(source) then setElementPosition(getPedOccupiedVehicle(source), x, y, 0) setElementPosition(getPedOccupiedVehicle(source), x, y, z+3) else setElementPosition(source, x, y, 0) setElementPosition(source, x, y, z+3) end fadeCamera(source, true) else spawnPlayer(source, 0, 0, 3 ) setElementPosition(source, x, y, z+3) setCameraTarget (source, source) toggleAllControls(source, true, true, true) setPedStat(source, 160, 1000) setPedStat(source, 229, 1000) setPedStat(source, 230, 1000) fadeCamera(source, true) end end )
  12. طيب ماتقدر تصلح ذا ترا الكود ذا يبي بس تعديل في الحجم والارقام
  13. مشكوور والله ,, تقدر اخوي تشوف ذا الكود ذا لو ضغط على الخريطه يوديني المكان اللي ضغط عليه لما اضغط يوديني على البحر ليه ؟؟ addEventHandler("onClientGUIDoubleClick", resourceRoot, function( ) if source == map then local x, y = getCursorPosition( ) x, y = x*6000, y*6000 setElementPosition(localPlayer, x, y, getGroundPosition(x, y, 500)+1) end end)
  14. طيب وانوار السياره هذي تقفل وتشغل انوار السياره بس مااشتغلت الزر = lights = guiCreateButton(135, 127, 75, 50, "تشغيل\إيقاف انوار السياره", false) addEventHandler ("onClientGUIClick", resourceRoot, function () if source == lights then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLightState (veh, 2, 1, not setVehicleLightState(veh)) end end end )
  15. لا كنت مستعجل وكتبتها سريع عدلتها فوق :: تقدر تصلح لي الكودين اللي فوق ؟ كل مشكله للكود مكتوبه فوقه
  16. هلا شباب ,, المشكله انه لو قفلت الابواب وطلعت وجيت افتح الابواب ماتفتح الزر = doors = guiCreateButton(12, 127, 75, 50, "ابواب", false) addEventHandler ("onClientGUIClick", resourceRoot, function () if source == doors then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLocked (veh, not isVehicleLocked (veh)) end end end ) هذي تقفل وتشغل انوار السياره بس مااشتغلت الزر = lights = guiCreateButton(135, 127, 75, 50, "تشغيل\إيقاف انوار السياره", false) addEventHandler ("onClientGUIClick", resourceRoot, function () if source == lights then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLightState (veh, 2, 1, not setVehicleLightState(veh)) end end end )
  17. ليه لما اكتب يعطيي مشكلة في المنتدى General Error SQL ERROR [ mysqli ] Incorrect string value: '\xD8 An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
  18. اخوي لما اضغط على مكان في الخريطه يوديني البحر
  19. حطيت الارقمنتات الناقصه addEventHandler ("onClientGUIClick", resourceRoot, function () if source == doors then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLightState(veh, 2, 1, not setVehicleLightState(veh)) end end end )
  20. كذا ؟ ارجوا المساعده والله محتاجه setElementPosition ( source, x+0.5, y+0.5, 3 ) هذي سيرفر يبيلها تريقر ! map = guiCreateStaticImage(1, 46, 432, 364, "map.png", false, mapwnd) local x, y = getCursorPosition( ) x, y = x*6000, y*6000 addEventHandler("onClientGUIDoubleClick",root, function () if source == map then triggerServerEvent ( "map", localPlayer) end end ) سيرفر addEvent ("map", true) addEventHandler ("map", root, function () setElementPosition ( source, x+0.5, y+0.5, 3 ) end )
  21. طيب هذي صح حقت انوار السياره ؟ addEventHandler ("onClientGUIClick", resourceRoot, function () if source == doors then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLightState (veh, not istVehicleLightState (veh)) end end end )
×
×
  • Create New...