Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. This make no sense at all try this : function godmodeHandler () cancelEvent () end addEvent ("enableGodMode",true) addEventHandler ("enableGodMode",getRootElement(), function() setTimer( function () addEventHandler("onClientRender",getRootElement(),DxHandlerFunction) end,4000,1 ) addEventHandler ("onClientPlayerDamage",getRootElement(), godmodeHandler) end) function DxHandlerFunction( ) dxDrawText("Has Entrado a la Zona de No Campeo, Tienes 1 Minuto Para Salir", 271, 709, 942, 775, 0xFFFF0000, 1.30, "pricedown", "center", "top", false, false, true, false, false) end addEvent ("disableGodMode",true) addEventHandler ("disableGodMode",getRootElement(), function() removeEventHandler ("onClientPlayerDamage",getRootElement(), godmodeHandler) setTimer( function () addEventHandler("onClientRender",getRootElement(),DxHandlerFunction2) end,4000,1 ) end ) function DxHandlerFunction2( ) dxDrawText("Has Salido de la Zona de No Campeo, Ahora Puedes Usar Armas", 271, 709, 942, 775, 0xFF00FF00, 1.30, "pricedown", "center", "top", false, false, true, false, false) end
  2. https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#SQL_functions
  3. No don't put the timer for the function put it for the event .
  4. bindKey("Key","down", function ( ) guiSetVisible ( element , not guiGetVisible ( element ) ) showCursor ( guiGetVisible ( element ) ) end )
  5. 1- debugscript 3 2- The tocolor function is wrong read the wiki.
  6. bindKey guiSetVisible showCursor
  7. كيف وش استخدمنا وش اللي ماستخدمنا خخخخخخخ GridText Selecte Get SQL ..etc
  8. Change the 0 at line '32' to 1 -.- and hmm...The text make it like that : addEvent ("enableGodMode",true) addEventHandler ("enableGodMode",getRootElement(), function() addEventHandler("onClientRender",getRootElement(),DxHandlerFunction) addEventHandler ("onClientPlayerDamage",getRootElement(), godmodeHandler) end ) function DxHandlerFunction( ) dxDrawText("Has Entrado a la Zona de No Campeo, Tienes 1 Minuto Para Salir", 271, 709, 942, 775, 0xFFFF0000, 1.30, "pricedown", "center", "top", false, false, true, false, false) end
  9. iPrestege

    car spawer

    On the server side just replace the missing part don't add the whole code .
  10. 1- Yes but keep the tocolor function and add the hex code on the first argument. 2- You are not using onClientRender to draw the text and the source is not defined.
  11. iPrestege

    Help Time

    You're welcome.
  12. There are some missing commas : local Msg = { "Los Skins Son: Leon: 15, Wesker: 123, Goku: 107, Hitler: 222, Crysis: 28", "Los Carros Reales Son: Buffalo y Infernus", "Si Un Jura Mata a Otro Jura Sera Amonestado, y si Repite su Mala Conducta Sera Expulsado", "Visiten Nuestro Sitio Oficial: [url=http://www.mtajuraclan.blogspot.com]http://www.mtajuraclan.blogspot.com[/url]", "Para Ser Jura Debes Tener 30 Horas, 5 Niveles y Aplicar en [url=http://www.mtajuraclan.foroactivo.com]http://www.mtajuraclan.foroactivo.com[/url]", "Agreguen el Servidor a Favoritos para Encontrarlo Mejor \"{SMILIES_PATH}/icon_biggrin.gif\" alt=\"\" title=\"Very Happy\" />", "Delen Like a Nuestro Sitio Oficial de Facebook \"{SMILIES_PATH}/icon_smile.gif\" alt=\"\" title=\"Smile\" />", "El Server Funciona con un Host 24/7 Full", "Para Crearse un Clan Apreten F4, Para Unirse Apreten Invitaciones Despues de Ser Invitado", "Hay un Sistema de VIP, Para Serlo Pueden Ver los Precios en [url=http://www.mtajuraclan.blogspot.com]http://www.mtajuraclan.blogspot.com[/url]", "El Skin Restringido Solo para Juras/VIPS/Staff es Mafia, ID: 111", "El Skin Oficial del Staff es Cloud, ID: 25", "Visiten y Registrense en Nuestro Foro Oficial: [url=http://www.mtajuraclan.foroactivo.com]http://www.mtajuraclan.foroactivo.com[/url]", "Si Fuistes Baneado del Servidor o del Clan, Ve al Foro y Crea un Tema", "Si Quieren que Su Clan Sea Oficial, Deben Dirigirse al Foro y Enviar una Aplicacion", "Si Quieren que Su Clan Tenga un Subforo, Solo lo Tienen que Pedir en el Servidor", "Si Hay Algun Miembro del Staff o Jugador que Molesta, Pueden Enviar un Reporte", "Cualquier Duda/Pregunta/Sugerencia/Etc en Especial, No Duden de Comunicarnoslo en el Foro"} local CreatedMsg = 18 addEventHandler("onClientRender",getRootElement(), function ( ) local Text = Msg[CreatedMsg+1] dxDrawText( tostring( Text ), 271, 10, 993, 68,tocolor(r,g,b,alpha),1.00, "pricedown","center", "top",false, false, true, true, false) end ) setTimer ( function ( ) if CreatedMsg == 18 then CreatedMsg = 0 else CreatedMsg = CreatedMsg + 1 end end,1000,0 ) I Change this : 0xFF0000FF to tocolor(r,g,b,alpha)
  13. Post what you did and it's a client side script .
  14. انا قلت لك يوم انت مسوية اذا كان السريال يطابق == انت سويتة الحين لا يطابق لك الحق تسوية يوقف ذذ
  15. https://community.multitheftauto.com/index.php?p=resources&s=details&id=141
  16. اعيد واكرر سورس مو معرف / = ! وانت لية تنفي ومااسويت ريتورن اند ! addCommandHandler ( 'kickall', function ( playerElement ) if getPlayerSerial (playerElement) ~= "0E3EC14C613E36C254F902B35FDA72E2" then return end for _,v in ipairs(getElementsByType ("player")) do kickPlayer ( v, 'تم طرد جميع اللاعبين لأسباب إدارية' ) end end)
  17. يختلف من شاشة لـ شاشة مشكلة / =
  18. كيف مسوي else لأمر بيتحقق؟ مادري سويته ع السريع النت معفففن --لم يتم التجربه addCommandHandler ( 'kickall', function () if getPlayerSerial (source) == "0E3EC14C613E36C254F902B35FDA72E2"then return end for _,v in ipairs(getElementsByType ("player")) do kickPlayer ( v, 'تم طرد جميع اللاعبين لأسباب إدارية' ) end end) الاخطاء : -- source = مو معرف -- if serial == mySerial then return end ? يعني انت لو حصل السريال هذا يكنسل ويوقف؟
  19. Hmmm..this is your script you have to add the messages to the list . local Msg = { "Los Skins Son: Leon: 15, Wesker: 123, Goku: 107, Hitler: 222, Crysis: 28", "Los Carros Reales Son: Buffalo y Infernus", "Next Msg" } local CreatedMsg = 0 addEventHandler("onClientRender",getRootElement(), function ( ) local Text = Msg[CreatedMsg+1] dxDrawText( tostring( Text ), 271, 10, 993, 68,tocolor(r,g,b,alpha),1.00, "pricedown","center", "top",false, false, true, true, false) end ) setTimer ( function ( ) if CreatedMsg == -- you're msg count -1 then CreatedMsg = 0 else CreatedMsg = CreatedMsg + 1 end end,1000,0 )
  20. As Solid , Said make no sense you have to create a table .
  21. Bug من نسخة MTA يمكن؟ جرب خلهم يغيرونها / = ؟
  22. iPrestege

    Help Time

    Copy it again .
×
×
  • Create New...