StanMarsh Posted July 14, 2013 Share Posted July 14, 2013 Hola, Se puede Spawnear un player por team? ejemplo soy del team Admin y spawneo en la base admin. Link to comment
Arsilex Posted July 14, 2013 Share Posted July 14, 2013 claro solo tienes que sacar si el player es admin usar un if y pener alli las coordenadas del spawn Link to comment
AlvareZ_ Posted July 14, 2013 Share Posted July 14, 2013 getPlayerTeam getTeamName if spawnPlayer "onPlayerJoin" o "onPlayerLogin" --Quizas giveWeapon Link to comment
StanMarsh Posted July 14, 2013 Author Share Posted July 14, 2013 getPlayerTeam getTeamName if spawnPlayer "onPlayerJoin" o "onPlayerLogin" --Quizas giveWeapon Ejemplo? Link to comment
BorderLine Posted July 14, 2013 Share Posted July 14, 2013 (edited) function spawn() team = getPlayerTeam(source) teamN = getTeamName(team) if teamN == "Tu team" then spawnPlayer(source,.............) giveWeapon (source,.........) elseif teamN == "Otro team" then spawnPlayer(source,.............) giveWeapon (source,.........) else -- pa los wueones sin team spawnPlayer(source,.............) giveWeapon (source,.........) end end addEventHandler("onPlayerLogin",root,spawn) Edited July 14, 2013 by Guest Link to comment
Alexs Posted July 14, 2013 Share Posted July 14, 2013 local spawns ={ ["none"] = { 0, 0, 0}, ["Admin"] = { 0, 0, 0 }, ["Civilians"] = { 50, 135135.165456, -15465} } addEventHandler( "onPlayerLogin", root, function() local team = getTeamName( getPlayerTeam( source ) ) or "none" local x, y, z = unpack( spawns[team] ) spawnPlayer( source, x, y, z) end ) Link to comment
AlvareZ_ Posted July 14, 2013 Share Posted July 14, 2013 Hm creo que por lo menos el debería intentar, No crearle el script Completo... Link to comment
Alexs Posted July 14, 2013 Share Posted July 14, 2013 Hm creo que por lo menos el debería intentar, No crearle el script Completo... El pidió un ejemplo, es lo que le di. Link to comment
Recommended Posts