Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. Try this. Levels = { {"Level 0", 0}, {"Level 1", 100}, {"Level 2", 200}, {"Level 3", 300}, {"Level 4", 400}, {"Level 5", 500}, {"Level 6", 600}, {"Level 7", 700}, {"Level 8", 800}, {"Level 9", 900}, {"Level 10", 1000} } addEventHandler("onClientRender", root, function() local skill = getPedStat(localPlayer, 69) for i, o in ipairs(Levels) do if skill >= o[2] then Level = o[1] end end guiSetText(GUIEditor.label[3], Level) end) Also it would be better to use timer instead of onClientRender.
  2. getAccounts ?
  3. Anything in the chat when you did /chatbubbles?
  4. guiCreateWindow guiCreateButton guiSetVisible showCursor onClientGUIClick onClientMarkerHit
  5. ما اشوف ان في سبب لأغلاق الموضوع
  6. local aTable3 = { ['Jarvis, how many players are online?'] = {numPlayers.."/"..maxPlayers}, } But you need to update the table.
  7. https://community.multitheftauto.com/index.php?p=resources&s=details&id=7668 https://forum.multitheftauto.com/viewtopic.php?f=108&t=62995&p=599302 مسجل كم حساب علشان تطلب ذا الطلب؟
  8. You're welcome.
  9. TAPL

    onPlayerQuit

    At line 4 you need the account name not the account so you have to use getAccountName. Also at line 9, getAccountData require account not player element. Also at line 12, you need string for Quit (if it wasn't a defined variable). Also at line 26, newnick is not defined anywhere.
  10. You need these function: aclGroupList isObjectInACLGroup aclGroupGetName
  11. لما تسوي سباون للاعب لازم تستخدم هذا الكود معه setCameraTarget
  12. TAPL

    route

    At server side from line 39 till 67 move it to client side with some modification like changing the event to client side and adding some IF statement for the element data and/or the team and such thing.
  13. هذا كله خطأ aclSetRight(Admin, command.execute, false) aclSetRight(Admin, command.setpassword, false) aclSetRight(Admin, command.sethealth, false) aclSetRight(Admin, command.setarmour, false) aclSetRight(Admin, command.spectate, false) aclSetRight(Admin, command.delete, false) aclSetRight(Admin, command.shutdown, false) aclSetRight(Admin, command.setgroup, false) aclSetRight(SuperModerator, command.execute, false) aclSetRight(SuperModerator, command.setpassword, false) aclSetRight(SuperModerator, command.sethealth, false) aclSetRight(SuperModerator, command.setarmour, false) aclSetRight(SuperModerator, command.spectate, false) aclSetRight(SuperModerator, command.delete, false) aclSetRight(SuperModerator, command.shutdown, false) aclSetRight(Moderator, command.execute, false) aclSetRight(Moderator, command.setpassword, false) aclSetRight(Moderator, command.sethealth, false) aclSetRight(Moderator, command.setarmour, false) aclSetRight(Moderator, command.spectate, false) aclSetRight(Moderator, command.delete, false) aclSetRight(Moderator, command.shutdown, false) restartResource(admin) stopResource(runcode) deleteResource(runcode) stopResource(webadmin) deleteResource(webadmin) لازم تستخدم هذا عشان تجيب الأسل aclGet + string لازم تستخدم وهذا عشان تجيب المود من اسمه getResourceFromName
  14. ^هه الكود طويل عريض و فيه بعض الفنكشات بعد ما كتبتهم مثل فنكشن التحقق من نوع الألمنت و المنت داتا او تيبل و ممكن تريقر خلي البرمجة لأهلها حتى بمقابل يمكن ما اسويه لك -.- ما احب اسوي اكواد طويله هالأيام
  15. TAPL

    water check

    You're welcome.
  16. حدد لي الفنكشن الي تبي له شرح
  17. TAPL

    water check

    isElementInWater ?
  18. getPlayerWantedLevel getPlayerTeam getTeamName onPlayerTarget onPlayerDamage getElementPosition getDistanceBetweenPoints2D setControlState setPedRotation showCursor setPedWeaponSlot toggleControl warpPedIntoVehicle removePedFromVehicle findRotation onClientRender onVehicleEnter onVehicleExit onPlayerWasted createMarker givePlayerMoney setElementPosition destroyElement onMarkerHit
  19. ايش هذا حتى كوبي بست ما تعرف تسوي
  20. TAPL

    طلب

    setTimer outputChatBox math.random
  21. That's because you overwrite it at line 20 and it's seems that the vehElementsret is nil.
  22. TAPL

    onPlayerQuit

    Yes it's possible, but don't forget to pass the quit reason too maybe some script need it.
  23. @DuH, your code should work, however this is better way to do it: Reasons = { ["Unknown"] = "Unknown", ["Quit"] = "Vontade Pr?pria", ["Kicked"] = "Kickado", ["Banned"] = "Banido", ["Timed Out"] = "Sem Conex?o", ["Bad Connection"] = "Bad Connection" } addEventHandler("onClientPlayerQuit", root, function(reason) outputChatBox("#ff0000*[iNFO] #ffffff"..getPlayerName(source).." #ffffffSaiu do Servidor #ff0000["..Reasons[reason].."]", 0, 159, 255, true) end)
  24. TAPL

    Fast Fast Mta

×
×
  • Create New...