Jump to content

Mr.T9

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by Mr.T9

  1. اي سطر ؟ كيف اي سطر اكيد الاول ^ ! شكلك ماتعرف وش الحدث
  2. عندكك end ناقصص مشكور على التنبيه , تم التعديل
  3. * setPedWalkingStyle المشكلة لما تحط الوظيفة مايطلع لها رابط + مشكور على التعديل
  4. الاول مافهمته الثاني استخدم setPedWalkingStyle
  5. function IniciarAnimacion() if not on then on = true ahora = getTickCount() timerInto = setTimer(function() InicioInto = getTickCount() timerInto = nil end, 2000,1) timer10 = setTimer(function() ahora2 = getTickCount() addEventHandler("onClientRender", getRootElement(), AnimacionCuadros) ???? name funciton IniciarAnimacion not AnimacionCuadros !
  6. لما تضغط على الزر استخدم "onClientGUIClick"
  7. مثال للكاميرا setCameraMatrix(source,x,y,z,x,y,z) مثال بسيط + عليك الاحداثيات بس لما تجيب احداثيات الكاميرا من فوق فيها صعوبه شوي
  8. الكاميرا استخدم setCameraMatrix تختفي الماوس showCursor
  9. جرب الكود الحين عدلت ردي
  10. جرب addEventHandler( "onPlayerWasted", root, function ( _, killer ) if isPedInVehicle ( killer ) then if getPlayerMoney(source) >= 300 then givePlayerMoney ( killer, 500 ) takePlayerMoney(source,300) end end end)
  11. GUIEditor = { button = {}, window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(194, 129, 398, 314, "Police Center Control !", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF2F4CFA") GUIEditor.button[1] = guiCreateButton(10, 178, 115, 37, "Police Center", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "CC2650D7") GUIEditor.button[2] = guiCreateButton(10, 235, 115, 37, "Parking Cars Police Center", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "CC72E813") GUIEditor.button[3] = guiCreateButton(273, 235, 115, 37, "Prison Control", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "CCF0C80A") GUIEditor.button[4] = guiCreateButton(273, 178, 115, 37, "Surface Police Center", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "CC16DEE6") GUIEditor.staticimage[1] = guiCreateStaticImage(121, 20, 152, 152, "cinet.png", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(286, 283, 102, 21, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "CCF23907") guiSetVisible (GUIEditor.window[1], false) createMarker(214.72594,1906.00842,17.64063,"cylinder",2,255,0,0,255) addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then guiSetVisible (GUIEditor.window[1], true) showCursor (true) end end )
  12. "onMarkerHit" -------- عند لمس الماركر guiSetVisible -------- قفل و فتح النافذه
  13. ولكم باك يالحلو ض1 + ان شاء الله هالسنة لك فرصة ههه
  14. can you put Image All the resources they sell ?
  15. ^^ خطا بسيط ض1 thePed = createPed ( 282, 1513.3770751953, -1677.8481445313, 14.046875 ) theMarker = createMarker ( 0, 0, 0, "cylinder", 15, 0, 0, 0, 0 ) setPedStat ( thePed, 77, 999 ) setPedWeaponSlot ( thePed, 3 ) attachElements ( theMarker, thePed, 0, 0, -1 ) setTimer ( giveWeapon, 5000, 0, thePed, 30, 99999, true ) addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "Skulls" ) then triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePed ) if isPedInVehicle ( thePlayer ) then destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePed ) setTimer ( giveWeapon, 500, 1, thePed, 30, 99999, true ) end end )
  16. تبيه للقروب ولا التيم ؟
  17. طيب هات كودك وانت ضايف الشخصيات
  18. ضيف الشخصيات اللي تبيها بسطر 44
  19. استخدم guiCreateStaticImage "onClientGUIClick" guiSetVisible
×
×
  • Create New...