Jump to content

Perfect

Members
  • Posts

    563
  • Joined

  • Last visited

Everything posted by Perfect

  1. Perfect

    hi guyz

    Learning Sites:- https://wiki.multitheftauto.com/wiki/Sc ... troduction ( Here You can Know All mta Functions) https://community.multitheftauto.com/ ( Here You can Find Scripts ) viewtopic.php?f=91&t=31891 ( Here You can Find Scripting Tools ) viewforum.php?f=148 ( There You can Find many Helpful Lua Tutorials ) viewforum.php?f=91 ( and Here you can ask for Help if you have any Problem With scripting ) and If you didn't understand any Function, You can Freely Ask Here.
  2. My Suggestion is Simple. We mostly mistake In replying someone in Forum and after sometime If we knew, we correct it and it say's "Post Last edited by User. 1 time". But We can't see, User's Previous Post (what he edited/corrected). So it'l be helpful to add something to know User Precious Edited Posts. I am kindly Requesting Multi Theft Auto Team to add this. Edit: Can Someone Move it to Right Section Please.
  3. oh, Then i think its really needed and surely it'l Helpful.
  4. What is the Problem ?
  5. Maybe, the Problem is in "custom definition". Can you post your code here Please ?
  6. You can Use:- SlothBot:- https://community.multitheftauto.com/ind ... ils&id=672 and can you please Brief clearly about second one ? what you mean by this "and that I can easily clear it again so I spawn at the normal spawnpoints again" ?
  7. What Debugscript Says ? and did you put it client side or server ?
  8. and what you think is this? maxrange = 20 I think he is talking about this post.
  9. Sounds Awesome, i will test soon (when i get mta back). Recommended.
  10. Perfect

    [HELP]Mta server

    Can you Describe/Brief more and clearly ? what you mean by plugin and Job is the name of script which is not working ? if its name of the script then post your script code here using [lua]
  11. Perfect

    Opened buildings

    Bump!, that will not work because functions name is stopSprayDamage and in Event handler its name is stopMinigunDamage. change stopMinigunDamage to stopSprayDamage or stop SprayDamage to stopMinigunDamage.
  12. Maybe you can use this script for gas thingy https://community.multitheftauto.com/ind ... ils&id=190
  13. Try this: local allowedGroups = {"Admin", "Moderator"} addEventHandler("onPlayerDamage", getRootElement(), function(attacker, weapon, bodypart, loss) if getElementData(source, "staff.active") == 1 then if loss then setElementHealth(source,200) end end end ) addEventHandler("onPlayerQuit", getRootElement(), function() removeElementData(source, "staff.active") removeElementData(source, "staff.skin") removeElementData(source, "staff.tagcolor.red") removeElementData(source, "staff.tagcolor.green") removeElementData(source, "staff.tagcolor.blue") removeElementData(source, "Staff") end ) addCommandHandler("staff", function(player) local data = getElementData(player, "staff.active") local check = 0 local r = getElementData(player, "staff.tagcolor.red") local g = getElementData(player, "staff.tagcolor.green") local b = getElementData(player, "staff.tagcolor.blue") for i, v in ipairs(allowedGroups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(v)) then if data == 0 or data == false then red, green, blue = getPlayerNametagColor(player) setElementData(player, "staff.skin", getElementModel(player)) setElementData(player, "staff.tagcolor.red", red) setElementData(player, "staff.tagcolor.green", green) setElementData(player, "staff.tagcolor.blue", blue) setElementModel(player, 217) setPlayerTeam ( player, getTeamFromName ( "Staff" ) ) setPlayerNametagColor(player, 150, 155, 255) outputChatBox("#9900FF[sTAFF] #FFFFFFYou have enabled staffmode! Don't abuse your godlike powers.", player, 255, 255, 255, true) setElementData(player, "staff.active", 1) return elseif data == 1 then setElementModel(player, getElementData(player, "staff.skin")) setPlayerNametagColor(player, r, g, b) outputChatBox("#9900FF[sTAFF] #FFFFFFYou have disabled staffmode!", player, 255, 255, 255, true) setElementData(player, "staff.active", 0) return end elseif isGuestAccount(getPlayerAccount(player)) and data ~= 0 then outputChatBox("#9900FF[sTAFF] #FFFFFFYou need to be logged in to perform this command!", player, 255, 255, 255, true) return elseif not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(v)) and #allowedGroups == i then outputChatBox("#9900FF[sTAFF] #FFFFFFYou lack the rights to use this command!", player, 255, 255, 255, true) end elseif ( getPlayerTeam ( player ) == "Staff" ) then setPlayerTeam ( player, nil ) end end end )
  14. Lol, you doesn't know what is lua, Just learn scripting here https://wiki.multitheftauto.com/wiki/Main_Page and if you still have problem then go to your language section and ask help there because we can't understand your grammar.
  15. Perfect

    GATE!

    You can use https://wiki.multitheftauto.com/wiki/Main_Page or pay someone or Search in https://community.multitheftauto.com/index.php?p=main or search Topics
  16. I'm wondering what for this code? if (getElementType(player) == "player") then Maybe you was think that a ped or vehicle or even object will type the command? Lol bit funny but
  17. Perfect

    Car gear sound

    In your script, once you get to a certain velocity, play the sound? Exactly.
  18. can you please upload your Script/Resource in Community. Here:- https://community.multitheftauto.com/ Because there it can attract more Users.
  19. Perfect

    Please help me

    Maybe he is searching for server which he played first time. because its happend me when i played mta first time . ok go to Server Browser then Recently Played. and ah there is your server!!!
  20. Perfect

    Help please.

    If he didn't try to make scripts then how he will learn ?
  21. Perfect

    Help please.

    if you're beginner then you should'nt directly go to gamemode thingy. First make a simple script. then test if its working or not, if not then ask here. if yes then make another script with using different function and see if that works or not. and so on... you can check how function works by going to local server and starting runcode resource. You can get all things about mta functions here:- https://wiki.multitheftauto.com/wiki/Main_Page (On left side of your screen there are Pages for functions)
  22. nice tutorial i just understand something in which i was confused . Thnx
×
×
  • Create New...