Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. manve1

    Script Help

    function Start ( player) setElementDimension ( player, 300 ) setElementInterior ( player, 6, 768.20910644531, -36.314926147461, 1000.6864624023 ) giveWeapon ( player, 24, 1000000000 ) end function EventStart ( player ) local accountname = getAccountName ( getPlayerAccount ( player ) ) if (isObjectInACLGroup ( "user.".. accountname, aclGetGroup ( "Admin" ) )) then outputChatBox ( "#00ff00 [CBUG-GAME] #00FFFFU Event has been created write /participar to participate", root, 255, 0, 0, true ) else outputChatBox ( "#00ff00 [CBUG-GAME] #00FFFFU You aren't Admin", player, 255, 0, 0, true ) end end addCommandHandler ( "evento", EventStart ) function funcoesEvento ( player ) if(getPedOccupiedVehicle ( player))then outputChatBox("#FFF000[EVENTO]#FFFFFF Leave your vehicle to enter the event",player,255,255,255,true) else local x,y,z = getElementPosition ( player ) setElementModel ( player, 0 ) takeAllWeapons ( player ) setElementDimension ( player, 300 ) setPedArmor ( player, 100 ) setElementHealth ( player, 100 ) setElementInterior ( player, 17, 486.63619995117, -13.5563792228699, 1000.6796875 ) outputChatBox("[CBUG-GAME] Event Started.",player,0,255,255) addEventHandler ( "onPlayerSpawn", root, aff ) addEventHandler ( "onPlayerSpawn", player, onSpawn ) setTimer ( Start, 2000, 2000, player ) end end addCommandHandler ( "participar", funcoesEvento ) function onSpawn ( player ) setElementModel ( player, 0 ) takeAllWeapons ( source ) setElementInterior ( source, 6, 768.20910644531, -36.314926147461, 1000.6864624023 ) setElementModel ( source, 0 ) setElementDimension ( source, 300 ) setPedArmor ( source, 100 ) setElementHealth ( source, 569 ) giveWeapon ( source, 24, 1000000000 ) end function aff ( ) cancelEvent() end addEventHandler ( "onPlayerSpawn", root, aff )
  2. can you show us your meta file?
  3. not in the resources folder ..... and every server has an ACL.xml But, by you talking about ACL, i take that this didn't work, so try: ---------------do not change or touch this---------- Names={} Tags={} Colors={} ACL={} -------------------------------------------------------------- ---------------------------Autoteam clan tag--------------------------------------- local names ={"Be The Best"} local tags ={"%[CP%]"} local colors ={"#00FF00"} local acls={"Admin"} -------- load------------ function loadTeams() for i,name in pairs(names) do Names[i]=name end for i,tag in pairs(tags) do Tags[i]=tag end for i,color in pairs(colors) do Colors[i] = color end for i,acl in pairs(acls) do ACL[i] = acl end end addEventHandler("onResourceStart",getRootElement(),loadTeams) --------------------------------------------------- ----- move on start------------------ function moveOnStart() for i,player in pairs(getElementsByType("player")) do check(player) end end addEventHandler("onResourceStart",getRootElement(),moveOnStart) ------------------------------------------------------------------------- -----------check---------------------------- function check (player) setPlayerTeam(player,nil) for i,tag in pairs(tags) do if string.find(getPlayerName(player),tag) then local account=getPlayerAccount(player) if ACL[i]~="none" and not isObjectInACLGroup ( "user." ..getAccountName(account) , aclGetGroup ( ACL[i] ) ) then return end local name = Names[i] local color = Colors[i] if not getTeamFromName(name) then createTeam(name,getColorFromString(color)) end local team = getTeamFromName(name) setPlayerTeam(player,team) end end end -------------------------------- ----------remove Empty Team ---------- function remove() for t,teams in pairs(names) do local team = getTeamFromName(teams) if team then if countPlayersInTeam ( team )==0 then destroyElement(team) end end end end ----------------------------------------------------- -------NickChange------------- function nick(old,new) setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerChangeNick",getRootElement(),nick) --------------------------------------------- -------Join-------------------------------- function join() setTimer(check,4000,1,source) end addEventHandler("onPlayerJoin",getRootElement(),join) ------------------------------- ---------Quit--------------------- function quit(player) setTimer(remove,1000,1) end addEventHandler("onPlayerQuit",getRootElement(),quit) ------------------------------------ ---------Login--------------------- function login() setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerLogin",getRootElement(),login) ------------------------------------ ---------Logout--------------------- function logout() setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerLogout",getRootElement(),logout) ------------------------------------ ----------blip-------------- function blip(player) local team = getPlayerTeam(player) if team then for v,blip in pairs(getAttachedElements(player)) do if getElementType(blip)=="blip" then local r,g,b =getTeamColor(team) setBlipColor(blip,r,g,b,255) end end end end function timer() setTimer(blip,3000,1,source) end addEventHandler("onPlayerSpawn",getRootElement(),timer)
  4. ---------------do not change or touch this---------- Names={} Tags={} Colors={} ACL={} -------------------------------------------------------------- ---------------------------Autoteam clan tag--------------------------------------- local names ={"Be The Best"} local tags ={"%[CP%]"} local colors ={"#00FF00"} local acls={"[b~T~b]WoOrd$"} -- Are you sure a group in ACL exists named like that? -------- load------------ function loadTeams() for i,name in pairs(names) do Names[i]=name end for i,tag in pairs(tags) do Tags[i]=tag end for i,color in pairs(colors) do Colors[i] = color end for i,acl in pairs(acls) do ACL[i] = acl end end addEventHandler("onResourceStart",getRootElement(),loadTeams) --------------------------------------------------- ----- move on start------------------ function moveOnStart() for i,player in pairs(getElementsByType("player")) do check(player) end end addEventHandler("onResourceStart",getRootElement(),moveOnStart) ------------------------------------------------------------------------- -----------check---------------------------- function check (player) setPlayerTeam(player,nil) for i,tag in pairs(tags) do if string.find(getPlayerName(player),tag) then local account=getPlayerAccount(player) if ACL[i]~="none" and not isObjectInACLGroup ( "user." ..getAccountName(account) , aclGetGroup ( ACL[i] ) ) then return end local name = Names[i] local color = Colors[i] if not getTeamFromName(name) then createTeam(name,getColorFromString(color)) end local team = getTeamFromName(name) setPlayerTeam(player,team) end end end -------------------------------- ----------remove Empty Team ---------- function remove() for t,teams in pairs(names) do local team = getTeamFromName(teams) if team then if countPlayersInTeam ( team )==0 then destroyElement(team) end end end end ----------------------------------------------------- -------NickChange------------- function nick(old,new) setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerChangeNick",getRootElement(),nick) --------------------------------------------- -------Join-------------------------------- function join() setTimer(check,4000,1,source) end addEventHandler("onPlayerJoin",getRootElement(),join) ------------------------------- ---------Quit--------------------- function quit(player) setTimer(remove,1000,1) end addEventHandler("onPlayerQuit",getRootElement(),quit) ------------------------------------ ---------Login--------------------- function login() setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerLogin",getRootElement(),login) ------------------------------------ ---------Logout--------------------- function logout() setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerLogout",getRootElement(),logout) ------------------------------------ ----------blip-------------- function blip(player) local team = getPlayerTeam(player) if team then for v,blip in pairs(getAttachedElements(player)) do if getElementType(blip)=="blip" then local r,g,b =getTeamColor(team) setBlipColor(blip,r,g,b,255) end end end end function timer() setTimer(blip,3000,1,source) end addEventHandler("onPlayerSpawn",getRootElement(),timer) if this doesn't work, post whole ACL (using [ code] [/ code] tags)
  5. was it that hard to look on google something on these lines: "how to fully start multi theft auto server using putty"? anyway, here it is: https://forum.multitheftauto.com/viewtopic.php?f=140&t=37410
  6. If you make the picture using Dx functions, you could make math so that every render it moves a tiny bit, and after 5 sec you can see the difference, or if you use GUI functions, then you could set a new position using a 5second timer or use interpolateBetween to move GUI or Dx
  7. manve1

    Rims Change?

    Use a program called: Med v0.32
  8. There is always the wiki
  9. Because it say's importing some of these languages, it doesn't mean every single finished one.
  10. Start the server with a different command, look it up in google, as it is the same with other games
  11. Well, what would the point be in letting people to translate the install and other stuff without allowance to test it out or a thought of even implementing it in (basically just a waste of peoples time for translation)? I think they will add every single language in.
  12. By any chance those scripts are from vG? or anything similar?
  13. nesvarbu kokia versija, svarbu kad ne 1.3.5+, nes ijeinant i serveri, paklaus ar nori atnaujint MTA, tada atnaujink tokiu budu ir paziurek.
  14. Abudu errorai susije su internetu. CD15 = Disconnected: disconnected from the server CD09 = Connection with the server was lost daugiau erroru gali susirast: cia O seip pabandyk persirasyt MTA, arba isirasyt senesne versija (katra veike), ir tada eiti i serveri ir atnaujinti tokiu budu.
  15. Do you mean like taking an image every frame and then after a while joining each frame together to make a short video?
  16. As ziuriu kad ne vienas klausiau apie mokesti, bet vistiek atsakymo nera; viewtopic.php?f=91&t=73149
  17. Daugiau informacijos seip reiketu ir cia, o ne tik per skype. nes paskui buna: "Atsiprasau, bet negaliu sumoket man 11 metu"
  18. manve1

    DayZ

    No they are not, why would anyone have a mind of giving a free code for a VIP system when they can sell it and earn some cash?
  19. There is a script like this in community: https://community.multitheftauto.com/ind ... ls&id=8249
  20. Start making it bit by bit, we are here to help you with bugs. We of course are not going to make a resource or copy it from a server, but best source to start from would be the wiki
  21. Well, I would do it that way. and the sound should be the horn as you mentioned that toggleControl disables sirens + horn
  22. use: toggleControl() and for the horn: get when the horn key is pressed and play a sound until the key is released.
  23. thats why you use: getPedControlState()
×
×
  • Create New...