Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. iPrestege

    help!

    لازم تركب ملفات البرمجةة حقت الانفو بـ مودك عشان تستخدمةة ذذ
  2. iPrestege

    help!

    مانتبهت انة يبية يختفي فكرتة يبية يتحرك بسس يبية يطلع ويختفي مو شات
  3. iPrestege

    help!

    ذذ عناد هو مايقصد كذا هو يقصد الانفو بوكسس الدي اكس المتحرك من اليمين لليسار مايبية شات ذذ تقدر تسوي لبل مكان ماتبي وتسوي لة وقت محدد ويروح ( = كذا : Label = guiCreateLabel(441, 115, 346, 370, "To Open Script Press [F6]", false) addEventHandler("onClientResourceStart",resourceRoot, function () setTimer(guiSetVisible,5000,1,Label,false) end) بعد 5 ثواني من الدخول للروم بيظهر لة الكلام أو عند تشغيل السكربت بعد التحميل طبعا بـ يظهر 5 ثواني ويختفي وجرب بـ نفسك #,
  4. iPrestege

    help!

    استخدم كود جعفر وبسس #, الانفو معقد شوي ذذ
  5. iPrestege

    help!

    ماراح يشتغل ذذ على كلام عناد
  6. The sound work's with me but i don't know what's the fuc k problem with you? and try to make it you're self the other what you ask me to do it.
  7. The problem is from you're server host works good with me.
  8. I'm sorry I did not watch out for meta lol.
  9. Do You Get Any Error? It's Work With Me!
  10. sound = playSound("AlooyFTW.mp3") ?? Copy My Code Again! Make Sure Next Time ?
  11. You're Welcome And It's Problem Not Proplem
  12. Try this : x, y = guiGetScreenSize ( ) function centerWindow ( center_window, k, v ) local screenW, screenH = guiGetScreenSize ( ) local windowW, windowH = guiGetSize ( center_window, false ) local x, y = ( screenW - windowW ) / v, ( screenH - windowH )/k guiSetPosition ( center_window, x, y, false ) end addEventHandler("onClientResourceStart",resourceRoot, function () sound = playSound("Alhajarii.mp3") end) thePed = createPed ( 1, 0, 0, 500, 90 ) setElementFrozen ( thePed, true ) setCameraMatrix ( -3.6658203125, 0, 500.48254455566, 2906.9938964844, 0, 201.84664916992 ) Animations = { "dnce_M_b"} setPedAnimation( thePed, "DANCING", Animations [ math.random ( #Animations ) ] ) theObject = createObject ( 1337, 0, 0, 499, 60 ) setElementAlpha ( theObject, 0 ) SpawnBtn = guiCreateButton( 0, 0, 125, 62.5, "Spawn", false ) centerWindow ( SpawnBtn, 1.2, 1.96 ) RightBtn = guiCreateButton( 0, 0, 70, 35, ">", false ) centerWindow ( RightBtn, 2, 1.4 ) LeftBtn = guiCreateButton( 0, 0, 70, 35, "<", false ) centerWindow ( LeftBtn, 2, 3.3 ) showCursor ( true ) function Right ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 280 ) then setElementModel ( thePed, 280 ) else setElementModel ( thePed, 1 ) end end end function Left ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 1 ) then setElementModel ( thePed, 1 ) else setElementModel ( thePed, 280 ) end end end addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == SpawnBtn ) then triggerServerEvent ( "spawnPed", localPlayer, getElementModel ( thePed ) ) if isElement ( thePed ) then destroyElement ( thePed ) end if isElement ( theObject ) then destroyElement ( theObject ) end destroyElement ( SpawnBtn ) destroyElement ( RightBtn ) destroyElement ( LeftBtn ) stopSound(sound) sound = nil showCursor ( false ) elseif ( source == RightBtn ) then Right ( ) elseif ( source == LeftBtn ) then Left ( ) end end )
  13. -- SERVER addEvent("SaddNotification", true) addEventHandler("SaddNotification", root, function SaddNotificationHandler( text, red, green, blue,player) triggerClientEvent(player,"CaddNotification",text,player,red, green, blue ) end ) -- CLIENT addEvent("CaddNotification",true) addEventHandler("CaddNotification", root, function ( text, red, green, blue ) addNotification( text, red, green, blue ) end )
  14. iPrestege

    Name Tags

    Aha Sorry Don't Know About DayZ Scripts ) = .
  15. Client : GUIEditor = { memo = {}, button = {}, window = {}, radiobutton = {}, tab = {}, label = {}, tabpanel = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(684, 215, 491, 334, "CFR - Sofer De Tren", false) guiSetVisible ( GUIEditor.window[1], false ) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.75) GUIEditor.button[1] = guiCreateButton(52, 169, 136, 65, "Angajeaza-te", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.button[2] = guiCreateButton(299, 169, 136, 65, "Demisioneaza", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") GUIEditor.button[3] = guiCreateButton(299, 259, 136, 65, "Închide", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") GUIEditor.memo[1] = guiCreateMemo(206, 180, 76, 85, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(252, 119, 70, 54, "", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(46, 35, 393, 124, " Bun venit la gara CFR!\nCautamt conductori de locomotiva, tot ce trebuie sa faci este sa conduci trenul si sa iei pasageri. Ia o colomotiva, o poti gasii pe sine, si incepeti slujba.\n\n Mult Succes!", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[2], true) GUIEditor.tabpanel[1] = guiCreateTabPanel(178, 196, 60, 57, false, GUIEditor.memo[2]) GUIEditor.tab[1] = guiCreateTab("Tab", GUIEditor.tabpanel[1]) GUIEditor.radiobutton[1] = guiCreateRadioButton(191, 271, 75, 44, "", false, GUIEditor.window[1]) guiRadioButtonSetSelected(GUIEditor.radiobutton[1], true) end ) addEvent ("viewGUI", true) addEventHandler( "viewGUI" , root, function () guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end ) Server : local jobMarker = createMarker (1942.57, 2184.79, 9.82, "cylinder", 1, 255, 0, 0, 127) addEventHandler ("onMarkerHit", jobMarker, function (hitPlayer) if (getElementType(hitPlayer) == "player") then triggerClientEvent ("viewGUI",source) outputChatBox ("Bun venit la gara Romana CFR.", hitPlayer, 255, 0, 0) end end ) Try it.
  16. iPrestege

    I'm... Back?

    Welcome Back Man Where Are You All This Time ?
  17. iPrestege

    Name Tags

    What's the problem with it?
  18. Good Job Keep Up The Good Job and i hope you good luck.
  19. iPrestege

    Name Tags

    https://forum.multitheftauto.com/viewtopic.php?f=108&t=55239 Don't work?
  20. GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow ( 200, 200, 555, 550, "Shop", false ) LO7AH = guiCreateStaticImage ( 0.0142,0.0628,0.9717,0.9146,"images/LO7AH.png", true, GUIEditor_Window[1] ) Button = guiCreateButton ( 0.0598,0.299,0.178,0.0754,"Fix", true, LO7AH ) Button2 = guiCreateButton ( 0.4126,0.2965,0.178,0.0754,"Kill", true, LO7AH ) Button3 = guiCreateButton ( 0.7685,0.294,0.1732,0.0754,"createped", true, LO7AH ) GUIEditor_Label[1] = guiCreateLabel ( 0.0142,0.9422,0.1937,0.0377,"~]|[ By : 3ssol ]|[~", true, LO7AH )
  21. playSound "onClientResourceStart" stopSound "onClientGUIClick" For Example : addEventHandler("onClientResourceStart",resourceRoot, function () sound = playSound("File.mp3",true) end) addEventHandler("onClientGUIClick",button, function () stopSound(sound) sound = nil end)
  22. My code should work in client side.
×
×
  • Create New...