AlvareZ_ Posted February 11, 2013 Posted February 11, 2013 Buenas noches, quisiera saber por q no me esta borrando el blip, tengo esto: Serverside addEventHandler( "onPlayerWasted", g_root, function( ) deleteAllPlayerBlips( source ) end ); function deleteAllPlayerBlips(player) local elements = getAttachedElements(player) if (elements) then for i, element in ipairs(elements) do if (getElementType(element) == "blip") then destroyElement(element) end end end print( "number of players in team: " .. tostring( countPlayersInTeam( getPlayerTeam( player ) ) ) ); end addEventHandler( "onPlayerQuit", g_root, function() deleteAllPlayerBlips(source) end ); Gracias
Castillo Posted February 11, 2013 Posted February 11, 2013 "g_root" no esta definido. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted February 11, 2013 Posted February 11, 2013 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts