Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. Show your code.
  2. TAPL

    Streaming

    http://bugs.multitheftauto.com/view.php?id=6910
  3. Have you read my topic correctly ? and i don't want this text / image only show up to the player , i want make it show up for all players How you expect to make it without looking at other resources? what does manually mean for you? check this, it's will show for all players https://community.multitheftauto.com/ind ... ls&id=4931 if you don't want to download it, this your problem.
  4. Have you ever searched on community? https://community.multitheftauto.com/ind ... ls&id=3090
  5. TAPL

    Streaming

    Not possible.
  6. TAPL

    ped

    By doing this, you will be able to control the ped that have just created only.
  7. can't you see it? it's already on the code.
  8. You can make your own map. bindKey("F11","down","radar") -- this will make the radar not showing
  9. TAPL

    ped

    -- Server Side -- function Robot () drv = createPed(0,2494.73828,-1669.46558,13.33595) setElementID(drv,"myPed") end addEventHandler("onResourceStart",resourceRoot,Robot) -- Client Side -- drvctrls = {forwards="num_8", backwards="num_5", left="num_4", right="num_6", enter_exit="num_0"} function ctrldrv () for ctrl,key in pairs(drvctrls) do setPedControlState(getElementByID("myPed"),ctrl,getKeyState(key)) end end addEventHandler("onClientPreRender",getRootElement(),ctrldrv)
  10. You have missed 'end'
  11. مسخرة
  12. هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه شكلك سكران و إلا شي ياخوي أنت ما تفهم؟ قلت له أقرأ الويكي قبل لا ترد ما سبيته ولا غلطت عليه في معلوم سديق؟ ههههههه شفت ليه قاعد انصحك ؟؟؟ تستهزي وواثق مشكلتك ياشيخ امثالك المفروض في مستشفى شهار برب ياشيخ تراك ما عند أمك سالفه قال أسلوبك قال يعني أقرأ الويكي قبل لا ترد ذي تعني معصب و سبيتك و هزأتك و أكلتك و أنا ما بحذف الردود و الموضوع مفتوح و ما بغلقه أبي أشوف الي نفس أشكالك ذي عشان أضحك عليهم الموضوع ما ينغلق إلا إذا قال صاحب الموضوع أغلق برب يا شيخ < هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه
  13. هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه شكلك سكران و إلا شي ياخوي أنت ما تفهم؟ قلت له أقرأ الويكي قبل لا ترد ما سبيته ولا غلطت عليه في معلوم سديق؟
  14. مع أحترامي لك قل لي وش الخطأ و الغلط بكلامي و وين أنا أكلته بردي اوكـ هـنـا تـقـول لـلاخ نوت اقـراء الـويـكـي ورد طـيـب يـاخـوي حـتـى لـو هـو غـلـطـان يـعـنـي مـايـرد >< وهـو جـاء يـسـاعـد وهـو كـمـان غـلـطـان بـرده يا حبيبي أنت تبي تطلعني غلطان غصب يعني؟ وضح لي وين الغلط في كلمة أقرأ الويكي بعدين رد وييييييييييين وييييييييييييييييييييييييييين!!!!!!!!!!!!!!!!! وقسم بالله نفسيات
  15. وش فيك معصب طيب ؟ بعدين انا اعدل له setCameraTarget وش دخل اوم الكلنت بالموضوع الحين والا خلاص علشانك مشرف تحسب انك فاهم ترا ملعوب عليك بالاشراف أعصابك حبيبي مدري أيش فيه ردي يعني للدرجة ذي ردي مزعج و مهين لك؟ أقرأ الويكي = سب و أهانه لك روح الله يستر عليك
  16. مع أحترامي لك قل لي وش الخطأ و الغلط بكلامي و وين أنا أكلته بردي
  17. أستضافتك ذي ما تتسمى أستضافة عربية أستضافة عربية يعني الخادم بدولة عربية أما فرنسا للأسف ما فيه فايده
  18. @Note يا عزيزي أقرأ الويكي بعدين رد https://wiki.multitheftauto.com/wiki/AddEventHandler client: the client that triggered the event using triggerServerEvent. Not set if the event was not triggered from a client. viewtopic.php?f=91&t=39678 client -- the client that called the event
  19. because there were wrong arguments, i was writing it quickly .. This if getElementData(player, "lift.permission") then was sholud be if not getElementData(tPlayer, "lift.permission") then and this have wrong Data name, was should be lift.permission not Lift.permission setElementData(tPlayer, "Lift.permission", true) setElementData(tPlayer, "Lift.permission", false) EDIT function attachplayer(player,cmd) attachElements ( lift, players, 0, 0, 5 ) end function unattachplayer(player,cmd) detachElements(lift,player) addCommandHandler("attlift",attachplayer) addCommandHandler("unattlift",unattachplayer) should be: function attachplayer(player) attachElements(player, lift, 0, 0, 5) end addCommandHandler("attlift",attachplayer) function unattachplayer(player) detachElements(player,lift) end addCommandHandler("unattlift",unattachplayer)
  20. local lift = createObject(8231, -1326, -67, 55) createBlipAttachedTo(lift, 5) setElementData(lift, "vglueable", true, true) setElementDoubleSided( lift, true) function liftPermission(player,cmd,targetPlayer) tPlayer = getPlayerFromName(targetPlayer) if tPlayer then if not getElementData(tPlayer, "lift.permission") then setElementData(tPlayer, "lift.permission", true) outputChatBox("You have granted "..targetPlayer.." permission to use /Lift", player) else setElementData(tPlayer, "lift.permission", false) outputChatBox("You have removed "..targetPlayer.." permission to use /Lift", player) end end end addCommandHandler("Lper", liftPermission) addCommandHandler("Lift", function(player) if getElementData(player, "lift.permission") then liftWarpPlayer(player) else outputChatBox("#FF0000Permission: You Don't have Permission to use This Command", player, 255, 255, 255, true) end end)
  21. Y not defined here you have double X defined and you have define height but you use Height wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please Log In", true)
  22. local lift = createObject(8231, -1326, -67, 55) createBlipAttachedTo(lift, 5) setElementData(lift, "vglueable", true, true) setElementDoubleSided( lift, true) function liftPermission(player,cmd,targetPlayer) tPlayer = getPlayerFromName(targetPlayer) if tPlayer then if getElementData(player, "lift.permission") then setElementData(tPlayer, "Lift.permission", true) outputChatBox("You have granted "..targetPlayer.." permission to use /Lift", player) else setElementData(tPlayer, "Lift.permission", false) outputChatBox("You have removed "..targetPlayer.." permission to use /Lift", player) end end end addCommandHandler("Lper", liftPermission) addCommandHandler("Lift", function(player) if getElementData(player, "lift.permission") then liftWarpPlayer(player) else outputChatBox("#FF0000Permission: You Don't have Permission to use This Command", player, 255, 255, 255, true) end end)
  23. TAPL

    Bad argument

    viewtopic.php?f=91&t=46926 viewtopic.php?f=91&t=46929 viewtopic.php?f=91&t=46941 Was this code need to have 3 topics? Please in the future keep it in one topic.
  24. Example 1 tPlayer = getPlayerFromName(targetPlayer) if tPlayer then setElementData(tPlayer, "lift.permission", true) outputChatBox("You have granted "..targetPlayer.." permission to use /lift", sourcePlayer) end Example 2 function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end tPlayer = getPlayerFromNamePart(targetPlayer) if tPlayer then setElementData(tPlayer, "lift.permission", true) outputChatBox("You have granted "..getPlayerName(tPlayer).." permission to use /lift", sourcePlayer) end
  25. You need to use getPlayerFromName or https://wiki.multitheftauto.com/wiki/Get ... omNamePart
×
×
  • Create New...