Jump to content

Jullul7000

Members
  • Posts

    78
  • Joined

  • Last visited

Everything posted by Jullul7000

  1. I'm doing my best to write my own "save" system. local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) local playerAccount = getPlayerAccount(source) if not isElement(player) then return end if (playerAccount) then if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) local playerMoney = getAccountData(playerAccount, "rp.money") local playerTeam = getAccountData(playerAccount, "rp.team") local playerSkin = getAccountData(playerAccount, "rp.skin") local r, g, b = getAccountData(PlayerAccount, "rp.colorname") if(r, g, b) then setPlayerNametagColor ( source, r, g, b ) end if(playerSkin) then setPlayerSkin(source, playerSkin) end if(playerMoney) then setPlayerMoney(source, playerMoney) end if(playerTeam) then setPlayerTeam(source, playerTeam) end else outputChatBox("You must be logged in to spawn.", source, 255, 0, 0) end end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() local playerAccount = getPlayerAccount(source) if (playerAccount) then local playerTeam = getPlayerTeam (source) local playerMoney = getPlayerMoney(source) local playerSkin = getPlayerSkin(source) local r, g, b = getPlayerNametagColor (source) setAccountData(playerAccount, "rp.colorname", r, g, b) setAccountData(playerAccount, "rp.money", playerMoney) setAccountData(playerAccount, "rp.skin", playerSkin) if ( playerTeam ) then setAccountData(playerAccount, "rp.team", playerTeam) end else outputChatBox("You must be logged in to spawn.", source, 255, 0, 0) end setTimer(spawn, 1800, 1, source) end ) Error in line 30 near ,
  2. Hi MTASA Members, Is their any modshop wich can upgrade vehicle performance? Greetz Jullul7000,
  3. Is there any modshop to upgrade the performance of your car? I'm looking for one for a long time.
  4. How do I enable that players only spawn when they are finished downloading?
  5. local staff = createTeam("Staff", 126, 0, 145) local staff = createTeam("Regular", 169,169,169) addEventHandler("onPlayerLogin", root, function(_, acc) local accName = getAccountName(acc) if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then setPlayerTeam(source, staff) else if isObjectInACLGroup("user."..accName, aclGetGroup("Default")) then setPlayerTeam(source, Regular) end end
  6. Server name: Ganja Online Server IP: 77.175.191.28 We hope you join Screenshots: The server is new so idea's are always welcome!
  7. Can someone script something like this? Im in to pay for it. % XP to next lvl: Levels in scoreboard: Turfs for xp+money: Weapon shop based on levels: Deatchmatches to earn xp + money Contact me here or on skype: gushoukoens
  8. local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end )
  9. The skin of my players are changing when they die. How to fix that? We play on gamemode PLAY (No freeroam)
  10. Can someone send me a code from a WORKING player blips with teamcolor? Thanks for answer
  11. ACL Group Admin will be moven to staff team when login? How to do it? Thanks for answer
  12. why is it not working ??? everyone can use the command local allowedGroups = {"Owner", "HeadAdmin", "SuperModerator", "Moderator", "Trialstaff"} local Staff = createTeam ( "Staff", 126, 0, 145 ) function SetSkinAndTeam ( player ) setElementModel ( player, 217 ) setPlayerTeam ( player, Staff ) end addCommandHandler ( "staff", SetSkinAndTeam )
  13. How i make this only working for Staff Team? function vehiclepaint ( player, seat ) if ( seat == 0 and getPlayerTeam ( player ) ) then local r,g,b = getTeamColor ( getPlayerTeam ( player ) ) setVehicleColor ( source, r, g, b, 0, 0, 0 ) end end addEventHandler ( "onVehicleEnter",root, vehiclepaint ) addEvent ( "onPlayerPickUpRacePickup", true ) addEventHandler ( "onPlayerPickUpRacePickup", root, function ( pickupID, pickupType, vehicleModel ) if ( pickupType == "vehiclechange" and getPlayerTeam ( source ) ) then local r, g, b = getTeamColor ( getPlayerTeam ( source ) ) setVehicleColor ( getPedOccupiedVehicle ( source ), r, g, b, 0, 0, 0 ) end end ) addCommandHandler("addteam", function(source, cmd, clantag, color, ...) local name = {...} if not name[1] then outputChatBox("syntax: "..cmd.." ", source) return end local r,g,b = getColorFromString(color) if not r then outputChatBox(cmd..": invalid color code", source) return end name = table.concat(name, ' ') local config = xmlLoadFile("config.xml") -- local config = getResourceConfig("config.xml") local teamset, teamname for name,settings in next,teams do if settings.tag == clantag then teamset, teamname = settings, name break end end if teamset then local name_differs, color_differs local c = teamset.color local t = getTeamFromName(teamname) if c[1] ~= r or c[2] ~= g or c[3] ~= b then teamset.color = {r,g,b} color_differs = true if t then setTeamColor(t, r, g, b)end end if teamname ~= name then name_differs = true end if color_differs or name_differs then for k,child in next,xmlNodeGetChildren(config)do if xmlNodeGetAttribute(child, "tag") == clantag then if color_differs then xmlNodeSetAttribute(child, "color", string.format("#%02X%02X%02X", r, g, b)) end if name_differs then xmlNodeSetAttribute(child, "name", name) end break end end end end end )
  14. What script i have to use for: i Join (NLBlueGamer) And will go automatic to staff team
  15. Is there any resource for a special mod shop with: neon engine lower car water drive Thanks,
  16. Is it possible that the nickname always be the same as the player login name ? Is there any resource ?
  17. When my players die on my server. They will get a CJ skin. Why? Can i fix that with a script or something? Another question: How can i set a team skin? When someone is in team Military that they have a military skin?
  18. Is their any script for saving weapon stats?
  19. How can i add ranks and scoreboard to your gang system?
  20. No ranks in that + no scoreboard with tabs
  21. Anyone know a clan system with in scoreboard Group+Grouprank?
×
×
  • Create New...