Jump to content

Drakath

Members
  • Posts

    768
  • Joined

  • Last visited

Everything posted by Drakath

  1. Drakath

    Serverside

    But there is a possible way?
  2. Drakath

    Serverside

    So there is no way to do something about it?
  3. Drakath

    Serverside

    I downloaded it from some kind of website. (I searched in google)
  4. Drakath

    Serverside

    How do I make it if script is compiled?
  5. Drakath

    Serverside

    Any way to fix it?
  6. Drakath

    Serverside

    Hello, I have a compiled resource, but when I'm trying to use it I get this error: ERROR: Client triggered serverside event elBlip, but event is not added serverside Script is client side but if I change it to server side it doesn't work. Is there any way to fix this?
  7. Drakath

    Spawn

    So far seems like it's working. Thank you.
  8. Drakath

    Spawn

    Worked, but why does this script makes players crash when reconnecting?
  9. Drakath

    Spawn

    Now everyone spawn as CJ. Script: local spawnX = 213.81648254395 local spawnY = 1870.0822753906 local spawnZ = 13.140625 function spawnOnJoin() spawnPlayer(player, 213.81648254395, 1870.0822753906, 13.140625, 0 , getElementModel(player)) fadeCamera(source, true) setCameraTarget(source, source) giveWeapon(source, joinWeapon, joinAmmo) end function spawnOnDead(ammo, killer, weapon, bodypart) setTimer(spawnPlayer, 3000, 1, source, 213.81648254395, 1870.0822753906, 13.140625, 0, getElementModel(player)) setCameraTarget(source, source) end addEventHandler("onPlayerJoin", getRootElement(), spawnOnJoin) addEventHandler("onPlayerWasted", getRootElement(), spawnOnDead)
  10. Drakath

    Spawn

    Where do I put: getElementModel ? And why is my server crashing?
  11. Drakath

    Spawn

    I just want to know why the script makes my server crash and is there any way to make it don't spawn the skin...
  12. Drakath

    Spawn

    I'm asking if there is way to don't spawn the skin not to change. And your script doesn't work every player spawned at one place and lost all weapons...
  13. Drakath

    Spawn

    Thanks, I did not noticed it. Is there anything else wrong here because I'm getting crashes and is there anyway to make it don't spawn any skin?
  14. Drakath

    Spawn

    Why doesn't this script spawn people in the place where it should? Note: It should spawn people after death. Script: -- XYZ coördinates local spawnX = 213.81648254395 local spawnY = 1870.0822753906 local spawnZ = 13.140625 function spawnOnJoin() spawnPlayer(source, 213.81648254395, 1870.0822753906, 13.140625, 0 , 285) fadeCamera(source, true) setCameraTarget(source, source) giveWeapon(source, joinWeapon, joinAmmo) end function spawnOnDead(ammo, killer, weapon, bodypart) end setTimer(spawnPlayer, 3000, 1, source, 213.81648254395, 1870.0822753906, 13.140625, 0, 285) setCameraTarget(source, source) end addEventHandler("onPlayerJoin", getRootElement(), spawnOnJoin) addEventHandler("onPlayerWasted", getRootElement(), spawnOnDead)
  15. Drakath

    Teams

    Thanks, it worked
  16. Drakath

    Teams

    How do I fix it?
  17. Drakath

    Teams

    I get this warning: WARNING: setteam\dteam.lua:28: Bad argument @ 'setPlayerTeam' And still same problem team set when you die or connect but not log in. If you log in you are removed. Is there anyway to make player get into the team after log in? Event handler: onPlayerLogin didn't work.
  18. Drakath

    Teams

    I got some error: ERROR: setteam\dteam.lua:26: stack overflow function createAllTeamOnStart ( ) AllTeam = createTeam ( "All", 0, 255, 0 ) for index, player in ipairs ( getElementsByType ( "player" ) ) do if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Everyone" ) ) then team = getTeamFromName("All") setPlayerTeam ( player, team ) end end end addEventHandler ( "onResourceStart", resourceRoot, createAllTeamOnStart ) function setAllTeam ( ) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Everyone" ) ) then team = getTeamFromName("All") setPlayerTeam ( source, team ) end end addEventHandler ( "onPlayerLogin", getRootElement(), setAllTeam ) addEventHandler ( "onPlayerJoin", getRootElement(), setAllTeam ) addEventHandler ( "onPlayerSpawn", getRootElement(), setAllTeam ) addEventHandler ( "onClientLoginLoaded", getRootElement(), setAllTeam ) addEventHandler ( "onRequestLogin", getRootElement(), setAllTeam ) addEventHandler ( "onRequestAutologin", getRootElement(), setAllTeam ) function setPlayerTeam() setPlayerTeam ( player, team ) setTimer ( function() setPlayerTeam ( player, team ) end, 5000, 1 ) end setPlayerTeam()
  19. Drakath

    Teams

    I tried to reconnect and when I did I wasn't in team.
  20. Drakath

    Teams

    Still same problem...
  21. Drakath

    Teams

    Still same problem... When player connect he is in team, but when he log in he is removed from team.
  22. Drakath

    Teams

    I have some kind of bug or error, here's the deal: I made a script so every player should join a team "All" but when player log ins, he doesn't join the team. Did I make mistake in script or is it something else? Script: function createAllTeamOnStart () AllTeam = createTeam ( "All", 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot, createAllTeamOnStart) function setAllTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then setPlayerTeam(source, AllTeam) end end addEventHandler("onPlayerLogin",getRootElement(),setAllTeam) addEventHandler("onPlayerJoin",getRootElement(),setAllTeam) addEventHandler("onPlayerSpawn",getRootElement(),setAllTeam) addEventHandler("onClientLoginLoaded",getRootElement(),setAllTeam) addEventHandler("onResourceStart",getRootElement(),setAllTeam) addEventHandler("onRequestLogin",getRootElement(),setAllTeam) addEventHandler("onRequestAutologin",getRootElement(),setAllTeam)
  23. Drakath

    Restriction

    I need it to be by usernames because I will add garages to the houses so only players who owns a garage will be able to open it.
×
×
  • Create New...