Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    Winner !!!

    in server side, stunts is not defined.
  2. يطير؟ moveObject ممكن تسوي اوبجيكت و تسويه مخفي و تلغي اللمس حقه و تلصقه بالسيارة و ثم تحركة بالفنكشن
  3. قصدك تبي تعطي فلوس إلى الي قتل البيدا؟ function giveMoney(_, killer) if killer and getElementType(killer) == "player" then givePlayerMoney(killer, 200) end end addEventHandler("onPedWasted", Ped, giveMoney)
  4. وش رايك تحط ملف الماب و الميتا بالموضوع؟ و إلا الأفضل ما نرد على موضوعك؟
  5. TAPL

    SOLVED!

    function createTeamsOnStart() MainTeam = createTeam("The Professionals", 250, 50, 0) end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) function setTeam(_, account) local team = getAccountData(account, "team") if (team) then if not getTeamFromName(team) then MainTeam = createTeam(team, 250, 50, 0) end setPlayerTeam(source, MainTeam) end end addEventHandler("onPlayerLogin", root, setTeam) function save() local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) remove(source) end end addEventHandler("onPlayerQuit", root, save) function unassignTeam() if getPlayerTeam(source) then setPlayerTeam(source, nil) remove(source) end end addEventHandler("onPlayerLogout", root, unassignTeam) function remove(source) if (getPlayerTeam(source) == MainTeam) then if (countPlayersInTeam(MainTeam) == 0) then destroyElement(MainTeam) end end end
  6. Where is the time argument of the function moveObject? Also you should check if the hit element was player using the function getElementType.
  7. TAPL

    Delete

    All the replies you got, and finally you saying that there are no answer?
  8. TAPL

    Gun shop help

    You're welcome.
  9. TAPL

    Gun shop help

    Yes.
  10. TAPL

    Gun shop help

    setAccountData ( getPlayerAccount ( source ), "ownSilenced" ) bool setAccountData ( account theAccount, string key, string value ) You can see what is wrong? This function require 3 argument, but you have only two.
  11. TAPL

    Gun shop help

    bool setAccountData ( account theAccount, string key, string value )
  12. عندك مود ثاني و اتوقع يكون مود بلاي يرجع لك الكاميرا عادية
  13. انا قد سويت كذا وضبطت بس يوم اطلع وادخل ما تجي سودا,, لانك يمكن سويته سيرفر؟
  14. TAPL

    SOLVED!

    @Mr.Pres[T]ege, creating infinite timer each time a player login? That's probably will crash/lag the server after lots of logins. Well now one time it really destroyed my team but sometimes not. But it doesnt create it again... The script won't do a thing by itself. EDIT: function createTeamsOnStart() MainTeam = createTeam("The Professionals", 250, 50, 0) end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) function setTeam(_, account) local team = getAccountData(account, "team") if (team) then if not getTeamFromName(team) then MainTeam = createTeam(team, 250, 50, 0) end setPlayerTeam(source, MainTeam) end end addEventHandler("onPlayerLogin", root, setTeam) function save() local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) remove() end end addEventHandler("onPlayerQuit", root, save) function unassignTeam() if getPlayerTeam(source) then setPlayerTeam(source, nil) remove() end end addEventHandler("onPlayerLogout", root, unassignTeam) function remove() if (getPlayerTeam(source) == MainTeam) then if (countPlayersInTeam(MainTeam) == 0) then destroyElement(MainTeam) end end end
  15. TAPL

    Delete

    Exactly, if people run these programs they will have high ping. Maybe if player ping 150 , if run programs will maybe have 180 , 200 not high ping this random numbers Then there's no problem.
  16. your welcome (( local v,y = guiGetPosition(guiElement,true) local v = 400 local y = 100 Label = guiCreateLabel(v,y,100,100,"Test",false) function Move() guiSetPosition(Label,v,y,false) y = y +1 v = v -1 end addEventHandler("onClientGUIClick",getRootElement(),Move) ))
  17. TAPL

    destroy blip

    function playerQuit() local blip = getBlipAttachedTo(source) if blip then destroyElement(blip) end end addEventHandler("onPlayerQuit", root, playerQuit) function getBlipAttachedTo( thePlayer ) local blips = getElementsByType( "blip" ) for k, theBlip in ipairs( blips ) do if getElementAttachedTo( theBlip ) == thePlayer then return theBlip end end return false end
  18. TAPL

    Delete

    Exactly, if people run these programs they will have high ping.
  19. ينفع mta يقبل ملف ped.ifp المعدل بس في المسار gta san andreas/anim/ped.ifp وتحط الملف المعدل شرح تركيب الملف في الام تي اي شوف الموضوع كامل من الصفحه الاولى الى الثالثة viewtopic.php?f=105&t=52774 هو يقصد ما تقدر تركب الحركات في السيرفر عن طريق سكربت يعني لكل اللاعبين الي يدخلون السيرفر
  20. I don't know C++ but, is there some sort of thing i can do, so it calls another resource, and if the other resource dosn't return, it will stop the stolen resource? lol, i know that is kinda hard to understand. What will stop who steals from editing the code and make it work without the other resource?
  21. I am not sure, but i think you maybe need to enable the argument wordBreak.
  22. طيب كلم mta team ترجعه وفيه طريقة غير الفنكشن ذا يعني تستبدل ملف ped.ifp بدون الفنكشن الطريقة انكـ ped.ifp المعدل بالمسار GTA.San.Andreas\anim ووافق على الاستبدال واذا تبي تحطه ب mta sa اقرا الموضوع كامل viewtopic.php?f=105&t=52774 من الصفحه الاولى والثانية والثالثة أكلمهم يرجعونه؟ خخخخخخخخخخخ طيب ما هو هم كانو مسوينه بس بعدين الغوه بسبب المشاكل الي فيه !و لما يلقون حل للمشاكل بيرجعونه مدري ليه في عندك استهبال او نوع من الغباء او مدري ايش اسميه
  23. TAPL

    SOLVED!

    Remove local in line 2.
×
×
  • Create New...