Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. function SelectSkin () setElementInterior ( getLocalPlayer(), 0, 0,0,0 ) setCameraMatrix( 1997.3852539063, -2329.8051757813, 14.718949317932, 1996.6430664063, -2423.5083007813, -20.197387695313) skin = createPed ( StartSkin, 1997.4000244141,-2332.8999023438,13.5 ) setPedAnimation( skin, "DANCING", SkinAnims[math.random(1,4)]) fadeCamera( true, 10) setTime(0,0) SkinSelectMusic = playSound(SkinMusic,true) addEventHandler("onClientRender",getRootElement(),dxDrawInfo) bindKey("arrow_r","down",NextSkin) bindKey("arrow_l","down",LastSkin) bindKey(".","down",SpawnPlayer) showChat(false) showPlayerHudComponent ( "radar", false ) end addEventHandler("onClientGUIClick", RgsBtn,SelectSkin,false)
  2. -- # Server Side Here : function dxJoinFunction ( ) triggerClientEvent(source,"JoinDx",source) end addEventHandler("onPlayerJoin", root, dxJoinFunction) function dxLoginFunction ( ) triggerClientEvent(source,"LoginDx",source) end addEventHandler("onPlayerLogin", root, dxLoginFunction) -- # Client Side Here : function dxLoginMessage() dxDrawText("Recordatorio: Apreta F4 Para Abrir/Cerrar el Panel de Ayuda", 240, 337, 1139, 376, tocolor(0, 0, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Recordatorio: Apreta F4 Para Abrir/Cerrar el Panel de Ayuda", 240, 335, 1139, 374, tocolor(0, 0, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Recordatorio: Apreta F4 Para Abrir/Cerrar el Panel de Ayuda", 238, 337, 1137, 376, tocolor(0, 0, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Recordatorio: Apreta F4 Para Abrir/Cerrar el Panel de Ayuda", 238, 335, 1137, 374, tocolor(0, 0, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Recordatorio: Apreta F4 Para Abrir/Cerrar el Panel de Ayuda", 239, 336, 1138, 375, tocolor(0, 255, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) end function dxJoinMessage() dxDrawText("Espera Mientras Cargue el Servidor, \nNo Tardara Mucho, y Te Sumergiras al Mejor Servidor \nde Mta San Andreas. \nEn Total Tenemos 2 Servidores, Juramento Freeroam \ny Juramento Zombie Roleplay", 248, 316, 1012, 456, tocolor(0, 0, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Espera Mientras Cargue el Servidor, \nNo Tardara Mucho, y Te Sumergiras al Mejor Servidor \nde Mta San Andreas. \nEn Total Tenemos 2 Servidores, Juramento Freeroam \ny Juramento Zombie Roleplay", 248, 314, 1012, 454, tocolor(0, 0, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Espera Mientras Cargue el Servidor, \nNo Tardara Mucho, y Te Sumergiras al Mejor Servidor \nde Mta San Andreas. \nEn Total Tenemos 2 Servidores, Juramento Freeroam \ny Juramento Zombie Roleplay", 246, 316, 1010, 456, tocolor(0, 0, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Espera Mientras Cargue el Servidor, \nNo Tardara Mucho, y Te Sumergiras al Mejor Servidor \nde Mta San Andreas. \nEn Total Tenemos 2 Servidores, Juramento Freeroam \ny Juramento Zombie Roleplay", 246, 314, 1010, 454, tocolor(0, 0, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Espera Mientras Cargue el Servidor, \nNo Tardara Mucho, y Te Sumergiras al Mejor Servidor \nde Mta San Andreas. \nEn Total Tenemos 2 Servidores, Juramento Freeroam \ny Juramento Zombie Roleplay", 247, 315, 1011, 455, tocolor(0, 255, 0, 255), 0.85, "bankgothic", "left", "top", false, false, true, false, false) end addEvent("JoinDx",true) addEventHandler("JoinDx",root, function ( ) addEventHandler("onClientRender",root,dxJoinMessage) end ) addEvent("LoginDx",true) addEventHandler("LoginDx",root, function ( ) removeEventHandler("onClientRender",root,dxJoinMessage) addEventHandler("onClientRender",root,dxLoginMessage) setTimer ( function ( ) removeEventHandler("onClientRender",root,dxLoginMessage) end,6000,1 ) end )
  3. What about ( bindKey ) Function .
  4. Super thanks to the mta team all forum admin - moderators - other moderators - contributors - all people how play mta !
  5. You are not make a much sense with your script are u sure there's event called onPlayerRegister ? And dx text use ( onClientRender ) Event to draw it .
  6. الله يعافيكـ .. بالتوفيق
  7. شوف هالمثال للجداول : local aSounds = { "File", "File", "File" } addCommandHandler("PlaySound", function ( ) if isElement ( sound ) then destroyElement ( sound ) end sound = playSound ( aSounds[math.random(#aSounds)] , true ) -- نجيب كل قيم الجدول بـ # ونسويها راندوم عشوائيةة end )
  8. شوف هالمثال طريقتي مجرد شرح لول لاتاخذها خخ : addCommandHandler("sound", function ( ) local RandomSounds = math.random ( 1,2 ) if isElement ( sound ) then stopSound ( sound ) end if ( RandomSounds == 1 ) then sound = playSound ( "1.mp3" ) else sound = playSound ( "2.mp3" ) end end ) طويلة الطريقة جداول اصرف
  9. خطأ للآسف ذذ سوية تيبل او تقدر تسوي local random = math.random ( 1,2 ) if random == 1 then playSound ( 1 ) else playSound ( 2 ) end
  10. -- Client Side -- function triggerToServer ( ) if ( guiRadioButtonGetSelected ( rdoCannabis ) ) then triggerServerEvent ( "onClick", getLocalPlayer() ) end end addEventHandler("onClientGUIClick", btnTakeHit , triggerToServer, false) -- Server Side -- function drug( ) setPedGravity ( source,3.0 ) end addEvent( "onClick", true ) addEventHandler("onClick", root , drug)
  11. حياكـ الله ..
  12. setPlayerGravity : function is a server side only .
  13. السلام عليكم و رحمة الله و بركاتة # حبيت اسوي الموضوع للي عندهـ آي فكرهـ لـ سكربت يطرحها للآعضاء يستفيدون منها .. و اللي عندهـ فكرهـ يطرحها بـ التوفيق للجميع
  14. local ID = math.random ( 400,611 ) createVehicle(ID,...) سيارات عشوائيةة ذذ
  15. addEventHandler ( 'onClientMarkerHit',getResourceRootElement ( getThisResource ( ) ), function ( element ) createMarker "onMarkerHit" getElementType isObjectInACLGroup getPlayerAccount getAccountName killPed
  16. https://wiki.multitheftauto.com/wiki/Weather
  17. What you mean by "LOD" | = ?!
  18. اممم جربتة تمام تامد من ملف صوتك
  19. تاكد معه صلاحيات
×
×
  • Create New...