denilson Posted November 12, 2013 Share Posted November 12, 2013 Alguien me podria decir como privatizar spawns para clanes Link to comment
Daniel1zD Posted November 22, 2013 Share Posted November 22, 2013 TeamClan = createTeam("Team",180,0,0) ---- Nombre del clan addEventHandler("onPlayerLogin",root,function(_,spawn) fadeCamera(source,true) setCameraTarget(source) local accName = getAccountName(spawn) if isObjectInACLGroup("user."..accName, aclGetGroup("Clan")) then ---- ACL del Clan local posX = getAccountData(spawn,"PosX") local posY = getAccountData(spawn,"PosY") local posZ = getAccountData(spawn,"PosZ") local Skin = getAccountData(spawn,"Skin") local dim = getAccountData(spawn,"Dimension") local int = getAccountData(spawn,"Int") if not posX and not posY and not posZ and not Skin and not dim and not int then spawnPlayer(source,247.00835, 1859.81372, 14.08401,0,282,0,0,TeamClan) --- Pisocion del Spawn giveWeapon(source,22,150) -------- giveWeapon(source,31,150) --------- estas son las armas giveWeapon(source,34,150) ------------ giveWeapon(source,44,1) ---------- end end end ) Espero que te sirva eso Link to comment
Renkon Posted November 22, 2013 Share Posted November 22, 2013 TeamClan = createTeam("Team",180,0,0) ---- Nombre del clan addEventHandler("onPlayerLogin",root,function(_,spawn) fadeCamera(source,true) setCameraTarget(source) local accName = getAccountName(spawn) if isObjectInACLGroup("user."..accName, aclGetGroup("Clan")) then ---- ACL del Clan local posX = getAccountData(spawn,"PosX") local posY = getAccountData(spawn,"PosY") local posZ = getAccountData(spawn,"PosZ") local Skin = getAccountData(spawn,"Skin") local dim = getAccountData(spawn,"Dimension") local int = getAccountData(spawn,"Int") if not posX and not posY and not posZ and not Skin and not dim and not int then spawnPlayer(source,247.00835, 1859.81372, 14.08401,0,282,0,0,TeamClan) --- Pisocion del Spawn giveWeapon(source,22,150) -------- giveWeapon(source,31,150) --------- estas son las armas giveWeapon(source,34,150) ------------ giveWeapon(source,44,1) ---------- end end end ) Si vas a copiar y pegar hazlo bien, porque no entiendo, usas getAccountData para despues no hacer nada, LOLAZO. Usa isObjectInACLGroup o alguna función exportada de algun sistema de gangs, o getAccountData para saber el getPlayerTeam que uso en la desconexión. Mucho más no se me ocurre Espero que te sirva eso Link to comment
Recommended Posts