Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. iPrestege

    HELP

    You want to get Account name or show on the chat only "Admin" ? Choose one : local marker1 = createMarker(-2421, -608, 131, "cylinder", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker1, function(player) if (getElementType(player) == "player") then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("admin")) then outputChatBox("You're Account Name is : "..getAccountName(getPlayerAccount(player)).." ") end end end ) or : local marker1 = createMarker(-2421, -608, 131, "cylinder", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker1, function(player) if (getElementType(player) == "player") then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("admin")) then outputChatBox("Admin") end end end ) Server Side !!
  2. iPrestege

    help

    onPlayerCommand
  3. تقصد كذا ؟ : local team = createTeam("اسم التيم",255,0,0) local Groups = {"Console","Admin","SuperModerator","Moderator"} addEventHandler("onPlayerLogin",root, function () for k,v in ipairs (Groups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v)) then setPlayerTeam(source,team) end end end ) سجل دخولك بعد ماتشغل المود سيرفر سايد وخلك في قروب من القروبات وبيحطك بالتيم (;
  4. قروبات الادامن اللي هي ادمن و سوبرموديتور و موديتور و كونسل لول ! سويها بـ جدول يوم يسجل الدخول وش المشكلة؟
  5. يعني تبي قروبات محددة بس تدخل التيم؟
  6. الكود الاول مـوو فآهمة اببد اششوف الاوادم يحطونه ولآآ آفهمه بـ اختصار انا ابي كل الادامن يحطهم في تيم هذا اللي طلع معي ta = createTeam ( "Admin", 255, 255, 255 ) function showGroups(player) local groups = {Moderator, SuperModerator, Admin, Console, } groups = aclGroupList() end فهمنا وش اللي تبي تسوية يمكن الوظيفة غلطط ذذ
  7. Sorry but we don't make for you start learn .
  8. iPrestege

    help

    https://community.multitheftauto.com/index.php?p=resources&s=details&id=732
  9. -- Client Side !!! < تشوف تابل حاطها
  10. iPrestege

    help

    You mean you want to save weapons in player account?
  11. اهنيك عـ السكربت فكرة مميزة تجلب الزوار للرومات (; @ 3NAD +1
  12. انت تبي تزرف الاكواد حق المود لا اكثر يرحم والديك ياعزيزي! لا ترفع مواضيع قديمةة تخبص القسم علينا !
  13. iPrestege

    help

    @ Line "11" SetElementData : Required Arguments theElement: The element you wish to attach the data to. key: The key you wish to store the data under. (Maximum 31 characters.) value: The value you wish to store. See element data for a list of acceptable datatypes. ???
  14. iPrestege

    help

    Show me the key code
  15. local sx, sy = guiGetScreenSize ( ) local image = guiCreateStaticImage(0,0,sx,sy,"image.png",false) guiSetVisible ( image, false ) addEventHandler ( 'onClientRender', root, function() local health = getElementHealth(localPlayer) if ( health > 10 and guiGetVisible(image) ) then guiSetVisible ( image, false ) end end ) addEventHandler ( 'onClientPlayerDamage', root, function( attacker,weapon, bodypart, loss) if ( loss <= 10 and guiGetVisible(image) == false) then guiSetVisible ( image, true ) end end ) addEventHandler( 'onClientPlayerWasted', localPlayer, function ( ) guiSetVisible( image, false ) end )
  16. You Are Create The Explosion In Client And Server Side? LoL?
  17. -- Example 2: This will cause an explosion that will not harm the player. Wiki! function fakeBomb(x,y,z,d) if d then --Check the players Dimension if getElementDimension(getLocalPlayer()) == d then --If the players Dimension is the current dimension --Then people on other dimensions cant see this explosion createExplosion(x, y, z, 0, true, -1.0, false) end else createExplosion(x,y,z,0,true,-1.0,false) end end addEvent("fakeBomb",true) addEventHandler("fakeBomb",getRootElement(),fakeBomb)
  18. Ok,Try : local sx, sy = guiGetScreenSize ( ) local image = guiCreateStaticImage(0,0,sx,sy,"image.png",false) guiSetVisible ( image, false ) addEventHandler ( 'onClientPlayerDamage', root, function( attacker, weapon, bodypart, loss) if ( attacker and attacker ~= source and attacker == localPlayer ) then if ( loss <=10 and guiGetVisible(image) == false) then guiSetVisible ( image, true ) elseif ( loss > 10 and guiGetVisible(image) ) then guiSetVisible ( image, false ) end end end ) addEventHandler( 'onClientPlayerWasted', localPlayer, function ( ) guiSetVisible( image, false ) end )
  19. الله يعافيكك ذذ #
  20. You will spam the chat with you're code and use source > not defined . try this "GamerDeMTA" : addEventHandler ( 'onClientPlayerDamage', localPlayer, function ( ) setTimer(function() local health = getElementHealth ( localPlayer ) outputChatBox ( "Your health is: ".. math.floor ( health ) .."%" ) if ( health <= 10 ) then guiSetVisible ( image, true ) end end, 1000, 1) end ) addEventHandler( 'onClientPlayerWasted', localPlayer, function ( ) guiSetVisible( image, false ) end )
×
×
  • Create New...