StanMarsh Posted July 14, 2013 Posted July 14, 2013 Hola, Se puede Spawnear un player por team? ejemplo soy del team Admin y spawneo en la base admin. En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
Arsilex Posted July 14, 2013 Posted July 14, 2013 claro solo tienes que sacar si el player es admin usar un if y pener alli las coordenadas del spawn
AlvareZ_ Posted July 14, 2013 Posted July 14, 2013 getPlayerTeam getTeamName if spawnPlayer "onPlayerJoin" o "onPlayerLogin" --Quizas giveWeapon
StanMarsh Posted July 14, 2013 Author Posted July 14, 2013 getPlayerTeam getTeamName if spawnPlayer "onPlayerJoin" o "onPlayerLogin" --Quizas giveWeapon Ejemplo? En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
BorderLine Posted July 14, 2013 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 Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Alexs Posted July 14, 2013 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 ) Developer @ MYVAL
AlvareZ_ Posted July 14, 2013 Posted July 14, 2013 Hm creo que por lo menos el debería intentar, No crearle el script Completo...
Alexs Posted July 14, 2013 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. Developer @ MYVAL
Recommended Posts