Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    a question

    DO NOT ever create blip, vehicle, marker, timer, and such thing with the event onClientRender.
  2. TAPL

    a question

    There no function to create attached blip, but you can change the position of the blip: You can get the position of the player: getElementPosition Then set the position of the blip to the position of the player: setCustomBlipPosition And in order for the blip to stay attached to the player continuously, you need to call this function with this event: onClientRender
  3. zombieCol = {} function createZombiePlayer(x, y, z) local zombie = createPed(70, x, y , z, math.random(0, 360)) local Zx, Zy, Zz = getElementPosition(zombie) zombieCol[zombie] = createColSphere(Zx, Zy, Zz, 1.5) addEventHandler("onColShapeHit", pedCol, hitCol) attachElements(pedCol, zombie, 0, 0, 0) end addEvent("createZombiePlayer", true) addEventHandler("createZomieForPlayer", getRootElement(), createZombiePlayer) function hitCol(player) if getElementType(player) == "player" then outputChatBox("Hit", player, 255, 255, 0, true) end end function deanimated(ammo, attacker, weapon, bodypart) if getElementData(source, "zombie") then zombiesalive = zombiesalive - 1 outputChatBox("Zombi Died!", player, 0, 238, 0, true) -- is player defined anywhere? setElementData(source, "status", "dead") if isElement(zombieCol[source]) then destroyElement(zombieCol[source]) end zombieCol[source] = nil end end addEventHandler("onPedWasted", getRootElement(), deanimated)
  4. function createZombiePlayer(x, y, z) local zombie = createPed(70, x, y , z, math.random(0, 360)) local Zx, Zy, Zz = getElementPosition(zombie) local pedCol = createColSphere(Zx, Zy, Zz, 1.5) addEventHandler("onColShapeHit", pedCol, hitCol) attachElements(pedCol, zombie, 0, 0, 0) end addEvent("createZombiePlayer", true) addEventHandler("createZomieForPlayer", getRootElement(), createZombiePlayer) function hitCol(player) if getElementType(player) == "player" then outputChatBox("Hit", player, 255, 255, 0, true) end end
  5. نهي اجاها قرقاهي فيه كلمه بالهندي كذا؟ ^^ الزبده ممنوع بحسب القانون الجديد مناقشات وهواش سرقة المودات و التهكير و الخرابيط ذي https://forum.multitheftauto.com/viewtopic.php?f=119&t=54447 و ياليت زر ريبورت يستخدم بالمواضيع المخالفة^ يغلق
  6. وين البندر
  7. MTA password is encryption with sha256. This function is same thing. https://wiki.multitheftauto.com/wiki/Sha256
  8. You're welcome.
  9. TAPL

    Marker Table

    You're welcome.
  10. oh i was think you will use it with weapon where the creator will be the player but in you case the creator is the hunter. So you need to get the driver of the hunter because the element data is with the player. Change this: if getElementData(creator, "VIPRocket") and getProjectileType(source) == 19 then To: if getElementData(getVehicleController(creator), "VIPRocket") and getProjectileType(source) == 19 then
  11. TAPL

    Marker Table

    for i, pos in ipairs(CarsTable) do marker1 = createMarker(pos[1], pos[2], pos[3], "cylinder", 2.0, 250, 50,0, 150) addEventHandler ("onClientMarkerHit", marker1, menuShow) end
  12. It's work fine for me. Have you tried to use the command rocket? Are you sure you are in one of the two group "Admin" or "vip"? Are you sure the rocket type was 19 (without heat seeking)?
  13. -- Server Side -- function raketa(player) local accountName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accountName, aclGetGroup("Admin")) or isObjectInACLGroup("user."..accountName, aclGetGroup("vip")) then if not getElementData(player, "VIPRocket") then setElementData(player, "VIPRocket", true) outputChatBox("#1e90ff*#ffffff~TS~ #ffff00VIP#ffffff: You enabled rocket!", player, 255, 255, 255, true) else setElementData(player, "VIPRocket", false) outputChatBox("#1e90ff*#ffffff~TS~ #ffff00VIP#ffffff: You disable rocket!", player, 255, 255, 255, true) end else outputChatBox("#1e90ff~TS~*#ffffff You dont have permission for this command", player, 255, 0, 0, true) end end addCommandHandler("rocket", raketa) -- Client Side -- local rocketColor = {0, 102, 255, 255} local markers = {} function updateMarkers() for i,m in pairs(markers) do if isElement(m[2]) then local rx, ry, rz = getElementPosition(m[2]) setElementPosition(m[1], rx, ry, rz) else markers[i] = nil destroyElement(m[1]) end end end addEventHandler("onClientRender", root, updateMarkers) function onRocketCreate(creator) if getElementData(creator, "VIPRocket") and getProjectileType(source) == 19 then setTimer(function(source) local rx, ry, rz = getElementPosition(source) local marker = createMarker(rx, ry, rz, "corona", 5, rocketColor[1], rocketColor[2], rocketColor[3], rocketColor[4]) table.insert(markers, {marker, source}) end, math.random(50, 100), 1, source) end end addEventHandler("onClientProjectileCreation", root, onRocketCreate)
  14. You mean the VIP member will be able to see all rockets colored or you mean everyone will see the rocket colored if the creator was VIP?
  15. I don't get what you trying to do.
  16. For custom events this function is needed. addEvent
  17. GUIEditor = { button = {}, edit = {}, progressbar = {}, label = {}, tab = {}, memo = {}, radiobutton = {}, gridlist = {}, checkbox = {}, tabpanel = {}, scrollpane = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.tabpanel[1] = guiCreateTabPanel(103, 98, 630, 453, false) guiSetVisible (GUIEditor.tabpanel[1], false) GUIEditor.tab[1] = guiCreateTab("القــوانين", GUIEditor.tabpanel[1]) GUIEditor.button[1] = guiCreateButton(44, 25, 244, 93, "", false, GUIEditor.tab[1]) GUIEditor.button[2] = guiCreateButton(347, 25, 244, 93, "السب + الشتم +ازعاج الادمنية ", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(347, 149, 244, 93, "الهـاك", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.button[4] = guiCreateButton(347, 274, 244, 93, "", false, GUIEditor.tab[1]) GUIEditor.button[5] = guiCreateButton(44, 25, 244, 93, "مــيوت 5 دقائـق", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[5], "sa-gothic") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF0615A4") GUIEditor.button[6] = guiCreateButton(44, 148, 244, 93, "بـــاند 1000 ســنة", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[6], "sa-gothic") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF0615A4") GUIEditor.button[7] = guiCreateButton(44, 274, 244, 93, "بـاند 30 يـــوم", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[7], "sa-gothic") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF0615A4") GUIEditor.button[8] = guiCreateButton(347, 274, 243, 91, "النشـــــر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[8], "sa-header") guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFFF0000") GUIEditor.scrollpane[2] = guiCreateScrollPane(, , 70, 16, false, GUIEditor.tab[1]) guiSetAlpha(GUIEditor.scrollpane[2], 0.00) GUIEditor.gridlist[3] = guiCreateGridList(15, 376, 599, 46, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[3], "by:RoMaNd", 0.9) GUIEditor.label[2] = guiCreateLabel(508, 385, 15, 15, "", false, GUIEditor.tab[1]) GUIEditor.tab[2] = guiCreateTab("الشروط", GUIEditor.tabpanel[1]) GUIEditor.button[9] = guiCreateButton(30, 39, 576, 84, "الرجـآآء عدم طلب ادمنية إلا اذا كنت تستحقها", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.button[9], "default-bold-small") guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FF056455") GUIEditor.button[10] = guiCreateButton(30, 137, 576, 84, "مساعدة الاعضاء و الاحترام والتواجد = الادمنية", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.button[10], "default-bold-small") guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FF056455") GUIEditor.button[11] = guiCreateButton(30, 236, 576, 84, "يمنع إزعاج اي ادمن", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.button[11], "default-bold-small") guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FF056455") GUIEditor.progressbar[1] = guiCreateProgressBar(418, -168, 175, 108, false, GUIEditor.button[11]) GUIEditor.edit[3] = guiCreateEdit(80, 355, 469, 49, " الرجــاء الآتزام بالقوانين \"مع تحيات ادارة السيرفر\"", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.edit[3], "NormalTextColour", "FF347EF8") guiEditSetReadOnly(GUIEditor.edit[3], true) GUIEditor.radiobutton[1] = guiCreateRadioButton(-56, -19, 87, 17, "", false, GUIEditor.edit[3]) GUIEditor.tab[4] = guiCreateTab("لــقد قــبلت !", GUIEditor.tabpanel[1]) GUIEditor.button[15] = guiCreateButton(82, 130, 428, 122, "لــــقد قــبلت", false, GUIEditor.tab[4]) guiSetFont(GUIEditor.button[15], "sa-gothic") guiSetProperty(GUIEditor.button[15], "NormalTextColour", "FF9D5119") GUIEditor.checkbox[5] = guiCreateCheckBox(445, 41, 54, 40, "", false, false, GUIEditor.button[15]) GUIEditor.checkbox[6] = guiCreateCheckBox(520, 183, 15, 15, "", true, false, GUIEditor.tab[4]) GUIEditor.checkbox[7] = guiCreateCheckBox(424, 366, 15, 15, "", true, false, GUIEditor.tab[4]) GUIEditor.memo[1] = guiCreateMemo(414, 381, 189, 33, "By RoMaNd", false, GUIEditor.tab[4]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.memo[2] = guiCreateMemo(22, 165, 564, 60, "", false, GUIEditor.tab[4]) guiSetAlpha(GUIEditor.memo[2], 0.33) end ) function OpenWin() if guiGetVisible ( GUIEditor.tabpanel[1] ) then guiSetVisible ( GUIEditor.tabpanel[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.tabpanel[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F3", "down", OpenWin)
  18. TAPL

    Help me. Pls!

    You need to make sure that the player not muted before output the text. isPlayerMuted
  19. debugscript 3 افتح و شوف ايش الأخطاء الي تجي
  20. TAPL

    Turfs

    What limit?
  21. or لما تستخدم == لازم تستخدم معه JoinCrimes = createMarker(691.578125,-1276.0595703125,13.560739517212,"cylinder",1.5,0,0,255,155) addEventHandler("onMarkerHit",JoinCrimes, function (player) if getElementType(player) == "player" then if getPlayerTeam ( player ) == getTeamFromName ( "No Team" ) or getPlayerTeam ( player ) == getTeamFromName ( "Grove" ) or getPlayerTeam ( player ) == getTeamFromName ( "Aztecas" ) then setElementInterior ( player, 5 ,1263.8504638672 ,-785.31146240234 ,1091.90625 ) end end end )
  22. مترجم قوقل 0_0
  23. Spam. https://community.multitheftauto.com/ind ... ls&id=8044 https://community.multitheftauto.com/ind ... ls&id=8045 https://community.multitheftauto.com/ind ... ls&id=8046 https://community.multitheftauto.com/ind ... ls&id=8047 https://community.multitheftauto.com/ind ... ls&id=8048 https://community.multitheftauto.com/ind ... ls&id=8049 https://community.multitheftauto.com/ind ... ls&id=8050 https://community.multitheftauto.com/ind ... ls&id=8051 https://community.multitheftauto.com/ind ... ls&id=8052 DONE
  24. المنطقة تقدر تسويها بكول و تستخدم هذا isElementWithinColShape او تسويها بماركر و تستخدم هذا isElementWithinMarker getPlayerTeam getTeamName getPlayerWantedLevel الأفنت الي راح تستخدمه هذا https://wiki.multitheftauto.com/wiki/OnClientPlayerDamage تسوي تحقق بالشروط if - elseif - else - الخ ثم تلغي الأفنت cancelEvent
  25. عليكم السلام ما يحبك GUIEDITOR لان عشان كذا ما تقدر تستخدمه
×
×
  • Create New...