Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. الحمد لله تواصلنآ مع الدعم و هالكلام ي هيمو قبل كم شهر الخوادم صار عليها حماية اللي مآهو مصدق يتواصل مع الاستضافة نفسها ( = ذذ
  2. addEventHandler('onResourceStart',resourceRoot, function ( ) executeSQLQuery("CREATE TABLE IF NOT EXISTS Alhajarii ( Column,Column,Column )") -- Table = Alhajarii end )
  3. لا بس توضيح من الويكي
  4. It was in his code i just edit the position .
  5. السبب ي طويل العمر ؟ انت بالانترور 18 المفروض يشتغل غيرة مآيشتغل ذذ وش السبب انة مآيشتغل..؟
  6. function duty ( thePlayer ) if getElementInterior ( thePlayer ) == 18 and isElementWithinMarker(thePlayer, testmarker) then triggerClientEvent( thePlayer,'etc',thePlayer ) end end addCommandHandler('run', duty) Server Side الترايقر كان للكل خليتة للاعب بس ..
  7. استخدم الشرط اللي عطاك اياهـ ..
  8. مثآل آفضل تسوية لكل الشاشات .. local screenWidth,screenHeight = guiGetScreenSize() guiCreateWindow ( screenWidth*( x/screenWidth ),screenHeight*( y/screenHeight ),screenWidth*( width/screenWidth ),screenHeight*( height/screenHeight ),'Test Window',false )
  9. انا بدي اياه اذا كان في ماركر مافهمت قصدك يعني الوظيفة تصير وانت منت بـ انترور 18 او الوظيفة تصير وانت ما لمست الماركر مريت من كان فوقة او او الخ
  10. قصدك ماتبي تصير الوظيفة الا اذا كان بالانترور الفلاني؟ الوظيفة ما تشتغل الا في انترور 0 انت ماوضحت المشكلة يعني تبي الوظيفة ماتشتغل في انترور 0 ولا كيف
  11. قصدك ماتبي تصير الوظيفة الا اذا كان بالانترور الفلاني؟
  12. لم يتم التجربة -- # Server Side! local marker50 = createMarker (1390.4000244141,566.40002441406,137.5,"arrow",2,20,245,9,255) local marker30 = createMarker (1375.4000244141,542.90002441406,5000.9,"arrow",2,29,255,0,255) local marker40 = createMarker (1390.8000488281,561.29998779297,135.19999694824,"cylinder",1,245,9,9,255) local marker60 = createMarker (1497.6999511719,580.5,133.30000305176,"cylinder",2,127,126,126,255) function teleport1 ( thePlayer ) if getElementType ( thePlayer ) == 'player' then if getElementData ( thePlayer,'Group' ) == '[saW]' then setElementPosition( thePlayer,1378.5999755859,544.70001220703,4999.3999023438 ) outputChatBox("تم نقلك",thePlayer,255,255,255,true) else outputChatBox("انت لست من عصـآبة سـآو",thePlayer,255,255,255,true) end end end function teleport2 ( thePlayer ) if getElementType ( thePlayer ) == 'player' then if getElementData ( thePlayer,'Group' ) == '[saW]' then setElementPosition(thePlayer,1393.5,571.29998779297,136.19999694824) outputChatBox("تم نقلك",thePlayer,255,255,255,true) else outputChatBox("انت لست من عصـآبة سـآو",thePlayer,255,255,255,true) end end end function health ( thePlayer ) if getElementType ( thePlayer ) == 'player' then if getElementData ( thePlayer,'Group' ) == '[saW]' then setPedArmor ( thePlayer,100 ) setElementHealth ( thePlayer,100 ) end end end function fixcar ( thePlayer ) if getElementType ( thePlayer ) == 'player' and isPedInVehicle ( thePLayer ) then if getElementData ( thePlayer,'Group' ) == '[saW]' then fixVehicle ( getPedOccupiedVehicle( thePlayer ) ) end end end addEventHandler("onMarkerHit", marker30,teleport2) addEventHandler("onMarkerHit", marker50,teleport1) addEventHandler("onMarkerHit",marker40,health) addEventHandler("onMarkerHit",marker60,fixcar)
  13. source = ? تحط للزر ؟ localPlayer
  14. سطر 37 : theVehicle xxx > من وين جايبها .. انصحكـ بـ الجداول تختصر آكثر
  15. You can set a blip color for 0 id for ex : createBlip ( 0,0,0,0 ) Any id other 0 the color of it won't change.
  16. You can set a blip color for ( 0 ) ID only .
  17. And the script doesn't work? Debug script ? Or you can try this if doesn't work : function bindHoron ( key, keyState ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if ( not theVehicle ) then return end if ( getElementModel ( theVehicle ) == 537 ) then if ( keyState == 'down' ) then local x,y,z = getElementPosition ( localPlayer ) desusound = playSound3D ( 'hupe/ZUGHUPE.mp3',x,y,z ) setSoundVolume ( desusound, 5.0 ) setSoundMaxDistance ( desusound, 190 ) attachElements ( desusound, theVehicle ) elseif ( keyState == 'up' ) then if isElement ( desusound ) then stopSound ( desusound ) end end end end bindKey ( 'h', 'down', bindHoron ) bindKey ( 'h', 'up', bindHoron )
  18. addEventHandler("onResourceStart",resourceRoot,function() for i,v in ipairs ( getElementsByType("vehicle") ) do local player = getVehicleController(v) if(player)then local pedTeam = getPlayerTeam(player) if(pedTeam)then local r,g,b = getTeamColor(pedTeam) setVehicleColor(v,r,g,b) else setVehicleColor(v,255,255,255) end else setVehicleColor(v,255,255,255) end end end) addEventHandler("onVehicleStartEnter",root,function(player,_,jacked) if not getPlayerTeam ( player ) then return end local r,g,b = getTeamColor(getPlayerTeam(player)) setVehicleColor(source,r,g,b) end) addEventHandler("onVehicleExit",root,function() setVehicleColor(source,255,255,255) end) Try this if doesn't work post the error here.
  19. You can use relative option from guieditor resource it's not good every time but it's not bad too .
×
×
  • Create New...