Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. -- Client Side -- function fire() setPedOnFire(localPlayer,true) setElementHealth(localPlayer,Here-Must-Be-Number) -- only number no bool. end function fireme() local stimer = setTimer(fire,1000,0) end function unfire() if isTimer ( stimer ) then killTimer ( stimer ) end end addCommandHandler("fireme",fireme) addCommandHandler("unfireme",unfire)
  2. Wiki example. function unassignTeam ( source, commandName ) local theTeam = getPlayerTeam ( source ) -- Check if the player is on a team if theTeam then -- this player is on a team, so we can remove them from it setPlayerTeam ( source, nil ) -- remove the player from the current team end end addCommandHandler ( "takeawaymyteam", unassignTeam )
  3. That's depend on how you going to use the way, if you about create script for players allows them to change their account name you can simply ask them to enter their current password and with getAccount you can make sure that the password is correct and this is the end, you have the password.
  4. stealth kill = kill with knife,
  5. create new account and copy all account datas, delete the old account.
  6. Post what you tried.
  7. معالج المستقبل بعد شهر ولا شهرين ^
  8. Illimited? ._. هذا بأي لغة + E4 مافيه اي معالج انتل زيون اسمه + بأقل من نص السعر ذا الي حاطه 225 دولار ممكن يجيب خادم برامات 32 - 48 جيجا بالراحة + هاردسك 4000 جيجا و فوق
  9. If i understand correctly, this is what you looking for: -- Client Side -- addCommandHandler("kinfe", function() if not kinfeKill then outputChatBox("#00ff0Server: Knife Godmode On!", 0, 255, 0, true) else outputChatBox("#00ff00Server: Knife Godmode Off!", 255, 0, 0, true) end kinfeKill = not kinfeKill end) function stopKnifeKill() if kinfeKill then cancelEvent() end end addEventHandler("onClientPlayerStealthKill", localPlayer, stopKnifeKill)
  10. setPlayerTeam(source, getTeamFromName(pTeam))
  11. createMarker createBlipAttachedTo setTimer givePlayerMoney math.random isTimer killTimer Event: "onMarkerHit" Event: "onMarkerLeave"
  12. This is not magic, you must get the team element from the team name you have saved already and then use setPlayerTeam to set the player to the team.
  13. TAPL

    scoreboard

    You will never create anything better than MTA default scoreboard.
  14. I can't see where is getTeamFromName and setPlayerTeam.
  15. https://wiki.multitheftauto.com/wiki/Resource:DxDraw3DText
  16. vv +
  17. -- Server Side -- addEventHandler("onPlayerLogin", root, function(_, acc) if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("Console")) then setElementData(source, "Console", true) setElementModel(source, 33) end end) -- Client Side -- addEventHandler("onClientPlayerDamage", localPlayer, function(attacker) if attacker and attacker ~= source then if getElementModel(source) == 33 and getElementData(source, "Console") then cancelEvent() end end end)
  18. https://wiki.multitheftauto.com/wiki/Scripting_Introduction createRadarArea And wrong section.
  19. https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897
  20. TAPL

    [Help]GhostMode

    addCommandHandler("ghost", function(player) local veh = getPedOccupiedVehicle(player) local stat = getElementCollisionsEnabled(veh or player) setElementCollisionsEnabled(veh or player, not stat) outputChatBox("Server: Ghostmod: "..(stat and "on" or "off"), player, 0, 255, 0 ) end)
  21. https://wiki.multitheftauto.com/wiki/Introduction_to_Scripting_the_GUI#Detecting_the_click
  22. ما فهمت طيب ليه تعطي التيم اسلحة من البداية ._.
  23. هو يبي تصويت المابات يشتغل لما كل اللاعبين يموتون ._.
  24. شوف مثلاً الأفنت هذا https://wiki.multitheftauto.com/wiki/OnPlayerDamage لما تدخل على الرابط بتشوف فوق كلام بالبرتقالي Serverside event يعني الأفنت سيرفر فقط أو مثلاً الفنكشن هذا https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup مكتوب فوق Server-only function يعني سيرفر فقط
  25. ما عندي خبره بالريس يفيدونك الي يلعبون ريس
×
×
  • Create New...