PaoloPG Posted April 20, 2013 Share Posted April 20, 2013 Hola amigos kiero saver como acer un auto team para el race no se como acerlo me pueden ayudar o decirme como ace :c Link to comment
Plate Posted April 20, 2013 Share Posted April 20, 2013 function teams ( ) miTeam = createTeam ( "elnombredelteamaqui", 0, 255, 255 ) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), teams) function addthem ( player ) if ( not player ) then return end local accountName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "AquiElGrupoACL" ) ) then setPlayerTeam ( player, miTeam ) end end function addtoteamtimer ( ) setTimer ( addthem, 1000, 1, source ) end addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) addEventHandler ( "onPlayerSpawn", root, addtoteamtimer ) Link to comment
PaoloPG Posted April 20, 2013 Author Share Posted April 20, 2013 Lo pongo en Cualkier Lua Link to comment
Recommended Posts